rosette-core 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +26 -0
- data/History.txt +3 -0
- data/README.md +94 -0
- data/Rakefile +18 -0
- data/lib/rosette/core.rb +110 -0
- data/lib/rosette/core/branch_utils.rb +152 -0
- data/lib/rosette/core/commands.rb +139 -0
- data/lib/rosette/core/commands/errors.rb +17 -0
- data/lib/rosette/core/commands/git/commit_command.rb +65 -0
- data/lib/rosette/core/commands/git/diff_base_command.rb +301 -0
- data/lib/rosette/core/commands/git/diff_command.rb +188 -0
- data/lib/rosette/core/commands/git/diff_entry.rb +44 -0
- data/lib/rosette/core/commands/git/fetch_command.rb +27 -0
- data/lib/rosette/core/commands/git/repo_snapshot_command.rb +40 -0
- data/lib/rosette/core/commands/git/show_command.rb +70 -0
- data/lib/rosette/core/commands/git/snapshot_command.rb +50 -0
- data/lib/rosette/core/commands/git/status_command.rb +128 -0
- data/lib/rosette/core/commands/git/with_non_merge_ref.rb +48 -0
- data/lib/rosette/core/commands/git/with_ref.rb +92 -0
- data/lib/rosette/core/commands/git/with_refs.rb +92 -0
- data/lib/rosette/core/commands/git/with_repo_name.rb +50 -0
- data/lib/rosette/core/commands/git/with_snapshots.rb +45 -0
- data/lib/rosette/core/commands/queuing/enqueue_commit_command.rb +37 -0
- data/lib/rosette/core/commands/queuing/requeue_commit_command.rb +46 -0
- data/lib/rosette/core/commands/translations/export_command.rb +257 -0
- data/lib/rosette/core/commands/translations/translation_lookup_command.rb +66 -0
- data/lib/rosette/core/commands/translations/with_locale.rb +47 -0
- data/lib/rosette/core/configurator.rb +160 -0
- data/lib/rosette/core/error_reporters/buffered_error_reporter.rb +96 -0
- data/lib/rosette/core/error_reporters/error_reporter.rb +31 -0
- data/lib/rosette/core/error_reporters/nil_error_reporter.rb +25 -0
- data/lib/rosette/core/error_reporters/printing_error_reporter.rb +58 -0
- data/lib/rosette/core/error_reporters/raising_error_reporter.rb +27 -0
- data/lib/rosette/core/errors.rb +93 -0
- data/lib/rosette/core/extractor/commit_log.rb +33 -0
- data/lib/rosette/core/extractor/commit_log_status.rb +57 -0
- data/lib/rosette/core/extractor/commit_processor.rb +109 -0
- data/lib/rosette/core/extractor/extractor.rb +72 -0
- data/lib/rosette/core/extractor/extractor_config.rb +74 -0
- data/lib/rosette/core/extractor/locale.rb +118 -0
- data/lib/rosette/core/extractor/phrase.rb +76 -0
- data/lib/rosette/core/extractor/phrase/phrase_index_policy.rb +108 -0
- data/lib/rosette/core/extractor/phrase/phrase_to_hash.rb +33 -0
- data/lib/rosette/core/extractor/repo_config.rb +339 -0
- data/lib/rosette/core/extractor/serializer_config.rb +55 -0
- data/lib/rosette/core/extractor/static_extractor.rb +44 -0
- data/lib/rosette/core/extractor/translation.rb +44 -0
- data/lib/rosette/core/extractor/translation/translation_to_hash.rb +28 -0
- data/lib/rosette/core/git/diff_finder.rb +131 -0
- data/lib/rosette/core/git/ref.rb +116 -0
- data/lib/rosette/core/git/repo.rb +378 -0
- data/lib/rosette/core/path_matcher_factory.rb +330 -0
- data/lib/rosette/core/resolvers/extractor_id.rb +37 -0
- data/lib/rosette/core/resolvers/integration_id.rb +37 -0
- data/lib/rosette/core/resolvers/preprocessor_id.rb +38 -0
- data/lib/rosette/core/resolvers/resolver.rb +115 -0
- data/lib/rosette/core/resolvers/serializer_id.rb +37 -0
- data/lib/rosette/core/snapshots/cached_head_snapshot_factory.rb +51 -0
- data/lib/rosette/core/snapshots/cached_snapshot_factory.rb +67 -0
- data/lib/rosette/core/snapshots/head_snapshot_factory.rb +58 -0
- data/lib/rosette/core/snapshots/repo_config_path_filter.rb +83 -0
- data/lib/rosette/core/snapshots/snapshot_factory.rb +184 -0
- data/lib/rosette/core/string_utils.rb +23 -0
- data/lib/rosette/core/translation_status.rb +81 -0
- data/lib/rosette/core/validators.rb +18 -0
- data/lib/rosette/core/validators/commit_validator.rb +62 -0
- data/lib/rosette/core/validators/commits_validator.rb +32 -0
- data/lib/rosette/core/validators/encoding_validator.rb +32 -0
- data/lib/rosette/core/validators/locale_validator.rb +37 -0
- data/lib/rosette/core/validators/repo_validator.rb +33 -0
- data/lib/rosette/core/validators/serializer_validator.rb +37 -0
- data/lib/rosette/core/validators/validator.rb +31 -0
- data/lib/rosette/core/version.rb +8 -0
- data/lib/rosette/data_stores.rb +11 -0
- data/lib/rosette/data_stores/errors.rb +26 -0
- data/lib/rosette/data_stores/phrase_status.rb +59 -0
- data/lib/rosette/integrations.rb +12 -0
- data/lib/rosette/integrations/errors.rb +15 -0
- data/lib/rosette/integrations/integratable.rb +58 -0
- data/lib/rosette/integrations/integration.rb +23 -0
- data/lib/rosette/preprocessors.rb +11 -0
- data/lib/rosette/preprocessors/errors.rb +14 -0
- data/lib/rosette/preprocessors/preprocessor.rb +48 -0
- data/lib/rosette/queuing.rb +14 -0
- data/lib/rosette/queuing/commits.rb +19 -0
- data/lib/rosette/queuing/commits/commit_conductor.rb +90 -0
- data/lib/rosette/queuing/commits/commit_job.rb +93 -0
- data/lib/rosette/queuing/commits/commits_queue_configurator.rb +60 -0
- data/lib/rosette/queuing/commits/extract_stage.rb +46 -0
- data/lib/rosette/queuing/commits/fetch_stage.rb +51 -0
- data/lib/rosette/queuing/commits/finalize_stage.rb +76 -0
- data/lib/rosette/queuing/commits/phrase_storage_granularity.rb +20 -0
- data/lib/rosette/queuing/commits/push_stage.rb +91 -0
- data/lib/rosette/queuing/commits/stage.rb +96 -0
- data/lib/rosette/queuing/job.rb +74 -0
- data/lib/rosette/queuing/queue.rb +28 -0
- data/lib/rosette/queuing/queue_configurator.rb +76 -0
- data/lib/rosette/queuing/worker.rb +30 -0
- data/lib/rosette/serializers.rb +10 -0
- data/lib/rosette/serializers/serializer.rb +98 -0
- data/lib/rosette/tms.rb +9 -0
- data/lib/rosette/tms/repository.rb +95 -0
- data/rosette-core.gemspec +24 -0
- data/spec/core/branch_utils_spec.rb +110 -0
- data/spec/core/commands/git/commit_command_spec.rb +60 -0
- data/spec/core/commands/git/diff_command_spec.rb +263 -0
- data/spec/core/commands/git/fetch_command_spec.rb +61 -0
- data/spec/core/commands/git/repo_snapshot_command_spec.rb +72 -0
- data/spec/core/commands/git/show_command_spec.rb +128 -0
- data/spec/core/commands/git/snapshot_command_spec.rb +86 -0
- data/spec/core/commands/git/status_command_spec.rb +154 -0
- data/spec/core/commands/queuing/enqueue_commit_command_spec.rb +34 -0
- data/spec/core/commands/queuing/requeue_commit_command_spec.rb +46 -0
- data/spec/core/commands/translations/export_command_spec.rb +113 -0
- data/spec/core/commands/translations/translation_lookup_command_spec.rb +58 -0
- data/spec/core/configurator_spec.rb +47 -0
- data/spec/core/error_reporters/buffered_error_reporter_spec.rb +61 -0
- data/spec/core/error_reporters/nil_error_reporter_spec.rb +16 -0
- data/spec/core/error_reporters/printing_error_reporter_spec.rb +60 -0
- data/spec/core/extractor/commit_log_status_spec.rb +216 -0
- data/spec/core/extractor/commit_processor_spec.rb +68 -0
- data/spec/core/extractor/extractor_config_spec.rb +47 -0
- data/spec/core/extractor/extractor_spec.rb +26 -0
- data/spec/core/extractor/locale_spec.rb +92 -0
- data/spec/core/extractor/phrase/phrase_index_policy_spec.rb +116 -0
- data/spec/core/extractor/phrase/phrase_to_hash_spec.rb +18 -0
- data/spec/core/extractor/repo_config_spec.rb +147 -0
- data/spec/core/extractor/translation/translation_to_hash_spec.rb +25 -0
- data/spec/core/git/diff_finder_spec.rb +74 -0
- data/spec/core/git/ref_spec.rb +118 -0
- data/spec/core/git/repo_spec.rb +216 -0
- data/spec/core/path_matcher_factory_spec.rb +139 -0
- data/spec/core/resolvers/extractor_id_spec.rb +47 -0
- data/spec/core/resolvers/integration_id_spec.rb +47 -0
- data/spec/core/resolvers/preprocessor_id_spec.rb +47 -0
- data/spec/core/resolvers/serializer_id_spec.rb +47 -0
- data/spec/core/snapshots/snapshot_factory_spec.rb +145 -0
- data/spec/core/string_utils_spec.rb +19 -0
- data/spec/core/translation_status_spec.rb +91 -0
- data/spec/core/validators/commit_validator_spec.rb +40 -0
- data/spec/core/validators/encoding_validator_spec.rb +30 -0
- data/spec/core/validators/locale_validator_spec.rb +31 -0
- data/spec/core/validators/repo_validator_spec.rb +30 -0
- data/spec/core/validators/serializer_validator_spec.rb +31 -0
- data/spec/integrations/integratable_spec.rb +58 -0
- data/spec/queuing/commits/commit_conductor_spec.rb +71 -0
- data/spec/queuing/commits/commit_job_spec.rb +87 -0
- data/spec/queuing/commits/extract_stage_spec.rb +68 -0
- data/spec/queuing/commits/fetch_stage_spec.rb +101 -0
- data/spec/queuing/commits/finalize_stage_spec.rb +88 -0
- data/spec/queuing/commits/push_stage_spec.rb +145 -0
- data/spec/queuing/commits/stage_spec.rb +80 -0
- data/spec/queuing/job_spec.rb +33 -0
- data/spec/queuing/queue_configurator_spec.rb +44 -0
- data/spec/spec_helper.rb +90 -0
- data/spec/test_helpers/fake_commit_stage.rb +17 -0
- metadata +257 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
include Rosette::Queuing
|
6
|
+
|
7
|
+
describe QueueConfigurator do
|
8
|
+
let(:configurator) { QueueConfigurator.new }
|
9
|
+
|
10
|
+
describe '#enable_queue' do
|
11
|
+
it "raises an error if the queue can't be determined" do
|
12
|
+
expect { configurator.enable_queue('foo') }.to raise_error
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'adds the queue config to the list of configured queues' do
|
16
|
+
expect { configurator.enable_queue('commits') }.to(
|
17
|
+
change { configurator.queue_configs.size }.from(0).to(1)
|
18
|
+
)
|
19
|
+
|
20
|
+
expect(configurator.queue_configs.first).to(
|
21
|
+
be_a(Commits::CommitsQueueConfigurator)
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'with a queue configured' do
|
27
|
+
let(:queue_name) { 'commits' }
|
28
|
+
|
29
|
+
before(:each) do
|
30
|
+
configurator.enable_queue(queue_name)
|
31
|
+
end
|
32
|
+
|
33
|
+
describe '#get_queue_config' do
|
34
|
+
it 'gets the queue by name' do
|
35
|
+
queue_config = configurator.get_queue_config(queue_name)
|
36
|
+
expect(queue_config).to be_a(Commits::CommitsQueueConfigurator)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'returns nil if no config could be found' do
|
40
|
+
expect(configurator.get_queue_config('foo')).to be_nil
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
|
3
|
+
require "codeclimate-test-reporter"
|
4
|
+
CodeClimate::TestReporter.start
|
5
|
+
|
6
|
+
# SimpleCov code adapted from:
|
7
|
+
# http://www.dixis.com/?p=713
|
8
|
+
require 'simplecov'
|
9
|
+
|
10
|
+
SimpleCov.start
|
11
|
+
|
12
|
+
all_files = Dir['./lib/**/*.rb']
|
13
|
+
base_result = {}
|
14
|
+
|
15
|
+
all_files.each do |file|
|
16
|
+
absolute = File::expand_path(file)
|
17
|
+
lines = File.readlines(absolute, :encoding => 'UTF-8')
|
18
|
+
|
19
|
+
base_result[absolute] = lines.map do |l|
|
20
|
+
l.strip!
|
21
|
+
l.empty? || l =~ /^end$/ || l[0] == '#' ? nil : 0
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
SimpleCov.at_exit do
|
26
|
+
coverage_result = Coverage.result
|
27
|
+
covered_files = coverage_result.keys
|
28
|
+
|
29
|
+
covered_files.each do |covered_file|
|
30
|
+
base_result.delete(covered_file)
|
31
|
+
end
|
32
|
+
|
33
|
+
merged = SimpleCov::Result.new(coverage_result)
|
34
|
+
.original_result
|
35
|
+
.merge_resultset(base_result)
|
36
|
+
|
37
|
+
result = SimpleCov::Result.new(merged)
|
38
|
+
result.format!
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
require 'expert'
|
43
|
+
Expert.environment.require_all
|
44
|
+
|
45
|
+
require 'rspec'
|
46
|
+
require 'progress-reporters'
|
47
|
+
require 'rosette/core'
|
48
|
+
require 'rosette/serializers'
|
49
|
+
require 'rosette/integrations'
|
50
|
+
require 'rosette/preprocessors'
|
51
|
+
require 'rosette/queuing'
|
52
|
+
require 'rosette/tms'
|
53
|
+
require 'rosette/data_stores'
|
54
|
+
require 'rosette/data_stores/in_memory_data_store'
|
55
|
+
require 'rosette/test-helpers'
|
56
|
+
require 'spec/test_helpers/fake_commit_stage'
|
57
|
+
require 'repo-fixture'
|
58
|
+
require 'fileutils'
|
59
|
+
require 'pry-nav'
|
60
|
+
|
61
|
+
RSpec.configure do |config|
|
62
|
+
# build all fixtures before tests run
|
63
|
+
Rosette::TestHelpers::Fixtures.build_all
|
64
|
+
|
65
|
+
def load_repo_fixture(*args)
|
66
|
+
Rosette::TestHelpers::Fixtures.load_repo_fixture(*args) do |config, repo_config|
|
67
|
+
repo_config.add_extractor('test/test') do |ext|
|
68
|
+
ext.set_conditions do |conditions|
|
69
|
+
conditions.match_file_extension('.txt')
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
yield config, repo_config if block_given?
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
config.after(:each) do
|
78
|
+
Rosette::TestHelpers::Fixtures.cleanup
|
79
|
+
Rosette::DataStores::InMemoryDataStore.all_entries.clear
|
80
|
+
Rosette::Queuing::TestQueue::Queue.clear
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
TestPhrase = Struct.new(:key, :meta_key, :file, :commit_id) do
|
85
|
+
include Rosette::Core::PhraseToHash
|
86
|
+
end
|
87
|
+
|
88
|
+
TestTranslation = Struct.new(:key, :meta_key, :file, :commit_id) do
|
89
|
+
include Rosette::Core::TranslationToHash
|
90
|
+
end
|
metadata
ADDED
@@ -0,0 +1,257 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rosette-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Cameron Dutro
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ~>
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: 1.0.0
|
19
|
+
name: progress-reporters
|
20
|
+
prerelease: false
|
21
|
+
type: :runtime
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.0
|
33
|
+
name: activesupport
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 4.1.0
|
47
|
+
name: aasm
|
48
|
+
prerelease: false
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.1.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.7'
|
61
|
+
name: concurrent-ruby
|
62
|
+
prerelease: false
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.7'
|
69
|
+
description: Core classes for the Rosette internationalization platform.
|
70
|
+
email:
|
71
|
+
- camertron@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- lib/rosette/core.rb
|
77
|
+
- lib/rosette/data_stores.rb
|
78
|
+
- lib/rosette/integrations.rb
|
79
|
+
- lib/rosette/preprocessors.rb
|
80
|
+
- lib/rosette/queuing.rb
|
81
|
+
- lib/rosette/serializers.rb
|
82
|
+
- lib/rosette/tms.rb
|
83
|
+
- lib/rosette/core/branch_utils.rb
|
84
|
+
- lib/rosette/core/commands.rb
|
85
|
+
- lib/rosette/core/configurator.rb
|
86
|
+
- lib/rosette/core/errors.rb
|
87
|
+
- lib/rosette/core/path_matcher_factory.rb
|
88
|
+
- lib/rosette/core/string_utils.rb
|
89
|
+
- lib/rosette/core/translation_status.rb
|
90
|
+
- lib/rosette/core/validators.rb
|
91
|
+
- lib/rosette/core/version.rb
|
92
|
+
- lib/rosette/core/commands/errors.rb
|
93
|
+
- lib/rosette/core/commands/git/commit_command.rb
|
94
|
+
- lib/rosette/core/commands/git/diff_base_command.rb
|
95
|
+
- lib/rosette/core/commands/git/diff_command.rb
|
96
|
+
- lib/rosette/core/commands/git/diff_entry.rb
|
97
|
+
- lib/rosette/core/commands/git/fetch_command.rb
|
98
|
+
- lib/rosette/core/commands/git/repo_snapshot_command.rb
|
99
|
+
- lib/rosette/core/commands/git/show_command.rb
|
100
|
+
- lib/rosette/core/commands/git/snapshot_command.rb
|
101
|
+
- lib/rosette/core/commands/git/status_command.rb
|
102
|
+
- lib/rosette/core/commands/git/with_non_merge_ref.rb
|
103
|
+
- lib/rosette/core/commands/git/with_ref.rb
|
104
|
+
- lib/rosette/core/commands/git/with_refs.rb
|
105
|
+
- lib/rosette/core/commands/git/with_repo_name.rb
|
106
|
+
- lib/rosette/core/commands/git/with_snapshots.rb
|
107
|
+
- lib/rosette/core/commands/queuing/enqueue_commit_command.rb
|
108
|
+
- lib/rosette/core/commands/queuing/requeue_commit_command.rb
|
109
|
+
- lib/rosette/core/commands/translations/export_command.rb
|
110
|
+
- lib/rosette/core/commands/translations/translation_lookup_command.rb
|
111
|
+
- lib/rosette/core/commands/translations/with_locale.rb
|
112
|
+
- lib/rosette/core/error_reporters/buffered_error_reporter.rb
|
113
|
+
- lib/rosette/core/error_reporters/error_reporter.rb
|
114
|
+
- lib/rosette/core/error_reporters/nil_error_reporter.rb
|
115
|
+
- lib/rosette/core/error_reporters/printing_error_reporter.rb
|
116
|
+
- lib/rosette/core/error_reporters/raising_error_reporter.rb
|
117
|
+
- lib/rosette/core/extractor/commit_log.rb
|
118
|
+
- lib/rosette/core/extractor/commit_log_status.rb
|
119
|
+
- lib/rosette/core/extractor/commit_processor.rb
|
120
|
+
- lib/rosette/core/extractor/extractor.rb
|
121
|
+
- lib/rosette/core/extractor/extractor_config.rb
|
122
|
+
- lib/rosette/core/extractor/locale.rb
|
123
|
+
- lib/rosette/core/extractor/phrase.rb
|
124
|
+
- lib/rosette/core/extractor/repo_config.rb
|
125
|
+
- lib/rosette/core/extractor/serializer_config.rb
|
126
|
+
- lib/rosette/core/extractor/static_extractor.rb
|
127
|
+
- lib/rosette/core/extractor/translation.rb
|
128
|
+
- lib/rosette/core/extractor/phrase/phrase_index_policy.rb
|
129
|
+
- lib/rosette/core/extractor/phrase/phrase_to_hash.rb
|
130
|
+
- lib/rosette/core/extractor/translation/translation_to_hash.rb
|
131
|
+
- lib/rosette/core/git/diff_finder.rb
|
132
|
+
- lib/rosette/core/git/ref.rb
|
133
|
+
- lib/rosette/core/git/repo.rb
|
134
|
+
- lib/rosette/core/resolvers/extractor_id.rb
|
135
|
+
- lib/rosette/core/resolvers/integration_id.rb
|
136
|
+
- lib/rosette/core/resolvers/preprocessor_id.rb
|
137
|
+
- lib/rosette/core/resolvers/resolver.rb
|
138
|
+
- lib/rosette/core/resolvers/serializer_id.rb
|
139
|
+
- lib/rosette/core/snapshots/cached_head_snapshot_factory.rb
|
140
|
+
- lib/rosette/core/snapshots/cached_snapshot_factory.rb
|
141
|
+
- lib/rosette/core/snapshots/head_snapshot_factory.rb
|
142
|
+
- lib/rosette/core/snapshots/repo_config_path_filter.rb
|
143
|
+
- lib/rosette/core/snapshots/snapshot_factory.rb
|
144
|
+
- lib/rosette/core/validators/commit_validator.rb
|
145
|
+
- lib/rosette/core/validators/commits_validator.rb
|
146
|
+
- lib/rosette/core/validators/encoding_validator.rb
|
147
|
+
- lib/rosette/core/validators/locale_validator.rb
|
148
|
+
- lib/rosette/core/validators/repo_validator.rb
|
149
|
+
- lib/rosette/core/validators/serializer_validator.rb
|
150
|
+
- lib/rosette/core/validators/validator.rb
|
151
|
+
- lib/rosette/data_stores/errors.rb
|
152
|
+
- lib/rosette/data_stores/phrase_status.rb
|
153
|
+
- lib/rosette/integrations/errors.rb
|
154
|
+
- lib/rosette/integrations/integratable.rb
|
155
|
+
- lib/rosette/integrations/integration.rb
|
156
|
+
- lib/rosette/preprocessors/errors.rb
|
157
|
+
- lib/rosette/preprocessors/preprocessor.rb
|
158
|
+
- lib/rosette/queuing/commits.rb
|
159
|
+
- lib/rosette/queuing/job.rb
|
160
|
+
- lib/rosette/queuing/queue.rb
|
161
|
+
- lib/rosette/queuing/queue_configurator.rb
|
162
|
+
- lib/rosette/queuing/worker.rb
|
163
|
+
- lib/rosette/queuing/commits/commit_conductor.rb
|
164
|
+
- lib/rosette/queuing/commits/commit_job.rb
|
165
|
+
- lib/rosette/queuing/commits/commits_queue_configurator.rb
|
166
|
+
- lib/rosette/queuing/commits/extract_stage.rb
|
167
|
+
- lib/rosette/queuing/commits/fetch_stage.rb
|
168
|
+
- lib/rosette/queuing/commits/finalize_stage.rb
|
169
|
+
- lib/rosette/queuing/commits/phrase_storage_granularity.rb
|
170
|
+
- lib/rosette/queuing/commits/push_stage.rb
|
171
|
+
- lib/rosette/queuing/commits/stage.rb
|
172
|
+
- lib/rosette/serializers/serializer.rb
|
173
|
+
- lib/rosette/tms/repository.rb
|
174
|
+
- spec/spec_helper.rb
|
175
|
+
- spec/core/branch_utils_spec.rb
|
176
|
+
- spec/core/configurator_spec.rb
|
177
|
+
- spec/core/path_matcher_factory_spec.rb
|
178
|
+
- spec/core/string_utils_spec.rb
|
179
|
+
- spec/core/translation_status_spec.rb
|
180
|
+
- spec/core/commands/git/commit_command_spec.rb
|
181
|
+
- spec/core/commands/git/diff_command_spec.rb
|
182
|
+
- spec/core/commands/git/fetch_command_spec.rb
|
183
|
+
- spec/core/commands/git/repo_snapshot_command_spec.rb
|
184
|
+
- spec/core/commands/git/show_command_spec.rb
|
185
|
+
- spec/core/commands/git/snapshot_command_spec.rb
|
186
|
+
- spec/core/commands/git/status_command_spec.rb
|
187
|
+
- spec/core/commands/queuing/enqueue_commit_command_spec.rb
|
188
|
+
- spec/core/commands/queuing/requeue_commit_command_spec.rb
|
189
|
+
- spec/core/commands/translations/export_command_spec.rb
|
190
|
+
- spec/core/commands/translations/translation_lookup_command_spec.rb
|
191
|
+
- spec/core/error_reporters/buffered_error_reporter_spec.rb
|
192
|
+
- spec/core/error_reporters/nil_error_reporter_spec.rb
|
193
|
+
- spec/core/error_reporters/printing_error_reporter_spec.rb
|
194
|
+
- spec/core/extractor/commit_log_status_spec.rb
|
195
|
+
- spec/core/extractor/commit_processor_spec.rb
|
196
|
+
- spec/core/extractor/extractor_config_spec.rb
|
197
|
+
- spec/core/extractor/extractor_spec.rb
|
198
|
+
- spec/core/extractor/locale_spec.rb
|
199
|
+
- spec/core/extractor/repo_config_spec.rb
|
200
|
+
- spec/core/extractor/phrase/phrase_index_policy_spec.rb
|
201
|
+
- spec/core/extractor/phrase/phrase_to_hash_spec.rb
|
202
|
+
- spec/core/extractor/translation/translation_to_hash_spec.rb
|
203
|
+
- spec/core/git/diff_finder_spec.rb
|
204
|
+
- spec/core/git/ref_spec.rb
|
205
|
+
- spec/core/git/repo_spec.rb
|
206
|
+
- spec/core/resolvers/extractor_id_spec.rb
|
207
|
+
- spec/core/resolvers/integration_id_spec.rb
|
208
|
+
- spec/core/resolvers/preprocessor_id_spec.rb
|
209
|
+
- spec/core/resolvers/serializer_id_spec.rb
|
210
|
+
- spec/core/snapshots/snapshot_factory_spec.rb
|
211
|
+
- spec/core/validators/commit_validator_spec.rb
|
212
|
+
- spec/core/validators/encoding_validator_spec.rb
|
213
|
+
- spec/core/validators/locale_validator_spec.rb
|
214
|
+
- spec/core/validators/repo_validator_spec.rb
|
215
|
+
- spec/core/validators/serializer_validator_spec.rb
|
216
|
+
- spec/integrations/integratable_spec.rb
|
217
|
+
- spec/queuing/job_spec.rb
|
218
|
+
- spec/queuing/queue_configurator_spec.rb
|
219
|
+
- spec/queuing/commits/commit_conductor_spec.rb
|
220
|
+
- spec/queuing/commits/commit_job_spec.rb
|
221
|
+
- spec/queuing/commits/extract_stage_spec.rb
|
222
|
+
- spec/queuing/commits/fetch_stage_spec.rb
|
223
|
+
- spec/queuing/commits/finalize_stage_spec.rb
|
224
|
+
- spec/queuing/commits/push_stage_spec.rb
|
225
|
+
- spec/queuing/commits/stage_spec.rb
|
226
|
+
- spec/test_helpers/fake_commit_stage.rb
|
227
|
+
- Gemfile
|
228
|
+
- History.txt
|
229
|
+
- README.md
|
230
|
+
- Rakefile
|
231
|
+
- rosette-core.gemspec
|
232
|
+
homepage: http://github.com/camertron
|
233
|
+
licenses: []
|
234
|
+
metadata: {}
|
235
|
+
post_install_message:
|
236
|
+
rdoc_options: []
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - '>='
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: '0'
|
249
|
+
requirements:
|
250
|
+
- jar 'org.eclipse.jgit:org.eclipse.jgit', '3.4.1.201406201815-r'
|
251
|
+
rubyforge_project:
|
252
|
+
rubygems_version: 2.1.9
|
253
|
+
signing_key:
|
254
|
+
specification_version: 4
|
255
|
+
summary: Core classes for the Rosette internationalization platform.
|
256
|
+
test_files: []
|
257
|
+
has_rdoc: true
|