lokalise_rails 2.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/Gemfile +12 -1
- data/README.md +74 -57
- data/lib/generators/lokalise_rails/install_generator.rb +2 -0
- data/lib/generators/templates/lokalise_rails_config.rb +2 -4
- data/lib/lokalise_rails/global_config.rb +12 -0
- data/lib/lokalise_rails/railtie.rb +1 -0
- data/lib/lokalise_rails/utils.rb +23 -0
- data/lib/lokalise_rails/version.rb +3 -1
- data/lib/lokalise_rails.rb +8 -88
- data/lib/tasks/lokalise_rails_tasks.rake +6 -3
- data/lokalise_rails.gemspec +7 -18
- data/spec/dummy/config/lokalise_rails.rb +3 -3
- data/spec/lib/generators/lokalise_rails/install_generator_spec.rb +2 -2
- data/spec/lib/{lokalise_rails_spec.rb → lokalise_rails/global_config_spec.rb} +17 -5
- data/spec/lib/lokalise_rails/version_spec.rb +7 -0
- data/spec/lib/tasks/export_task_spec.rb +25 -18
- data/spec/lib/tasks/import_task_spec.rb +36 -99
- data/spec/lib/utils_spec.rb +16 -0
- data/spec/spec_helper.rb +0 -2
- data/spec/support/file_manager.rb +8 -11
- data/spec/support/spec_addons.rb +8 -3
- metadata +21 -178
- data/lib/lokalise_rails/error.rb +0 -10
- data/lib/lokalise_rails/task_definition/base.rb +0 -80
- data/lib/lokalise_rails/task_definition/exporter.rb +0 -79
- data/lib/lokalise_rails/task_definition/importer.rb +0 -109
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -9
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -29
- data/spec/dummy/config/initializers/inflections.rb +0 -17
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
- data/spec/lib/lokalise_rails/task_definition/base_spec.rb +0 -81
- data/spec/lib/lokalise_rails/task_definition/exporter_spec.rb +0 -200
- data/spec/lib/lokalise_rails/task_definition/importer_spec.rb +0 -72
- data/spec/support/rake_utils.rb +0 -15
@@ -1,42 +1,49 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
RSpec.describe
|
3
|
+
RSpec.describe 'Export Rake task' do
|
4
|
+
let(:global_config) { LokaliseRails::GlobalConfig }
|
5
|
+
|
4
6
|
it 'halts when the API key is not set' do
|
5
|
-
allow(
|
7
|
+
allow(global_config).to receive(:api_token).and_return(nil)
|
6
8
|
|
7
|
-
expect
|
8
|
-
expect(
|
9
|
+
expect { Rake::Task['lokalise_rails:export'].execute }.to raise_error(SystemExit, /API token is not set/i)
|
10
|
+
expect(global_config).to have_received(:api_token)
|
9
11
|
end
|
10
12
|
|
11
13
|
it 'halts when the project ID is not set' do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
end
|
14
|
+
allow(global_config).to receive(:project_id).and_return(nil)
|
15
|
+
|
16
|
+
expect { Rake::Task['lokalise_rails:export'].execute }.to raise_error(SystemExit, /ID is not set/i)
|
16
17
|
|
17
|
-
|
18
|
-
expect(export_executor).to output(/complete!/).to_stdout
|
18
|
+
expect(global_config).to have_received(:project_id)
|
19
19
|
end
|
20
20
|
|
21
21
|
context 'with two translation files' do
|
22
22
|
let(:filename_ru) { 'ru.yml' }
|
23
23
|
let(:path_ru) { "#{Rails.root}/config/locales/#{filename_ru}" }
|
24
|
-
let(:relative_name_ru) { filename_ru }
|
25
24
|
|
26
|
-
before
|
25
|
+
before do
|
27
26
|
add_translation_files! with_ru: true
|
28
27
|
end
|
29
28
|
|
30
|
-
after
|
29
|
+
after do
|
31
30
|
rm_translation_files
|
32
31
|
end
|
33
32
|
|
34
|
-
describe '
|
35
|
-
it '
|
36
|
-
allow_project_id
|
33
|
+
describe 'export' do
|
34
|
+
it 'is callable' do
|
35
|
+
allow_project_id global_config, ENV['LOKALISE_PROJECT_ID'] do
|
36
|
+
VCR.use_cassette('upload_files') do
|
37
|
+
expect { Rake::Task['lokalise_rails:export'].execute }.to output(/complete!/).to_stdout
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
37
41
|
|
38
|
-
|
39
|
-
|
42
|
+
it 're-raises export errors' do
|
43
|
+
allow_project_id global_config, '542886116159f798720dc4.94769464' do
|
44
|
+
VCR.use_cassette('upload_files_error') do
|
45
|
+
expect { Rake::Task['lokalise_rails:export'].execute }.to raise_error(SystemExit, /Unknown `lang_iso`/)
|
46
|
+
end
|
40
47
|
end
|
41
48
|
end
|
42
49
|
end
|
@@ -1,121 +1,58 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
let(:loc_path) { described_class.locales_path }
|
7
|
-
let(:local_trans) { "#{Rails.root}/public/trans.zip" }
|
8
|
-
let(:remote_trans) { 'https://github.com/bodrovis/lokalise_rails/blob/master/spec/dummy/public/trans.zip?raw=true' }
|
3
|
+
RSpec.describe 'Import Rake task' do
|
4
|
+
let(:global_config) { LokaliseRails::GlobalConfig }
|
5
|
+
let(:loc_path) { global_config.locales_path }
|
9
6
|
|
10
7
|
it 'halts when the API key is not set' do
|
11
|
-
allow(
|
8
|
+
allow(global_config).to receive(:api_token).and_return(nil)
|
12
9
|
|
13
|
-
expect
|
14
|
-
expect(
|
10
|
+
expect { Rake::Task['lokalise_rails:import'].execute }.to raise_error(SystemExit, /API token is not set/i)
|
11
|
+
expect(global_config).to have_received(:api_token)
|
15
12
|
end
|
16
13
|
|
17
14
|
it 'halts when the project ID is not set' do
|
18
|
-
|
19
|
-
expect(import_executor).to raise_error(SystemExit, /ID is not set/i)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
context 'when directory is empty' do
|
24
|
-
before do
|
25
|
-
mkdir_locales
|
26
|
-
rm_translation_files
|
27
|
-
end
|
28
|
-
|
29
|
-
after :all do
|
30
|
-
rm_translation_files
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'import rake task is callable' do
|
34
|
-
allow(LokaliseRails::TaskDefinition::Importer).to receive(
|
35
|
-
:download_files
|
36
|
-
).and_return(
|
37
|
-
{
|
38
|
-
'project_id' => '123.abc',
|
39
|
-
'bundle_url' => local_trans
|
40
|
-
}
|
41
|
-
)
|
42
|
-
|
43
|
-
expect(import_executor).to output(/complete!/).to_stdout
|
15
|
+
allow(global_config).to receive(:project_id).and_return(nil)
|
44
16
|
|
45
|
-
|
46
|
-
expect(LokaliseRails::TaskDefinition::Importer).to have_received(:download_files)
|
47
|
-
expect_file_exist loc_path, 'en/nested/main_en.yml'
|
48
|
-
expect_file_exist loc_path, 'en/nested/deep/secondary_en.yml'
|
49
|
-
expect_file_exist loc_path, 'ru/main_ru.yml'
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'import rake task downloads ZIP archive properly' do
|
53
|
-
allow(LokaliseRails::TaskDefinition::Importer).to receive(
|
54
|
-
:download_files
|
55
|
-
).and_return(
|
56
|
-
{
|
57
|
-
'project_id' => '123.abc',
|
58
|
-
'bundle_url' => remote_trans
|
59
|
-
}
|
60
|
-
)
|
17
|
+
expect { Rake::Task['lokalise_rails:import'].execute }.to raise_error(SystemExit, /ID is not set/i)
|
61
18
|
|
62
|
-
|
63
|
-
|
64
|
-
expect(LokaliseRails::TaskDefinition::Importer).to have_received(:download_files)
|
65
|
-
expect(count_translations).to eq(4)
|
66
|
-
expect_file_exist loc_path, 'en/nested/main_en.yml'
|
67
|
-
expect_file_exist loc_path, 'en/nested/deep/secondary_en.yml'
|
68
|
-
expect_file_exist loc_path, 'ru/main_ru.yml'
|
69
|
-
end
|
19
|
+
expect(global_config).to have_received(:project_id)
|
70
20
|
end
|
71
21
|
|
72
|
-
context 'when directory is
|
73
|
-
before :all do
|
74
|
-
mkdir_locales
|
75
|
-
described_class.import_safe_mode = true
|
76
|
-
end
|
77
|
-
|
22
|
+
context 'when directory is empty' do
|
78
23
|
before do
|
24
|
+
mkdir_locales
|
79
25
|
rm_translation_files
|
80
|
-
add_translation_files!
|
81
26
|
end
|
82
27
|
|
83
|
-
after
|
28
|
+
after do
|
84
29
|
rm_translation_files
|
85
|
-
described_class.import_safe_mode = false
|
86
30
|
end
|
87
31
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
).at_most(0).times
|
113
|
-
allow($stdin).to receive(:gets).and_return('N')
|
114
|
-
expect(import_executor).to output(/is not empty/).to_stdout
|
115
|
-
|
116
|
-
expect(LokaliseRails::TaskDefinition::Importer).not_to have_received(:download_files)
|
117
|
-
expect($stdin).to have_received(:gets)
|
118
|
-
expect(count_translations).to eq(1)
|
32
|
+
describe 'import' do
|
33
|
+
it 'is callable' do
|
34
|
+
allow_project_id global_config, ENV['LOKALISE_PROJECT_ID'] do
|
35
|
+
VCR.use_cassette('download_files') do
|
36
|
+
expect { Rake::Task['lokalise_rails:import'].execute }.to output(/complete!/).to_stdout
|
37
|
+
end
|
38
|
+
|
39
|
+
expect(count_translations).to eq(4)
|
40
|
+
|
41
|
+
expect_file_exist loc_path, 'en.yml'
|
42
|
+
expect_file_exist loc_path, 'ru.yml'
|
43
|
+
expect_file_exist loc_path, 'yo.yml'
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
it 're-raises export errors' do
|
48
|
+
allow_project_id global_config, 'fake' do
|
49
|
+
VCR.use_cassette('download_files_error') do
|
50
|
+
expect do
|
51
|
+
Rake::Task['lokalise_rails:import'].execute
|
52
|
+
end.to raise_error(SystemExit, /Invalid `project_id` parameter/)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
119
56
|
end
|
120
57
|
end
|
121
58
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe LokaliseRails::Utils do
|
4
|
+
describe '.rails_root' do
|
5
|
+
it 'returns RAILS_ROOT if defined' do
|
6
|
+
allow(::Rails).to receive(:root).and_return(nil)
|
7
|
+
stub_const('RAILS_ROOT', '/stub')
|
8
|
+
expect(described_class.rails_root).to eq('/stub')
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'fallbacks if neither roots are present' do
|
12
|
+
allow(::Rails).to receive(:root).and_return(nil)
|
13
|
+
expect(described_class.rails_root).to be_nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -7,7 +7,6 @@ SimpleCov.start 'rails' do
|
|
7
7
|
add_filter 'spec/'
|
8
8
|
add_filter '.github/'
|
9
9
|
add_filter 'lib/generators/templates/'
|
10
|
-
add_filter 'lib/lokalise_rails/version'
|
11
10
|
end
|
12
11
|
|
13
12
|
if ENV['CI'] == 'true'
|
@@ -25,7 +24,6 @@ ENV['RAILS_ROOT'] ||= "#{File.dirname(__FILE__)}../../../spec/dummy"
|
|
25
24
|
|
26
25
|
RSpec.configure do |config|
|
27
26
|
config.include FileManager
|
28
|
-
config.include RakeUtils
|
29
27
|
config.include SpecAddons
|
30
28
|
end
|
31
29
|
|
@@ -3,13 +3,10 @@
|
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
5
|
module FileManager
|
6
|
-
def expect_file_exist(path, file)
|
7
|
-
file_path = File.join path, file
|
8
|
-
expect(File.file?(file_path)).to be true
|
9
|
-
end
|
10
|
-
|
11
6
|
def mkdir_locales
|
12
|
-
|
7
|
+
return if File.directory?(LokaliseRails::GlobalConfig.locales_path)
|
8
|
+
|
9
|
+
FileUtils.mkdir_p(LokaliseRails::GlobalConfig.locales_path)
|
13
10
|
end
|
14
11
|
|
15
12
|
def rm_translation_files
|
@@ -17,7 +14,7 @@ module FileManager
|
|
17
14
|
end
|
18
15
|
|
19
16
|
def locales_dir
|
20
|
-
Dir["#{LokaliseRails.locales_path}/**/*"]
|
17
|
+
Dir["#{LokaliseRails::GlobalConfig.locales_path}/**/*"]
|
21
18
|
end
|
22
19
|
|
23
20
|
def count_translations
|
@@ -41,15 +38,15 @@ module FileManager
|
|
41
38
|
end
|
42
39
|
end
|
43
40
|
|
44
|
-
def add_config!
|
41
|
+
def add_config!(custom_text = '')
|
45
42
|
data = <<~DATA
|
46
|
-
|
47
|
-
LokaliseRails.config do |c|
|
43
|
+
LokaliseRails::GlobalConfig.config do |c|
|
48
44
|
c.api_token = ENV['LOKALISE_API_TOKEN']
|
49
45
|
c.project_id = ENV['LOKALISE_PROJECT_ID']
|
50
|
-
end
|
51
46
|
DATA
|
52
47
|
|
48
|
+
data += custom_text
|
49
|
+
data += "\nend"
|
53
50
|
open_and_write('config/lokalise_rails.rb') { |f| f.write data }
|
54
51
|
end
|
55
52
|
|
data/spec/support/spec_addons.rb
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module SpecAddons
|
4
|
-
def
|
5
|
-
|
4
|
+
def expect_file_exist(path, file)
|
5
|
+
file_path = File.join path, file
|
6
|
+
expect(File.file?(file_path)).to be true
|
7
|
+
end
|
8
|
+
|
9
|
+
def allow_project_id(obj, value)
|
10
|
+
allow(obj).to receive(:project_id).and_return(value)
|
6
11
|
return unless block_given?
|
7
12
|
|
8
13
|
yield
|
9
|
-
expect(
|
14
|
+
expect(obj).to have_received(:project_id)
|
10
15
|
end
|
11
16
|
end
|
metadata
CHANGED
@@ -1,183 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lokalise_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ilya Bodrov
|
7
|
+
- Ilya Bodrov-Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: lokalise_manager
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: zeitwerk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: codecov
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.2'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.2'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: dotenv
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.5'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.5'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rails
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 6.1.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 6.1.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '13.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '13.0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '3.6'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '3.6'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-performance
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.5'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.5'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rubocop-rspec
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 2.4.0
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 2.4.0
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: simplecov
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0.16'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0.16'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: vcr
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '6.0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '6.0'
|
40
|
+
version: '2.4'
|
181
41
|
description: This gem allows to exchange translation files between your Rails app
|
182
42
|
and Lokalise TMS.
|
183
43
|
email:
|
@@ -198,11 +58,9 @@ files:
|
|
198
58
|
- lib/generators/lokalise_rails/install_generator.rb
|
199
59
|
- lib/generators/templates/lokalise_rails_config.rb
|
200
60
|
- lib/lokalise_rails.rb
|
201
|
-
- lib/lokalise_rails/
|
61
|
+
- lib/lokalise_rails/global_config.rb
|
202
62
|
- lib/lokalise_rails/railtie.rb
|
203
|
-
- lib/lokalise_rails/
|
204
|
-
- lib/lokalise_rails/task_definition/exporter.rb
|
205
|
-
- lib/lokalise_rails/task_definition/importer.rb
|
63
|
+
- lib/lokalise_rails/utils.rb
|
206
64
|
- lib/lokalise_rails/version.rb
|
207
65
|
- lib/tasks/lokalise_rails_tasks.rake
|
208
66
|
- lokalise_rails.gemspec
|
@@ -215,35 +73,28 @@ files:
|
|
215
73
|
- spec/dummy/config/environments/development.rb
|
216
74
|
- spec/dummy/config/environments/production.rb
|
217
75
|
- spec/dummy/config/environments/test.rb
|
218
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
219
76
|
- spec/dummy/config/initializers/assets.rb
|
220
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
221
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
222
77
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
223
78
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
224
|
-
- spec/dummy/config/initializers/inflections.rb
|
225
|
-
- spec/dummy/config/initializers/mime_types.rb
|
226
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
227
79
|
- spec/dummy/config/lokalise_rails.rb
|
228
80
|
- spec/dummy/config/puma.rb
|
229
81
|
- spec/dummy/config/routes.rb
|
230
82
|
- spec/dummy/db/seeds.rb
|
231
83
|
- spec/lib/generators/lokalise_rails/install_generator_spec.rb
|
232
|
-
- spec/lib/lokalise_rails/
|
233
|
-
- spec/lib/lokalise_rails/
|
234
|
-
- spec/lib/lokalise_rails/task_definition/importer_spec.rb
|
235
|
-
- spec/lib/lokalise_rails_spec.rb
|
84
|
+
- spec/lib/lokalise_rails/global_config_spec.rb
|
85
|
+
- spec/lib/lokalise_rails/version_spec.rb
|
236
86
|
- spec/lib/tasks/export_task_spec.rb
|
237
87
|
- spec/lib/tasks/import_task_spec.rb
|
88
|
+
- spec/lib/utils_spec.rb
|
238
89
|
- spec/spec_helper.rb
|
239
90
|
- spec/support/file_manager.rb
|
240
|
-
- spec/support/rake_utils.rb
|
241
91
|
- spec/support/spec_addons.rb
|
242
92
|
- spec/support/vcr.rb
|
243
93
|
homepage: https://github.com/bodrovis/lokalise_rails
|
244
94
|
licenses:
|
245
95
|
- MIT
|
246
|
-
metadata:
|
96
|
+
metadata:
|
97
|
+
rubygems_mfa_required: 'true'
|
247
98
|
post_install_message:
|
248
99
|
rdoc_options: []
|
249
100
|
require_paths:
|
@@ -252,14 +103,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
103
|
requirements:
|
253
104
|
- - ">="
|
254
105
|
- !ruby/object:Gem::Version
|
255
|
-
version: 2.
|
106
|
+
version: 2.7.0
|
256
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
108
|
requirements:
|
258
109
|
- - ">="
|
259
110
|
- !ruby/object:Gem::Version
|
260
111
|
version: '0'
|
261
112
|
requirements: []
|
262
|
-
rubygems_version: 3.
|
113
|
+
rubygems_version: 3.3.8
|
263
114
|
signing_key:
|
264
115
|
specification_version: 4
|
265
116
|
summary: Lokalise integration for Ruby on Rails
|
@@ -273,28 +124,20 @@ test_files:
|
|
273
124
|
- spec/dummy/config/environments/development.rb
|
274
125
|
- spec/dummy/config/environments/production.rb
|
275
126
|
- spec/dummy/config/environments/test.rb
|
276
|
-
- spec/dummy/config/initializers/application_controller_renderer.rb
|
277
127
|
- spec/dummy/config/initializers/assets.rb
|
278
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
279
|
-
- spec/dummy/config/initializers/content_security_policy.rb
|
280
128
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
281
129
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
282
|
-
- spec/dummy/config/initializers/inflections.rb
|
283
|
-
- spec/dummy/config/initializers/mime_types.rb
|
284
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
285
130
|
- spec/dummy/config/lokalise_rails.rb
|
286
131
|
- spec/dummy/config/puma.rb
|
287
132
|
- spec/dummy/config/routes.rb
|
288
133
|
- spec/dummy/db/seeds.rb
|
289
134
|
- spec/lib/generators/lokalise_rails/install_generator_spec.rb
|
290
|
-
- spec/lib/lokalise_rails/
|
291
|
-
- spec/lib/lokalise_rails/
|
292
|
-
- spec/lib/lokalise_rails/task_definition/importer_spec.rb
|
293
|
-
- spec/lib/lokalise_rails_spec.rb
|
135
|
+
- spec/lib/lokalise_rails/global_config_spec.rb
|
136
|
+
- spec/lib/lokalise_rails/version_spec.rb
|
294
137
|
- spec/lib/tasks/export_task_spec.rb
|
295
138
|
- spec/lib/tasks/import_task_spec.rb
|
139
|
+
- spec/lib/utils_spec.rb
|
296
140
|
- spec/spec_helper.rb
|
297
141
|
- spec/support/file_manager.rb
|
298
|
-
- spec/support/rake_utils.rb
|
299
142
|
- spec/support/spec_addons.rb
|
300
143
|
- spec/support/vcr.rb
|