Module: Rosette

Defined in:
lib/rosette/core.rb,
lib/rosette/tms.rb,
lib/rosette/queuing.rb,
lib/rosette/data_stores.rb,
lib/rosette/serializers.rb,
lib/rosette/core/errors.rb,
lib/rosette/queuing/job.rb,
lib/rosette/core/version.rb,
lib/rosette/core/git/ref.rb,
lib/rosette/integrations.rb,
lib/rosette/queuing/queue.rb,
lib/rosette/preprocessors.rb,
lib/rosette/core/git/repo.rb,
lib/rosette/core/commands.rb,
lib/rosette/queuing/worker.rb,
lib/rosette/tms/repository.rb,
lib/rosette/core/validators.rb,
lib/rosette/queuing/commits.rb,
lib/rosette/core/configurator.rb,
lib/rosette/core/string_utils.rb,
lib/rosette/core/branch_utils.rb,
lib/rosette/data_stores/errors.rb,
lib/rosette/integrations/errors.rb,
lib/rosette/core/git/diff_finder.rb,
lib/rosette/preprocessors/errors.rb,
lib/rosette/core/commands/errors.rb,
lib/rosette/core/extractor/phrase.rb,
lib/rosette/core/extractor/locale.rb,
lib/rosette/queuing/commits/stage.rb,
lib/rosette/serializers/serializer.rb,
lib/rosette/core/resolvers/resolver.rb,
lib/rosette/core/translation_status.rb,
lib/rosette/core/extractor/extractor.rb,
lib/rosette/integrations/integration.rb,
lib/rosette/core/extractor/commit_log.rb,
lib/rosette/data_stores/phrase_status.rb,
lib/rosette/core/validators/validator.rb,
lib/rosette/integrations/integratable.rb,
lib/rosette/core/path_matcher_factory.rb,
lib/rosette/preprocessors/preprocessor.rb,
lib/rosette/core/extractor/translation.rb,
lib/rosette/queuing/queue_configurator.rb,
lib/rosette/core/commands/git/with_ref.rb,
lib/rosette/core/extractor/repo_config.rb,
lib/rosette/queuing/commits/commit_job.rb,
lib/rosette/queuing/commits/push_stage.rb,
lib/rosette/queuing/commits/fetch_stage.rb,
lib/rosette/core/resolvers/extractor_id.rb,
lib/rosette/core/commands/git/with_refs.rb,
lib/rosette/core/commands/git/diff_entry.rb,
lib/rosette/core/resolvers/serializer_id.rb,
lib/rosette/queuing/commits/extract_stage.rb,
lib/rosette/core/resolvers/integration_id.rb,
lib/rosette/core/commands/git/diff_command.rb,
lib/rosette/core/commands/git/show_command.rb,
lib/rosette/queuing/commits/finalize_stage.rb,
lib/rosette/core/resolvers/preprocessor_id.rb,
lib/rosette/core/validators/repo_validator.rb,
lib/rosette/core/snapshots/snapshot_factory.rb,
lib/rosette/core/extractor/static_extractor.rb,
lib/rosette/core/extractor/commit_processor.rb,
lib/rosette/core/extractor/extractor_config.rb,
lib/rosette/core/commands/git/fetch_command.rb,
lib/rosette/core/commands/git/with_repo_name.rb,
lib/rosette/core/validators/commit_validator.rb,
lib/rosette/core/commands/git/status_command.rb,
lib/rosette/core/validators/locale_validator.rb,
lib/rosette/core/commands/git/with_snapshots.rb,
lib/rosette/queuing/commits/commit_conductor.rb,
lib/rosette/core/extractor/commit_log_status.rb,
lib/rosette/core/extractor/serializer_config.rb,
lib/rosette/core/commands/git/commit_command.rb,
lib/rosette/core/validators/commits_validator.rb,
lib/rosette/core/validators/encoding_validator.rb,
lib/rosette/core/commands/git/snapshot_command.rb,
lib/rosette/core/error_reporters/error_reporter.rb,
lib/rosette/core/commands/git/diff_base_command.rb,
lib/rosette/core/extractor/phrase/phrase_to_hash.rb,
lib/rosette/core/snapshots/head_snapshot_factory.rb,
lib/rosette/core/commands/git/with_non_merge_ref.rb,
lib/rosette/core/validators/serializer_validator.rb,
lib/rosette/core/snapshots/repo_config_path_filter.rb,
lib/rosette/core/commands/translations/with_locale.rb,
lib/rosette/core/snapshots/cached_snapshot_factory.rb,
lib/rosette/core/error_reporters/nil_error_reporter.rb,
lib/rosette/core/commands/git/repo_snapshot_command.rb,
lib/rosette/core/extractor/phrase/phrase_index_policy.rb,
lib/rosette/core/commands/translations/export_command.rb,
lib/rosette/queuing/commits/phrase_storage_granularity.rb,
lib/rosette/queuing/commits/commits_queue_configurator.rb,
lib/rosette/core/error_reporters/raising_error_reporter.rb,
lib/rosette/core/snapshots/cached_head_snapshot_factory.rb,
lib/rosette/core/error_reporters/printing_error_reporter.rb,
lib/rosette/core/commands/queuing/requeue_commit_command.rb,
lib/rosette/core/error_reporters/buffered_error_reporter.rb,
lib/rosette/core/commands/queuing/enqueue_commit_command.rb,
lib/rosette/core/extractor/translation/translation_to_hash.rb,
lib/rosette/core/commands/translations/translation_lookup_command.rb

Overview

Rosette is a modular internationalization platform written in Ruby.

Defined Under Namespace

Modules: Core, DataStores, Integrations, Preprocessors, Queuing, Serializers, Tms

Class Method Summary collapse

Class Method Details

.build_config {|configuration| ... } ⇒ Configurator

Constructs a new Rosette configurator object and yields it to the block.

Yields:

  • (configuration)

Yield Parameters:

  • configuration (Configurator)

45
46
47
48
49
50
# File 'lib/rosette/core.rb', line 45

def self.build_config
  configuration = Rosette::Core::Configurator.new
  yield configuration
  configuration.apply_integrations(configuration)
  configuration
end

.envString

Get the current Rosette environment name. Defaults to “development”.


28
29
30
# File 'lib/rosette/core.rb', line 28

def self.env
  @env || 'development'
end

.env=(new_env) ⇒ void

This method returns an undefined value.

Set the Rosette environment name.


36
37
38
# File 'lib/rosette/core.rb', line 36

def self.env=(new_env)
  @env = new_env
end

.logger#info, ...

Get the current Rosette logger. Defaults to a logger that logs to STDOUT.


13
14
15
# File 'lib/rosette/core.rb', line 13

def self.logger
  @logger ||= Logger.new(STDOUT)
end

.logger=(new_logger) ⇒ void

This method returns an undefined value.

Set the Rosette logger.


21
22
23
# File 'lib/rosette/core.rb', line 21

def self.logger=(new_logger)
  @logger = new_logger
end