lokalise_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/CODE_OF_CONDUCT.md +46 -0
- data/.github/CONTRIBUTING.md +14 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/LICENSE +22 -0
- data/README.md +92 -0
- data/Rakefile +21 -0
- data/lib/generators/lokalise_rails/install_generator.rb +17 -0
- data/lib/generators/templates/lokalise_rails_config.rb +29 -0
- data/lib/lokalise_rails.rb +31 -0
- data/lib/lokalise_rails/railtie.rb +9 -0
- data/lib/lokalise_rails/task_definition/base.rb +19 -0
- data/lib/lokalise_rails/task_definition/importer.rb +51 -0
- data/lib/lokalise_rails/version.rb +5 -0
- data/lokalise_rails.gemspec +44 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/app/helpers/application_helper.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/config/application.rb +34 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +56 -0
- data/spec/dummy/config/environments/production.rb +100 -0
- data/spec/dummy/config/environments/test.rb +40 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +9 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +29 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -0
- data/spec/dummy/config/initializers/inflections.rb +17 -0
- data/spec/dummy/config/initializers/lokalise_rails.rb +29 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +16 -0
- data/spec/dummy/config/puma.rb +40 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/db/seeds.rb +8 -0
- data/spec/lib/generators/lokalise_rails/install_generator_spec.rb +19 -0
- data/spec/lib/lokalise_rails/importer_spec.rb +30 -0
- data/spec/lib/lokalise_rails_spec.rb +36 -0
- data/spec/lib/tasks/import_task_spec.rb +82 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/file_utils.rb +27 -0
- data/spec/support/rake_utils.rb +11 -0
- data/spec/support/vcr.rb +11 -0
- metadata +317 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
3
|
+
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
|
4
|
+
#
|
5
|
+
# Examples:
|
6
|
+
#
|
7
|
+
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
8
|
+
# Character.create(name: 'Luke', movie: movies.first)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'generators/lokalise_rails/install_generator'
|
4
|
+
|
5
|
+
describe LokaliseRails::Generators::InstallGenerator do
|
6
|
+
before :all do
|
7
|
+
remove_config
|
8
|
+
end
|
9
|
+
|
10
|
+
after :all do
|
11
|
+
remove_config
|
12
|
+
described_class.start
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'installs config file properly' do
|
16
|
+
described_class.start
|
17
|
+
expect(File.file?(config_file)).to be true
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe LokaliseRails::TaskDefinition::Importer do
|
4
|
+
describe '.download_files' do
|
5
|
+
it 'returns a proper download URL' do
|
6
|
+
response = VCR.use_cassette('download_files') do
|
7
|
+
described_class.download_files
|
8
|
+
end
|
9
|
+
|
10
|
+
expect(response['project_id']).to eq('189934715f57a162257d74.88352370')
|
11
|
+
expect(response['bundle_url']).to include('s3-eu-west-1.amazonaws.com')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '.import!' do
|
16
|
+
it 'halts when the API key is not set' do
|
17
|
+
expect(LokaliseRails).to receive(:api_token).and_return(nil)
|
18
|
+
result = described_class.import!
|
19
|
+
expect(result).to include('API token is not set')
|
20
|
+
expect(count_translations).to eq(0)
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'halts when the project_id is not set' do
|
24
|
+
expect(LokaliseRails).to receive(:project_id).and_return(nil)
|
25
|
+
result = described_class.import!
|
26
|
+
expect(result).to include('Project ID is not set')
|
27
|
+
expect(count_translations).to eq(0)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
describe LokaliseRails do
|
4
|
+
describe 'parameters' do
|
5
|
+
let(:fake_class) { class_double('LokaliseRails') }
|
6
|
+
|
7
|
+
it 'is possible to set project_id' do
|
8
|
+
expect(fake_class).to receive(:project_id=).with('123.abc')
|
9
|
+
fake_class.project_id = '123.abc'
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'is possible to set import_opts' do
|
13
|
+
expect(fake_class).to receive(:import_opts=).with(duck_type(:each))
|
14
|
+
fake_class.import_opts = {
|
15
|
+
format: 'json',
|
16
|
+
indentation: '8sp'
|
17
|
+
}
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'is possible to set import_safe_mode' do
|
21
|
+
expect(fake_class).to receive(:import_safe_mode=).with(true)
|
22
|
+
fake_class.import_safe_mode = true
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'is possible to set api_token' do
|
26
|
+
expect(fake_class).to receive(:api_token=).with('abc')
|
27
|
+
fake_class.api_token = 'abc'
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'is possible to override locales_path' do
|
31
|
+
expect(fake_class).to receive(:locales_path).and_return('/demo/path')
|
32
|
+
|
33
|
+
expect(fake_class.locales_path).to eq('/demo/path')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
RSpec.describe LokaliseRails do
|
6
|
+
context 'when directory is empty' do
|
7
|
+
before do
|
8
|
+
mkdir_locales
|
9
|
+
rm_translation_files
|
10
|
+
end
|
11
|
+
|
12
|
+
after :all do
|
13
|
+
rm_translation_files
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'is callable' do
|
17
|
+
expect(LokaliseRails::TaskDefinition::Importer).to receive(
|
18
|
+
:download_files
|
19
|
+
).and_return(
|
20
|
+
{
|
21
|
+
'project_id' => '123.abc',
|
22
|
+
'bundle_url' => "#{Rails.root}/public/translations.zip"
|
23
|
+
}
|
24
|
+
)
|
25
|
+
|
26
|
+
expect(import_executor).to output(/complete!/).to_stdout
|
27
|
+
|
28
|
+
expect(count_translations).to eq(4)
|
29
|
+
|
30
|
+
main_en = File.join described_class.locales_path, 'main_en.yml'
|
31
|
+
expect(File.file?(main_en)).to be true
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'downloads ZIP archive properly' do
|
35
|
+
expect(LokaliseRails::TaskDefinition::Importer).to receive(
|
36
|
+
:download_files
|
37
|
+
).and_return(
|
38
|
+
{
|
39
|
+
'project_id' => '123.abc',
|
40
|
+
'bundle_url' => 'https://github.com/bodrovis/lokalise_rails/blob/master/spec/dummy/public/translations.zip?raw=true'
|
41
|
+
}
|
42
|
+
)
|
43
|
+
|
44
|
+
expect(import_executor).to output(/complete!/).to_stdout
|
45
|
+
|
46
|
+
expect(count_translations).to eq(4)
|
47
|
+
|
48
|
+
main_en = File.join described_class.locales_path, 'main_en.yml'
|
49
|
+
expect(File.file?(main_en)).to be true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'when directory is not empty' do
|
54
|
+
before :all do
|
55
|
+
mkdir_locales
|
56
|
+
rm_translation_files
|
57
|
+
temp_file = File.join described_class.locales_path, 'kill.me'
|
58
|
+
File.open(temp_file, 'w+') { |file| file.write('temp') }
|
59
|
+
described_class.import_safe_mode = true
|
60
|
+
end
|
61
|
+
|
62
|
+
after :all do
|
63
|
+
rm_translation_files
|
64
|
+
described_class.import_safe_mode = false
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'returns a success message with default settings' do
|
68
|
+
expect(LokaliseRails::TaskDefinition::Importer).to receive(
|
69
|
+
:download_files
|
70
|
+
).and_return(
|
71
|
+
{
|
72
|
+
'project_id' => '123.abc',
|
73
|
+
'bundle_url' => "#{Rails.root}/public/translations.zip"
|
74
|
+
}
|
75
|
+
)
|
76
|
+
expect($stdin).to receive(:gets).and_return('Y')
|
77
|
+
expect(import_executor).to output(/is not empty/).to_stdout
|
78
|
+
|
79
|
+
expect(count_translations).to eq(5)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'dotenv/load'
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start 'rails' do
|
6
|
+
add_filter 'spec/'
|
7
|
+
add_filter '.github/'
|
8
|
+
add_filter 'lib/generators/templates/'
|
9
|
+
end
|
10
|
+
|
11
|
+
if ENV['CI'] == 'true'
|
12
|
+
require 'codecov'
|
13
|
+
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
14
|
+
end
|
15
|
+
|
16
|
+
# Support files
|
17
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
18
|
+
|
19
|
+
# Configure Rails Environment
|
20
|
+
ENV['RAILS_ENV'] = 'test'
|
21
|
+
|
22
|
+
require_relative '../spec/dummy/config/environment'
|
23
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path('../spec/dummy/db/migrate', __dir__)]
|
24
|
+
ENV['RAILS_ROOT'] ||= "#{File.dirname(__FILE__)}../../../spec/dummy"
|
25
|
+
|
26
|
+
require 'rspec/rails'
|
27
|
+
|
28
|
+
RSpec.configure do |config|
|
29
|
+
config.include FileUtils
|
30
|
+
config.include RakeUtils
|
31
|
+
end
|
32
|
+
|
33
|
+
Rails.application.load_tasks
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module FileUtils
|
4
|
+
def mkdir_locales
|
5
|
+
FileUtils.mkdir_p(LokaliseRails.locales_path) unless File.directory?(LokaliseRails.locales_path)
|
6
|
+
end
|
7
|
+
|
8
|
+
def rm_translation_files
|
9
|
+
FileUtils.rm_rf locales_dir
|
10
|
+
end
|
11
|
+
|
12
|
+
def locales_dir
|
13
|
+
Dir["#{LokaliseRails.locales_path}/*"]
|
14
|
+
end
|
15
|
+
|
16
|
+
def count_translations
|
17
|
+
locales_dir.count { |file| File.file?(file) }
|
18
|
+
end
|
19
|
+
|
20
|
+
def remove_config
|
21
|
+
FileUtils.remove_file config_file if File.file?(config_file)
|
22
|
+
end
|
23
|
+
|
24
|
+
def config_file
|
25
|
+
"#{Rails.root}/config/initializers/lokalise_rails.rb"
|
26
|
+
end
|
27
|
+
end
|
data/spec/support/vcr.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'vcr'
|
4
|
+
|
5
|
+
VCR.configure do |c|
|
6
|
+
c.ignore_hosts 'codeclimate.com'
|
7
|
+
c.hook_into :faraday
|
8
|
+
c.cassette_library_dir = File.join(File.dirname(__FILE__), '..', 'fixtures', 'vcr_cassettes')
|
9
|
+
c.filter_sensitive_data('<LOKALISE_TOKEN>') { ENV.fetch('LOKALISE_API_TOKEN') }
|
10
|
+
c.configure_rspec_metadata!
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,317 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lokalise_rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ilya Bodrov
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ruby-lokalise-api
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubyzip
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.3'
|
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.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.1'
|
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.0.3
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 6.0.3
|
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: rspec-rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '4.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '4.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.60'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.60'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-performance
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.5'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.5'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop-rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.37'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.37'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: simplecov
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.16'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.16'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: sqlite3
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.4'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '1.4'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: vcr
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '6.0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '6.0'
|
209
|
+
description: This gem allows to exchange translation files between your Rails app
|
210
|
+
and Lokalise TMS.
|
211
|
+
email:
|
212
|
+
- golosizpru@gmail.com
|
213
|
+
executables: []
|
214
|
+
extensions: []
|
215
|
+
extra_rdoc_files:
|
216
|
+
- README.md
|
217
|
+
files:
|
218
|
+
- ".github/CODE_OF_CONDUCT.md"
|
219
|
+
- ".github/CONTRIBUTING.md"
|
220
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
221
|
+
- CHANGELOG.md
|
222
|
+
- Gemfile
|
223
|
+
- LICENSE
|
224
|
+
- README.md
|
225
|
+
- Rakefile
|
226
|
+
- lib/generators/lokalise_rails/install_generator.rb
|
227
|
+
- lib/generators/templates/lokalise_rails_config.rb
|
228
|
+
- lib/lokalise_rails.rb
|
229
|
+
- lib/lokalise_rails/railtie.rb
|
230
|
+
- lib/lokalise_rails/task_definition/base.rb
|
231
|
+
- lib/lokalise_rails/task_definition/importer.rb
|
232
|
+
- lib/lokalise_rails/version.rb
|
233
|
+
- lokalise_rails.gemspec
|
234
|
+
- spec/dummy/app/controllers/application_controller.rb
|
235
|
+
- spec/dummy/app/helpers/application_helper.rb
|
236
|
+
- spec/dummy/app/models/application_record.rb
|
237
|
+
- spec/dummy/config/application.rb
|
238
|
+
- spec/dummy/config/boot.rb
|
239
|
+
- spec/dummy/config/environment.rb
|
240
|
+
- spec/dummy/config/environments/development.rb
|
241
|
+
- spec/dummy/config/environments/production.rb
|
242
|
+
- spec/dummy/config/environments/test.rb
|
243
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
244
|
+
- spec/dummy/config/initializers/assets.rb
|
245
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
246
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
247
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
248
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
249
|
+
- spec/dummy/config/initializers/inflections.rb
|
250
|
+
- spec/dummy/config/initializers/lokalise_rails.rb
|
251
|
+
- spec/dummy/config/initializers/mime_types.rb
|
252
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
253
|
+
- spec/dummy/config/puma.rb
|
254
|
+
- spec/dummy/config/routes.rb
|
255
|
+
- spec/dummy/db/seeds.rb
|
256
|
+
- spec/lib/generators/lokalise_rails/install_generator_spec.rb
|
257
|
+
- spec/lib/lokalise_rails/importer_spec.rb
|
258
|
+
- spec/lib/lokalise_rails_spec.rb
|
259
|
+
- spec/lib/tasks/import_task_spec.rb
|
260
|
+
- spec/spec_helper.rb
|
261
|
+
- spec/support/file_utils.rb
|
262
|
+
- spec/support/rake_utils.rb
|
263
|
+
- spec/support/vcr.rb
|
264
|
+
homepage: https://github.com/bodrovis/lokalise_rails
|
265
|
+
licenses:
|
266
|
+
- MIT
|
267
|
+
metadata: {}
|
268
|
+
post_install_message:
|
269
|
+
rdoc_options: []
|
270
|
+
require_paths:
|
271
|
+
- lib
|
272
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: 2.5.0
|
277
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
|
+
requirements:
|
279
|
+
- - ">="
|
280
|
+
- !ruby/object:Gem::Version
|
281
|
+
version: '0'
|
282
|
+
requirements: []
|
283
|
+
rubygems_version: 3.1.4
|
284
|
+
signing_key:
|
285
|
+
specification_version: 4
|
286
|
+
summary: Lokalise integration for Ruby on Rails
|
287
|
+
test_files:
|
288
|
+
- spec/dummy/app/controllers/application_controller.rb
|
289
|
+
- spec/dummy/app/helpers/application_helper.rb
|
290
|
+
- spec/dummy/app/models/application_record.rb
|
291
|
+
- spec/dummy/config/application.rb
|
292
|
+
- spec/dummy/config/boot.rb
|
293
|
+
- spec/dummy/config/environment.rb
|
294
|
+
- spec/dummy/config/environments/development.rb
|
295
|
+
- spec/dummy/config/environments/production.rb
|
296
|
+
- spec/dummy/config/environments/test.rb
|
297
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
298
|
+
- spec/dummy/config/initializers/assets.rb
|
299
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
300
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
301
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
302
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
303
|
+
- spec/dummy/config/initializers/inflections.rb
|
304
|
+
- spec/dummy/config/initializers/lokalise_rails.rb
|
305
|
+
- spec/dummy/config/initializers/mime_types.rb
|
306
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
307
|
+
- spec/dummy/config/puma.rb
|
308
|
+
- spec/dummy/config/routes.rb
|
309
|
+
- spec/dummy/db/seeds.rb
|
310
|
+
- spec/lib/generators/lokalise_rails/install_generator_spec.rb
|
311
|
+
- spec/lib/lokalise_rails/importer_spec.rb
|
312
|
+
- spec/lib/lokalise_rails_spec.rb
|
313
|
+
- spec/lib/tasks/import_task_spec.rb
|
314
|
+
- spec/spec_helper.rb
|
315
|
+
- spec/support/file_utils.rb
|
316
|
+
- spec/support/rake_utils.rb
|
317
|
+
- spec/support/vcr.rb
|