awesome_translations 0.0.56 → 0.0.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +1 -1
- data/app/controllers/awesome_translations/clean_ups_controller.rb +1 -1
- data/app/controllers/awesome_translations/groups_controller.rb +1 -0
- data/app/controllers/awesome_translations/handlers_controller.rb +1 -0
- data/app/helpers/awesome_translations/application_helper.rb +0 -1
- data/app/models/awesome_translations/group.rb +2 -2
- data/app/models/awesome_translations/translated_value.rb +4 -1
- data/app/models/awesome_translations/translation.rb +9 -4
- data/app/views/awesome_translations/duplicates/index.html.erb +2 -2
- data/app/views/awesome_translations/groups/show.html.erb +9 -4
- data/app/views/awesome_translations/handler_translations/index.html.erb +21 -6
- data/app/views/awesome_translations/handlers/show.html.erb +29 -6
- data/app/views/awesome_translations/movals/index.html.erb +2 -2
- data/lib/awesome_translations/cache_database_generator/group.rb +10 -3
- data/lib/awesome_translations/cache_database_generator/handler.rb +9 -2
- data/lib/awesome_translations/cache_database_generator/handler_translation.rb +13 -3
- data/lib/awesome_translations/cache_database_generator/translation_key.rb +4 -4
- data/lib/awesome_translations/cache_database_generator/translation_value.rb +3 -1
- data/lib/awesome_translations/cache_database_generator.rb +2 -2
- data/lib/awesome_translations/config.rb +3 -3
- data/lib/awesome_translations/engine.rb +0 -4
- data/lib/awesome_translations/erb_inspector/file_inspector.rb +7 -7
- data/lib/awesome_translations/erb_inspector/translation_inspector.rb +7 -7
- data/lib/awesome_translations/erb_inspector.rb +2 -1
- data/lib/awesome_translations/global_translator.rb +13 -27
- data/lib/awesome_translations/handlers/file_handler.rb +1 -0
- data/lib/awesome_translations/handlers/model_handler.rb +1 -1
- data/lib/awesome_translations/handlers/validations_handler.rb +4 -4
- data/lib/awesome_translations/handlers.rb +1 -0
- data/lib/awesome_translations/model_inspector.rb +19 -13
- data/lib/awesome_translations/translation_migrator.rb +1 -1
- data/lib/awesome_translations/version.rb +1 -1
- data/lib/awesome_translations.rb +1 -1
- data/lib/tasks/awesome_translations_tasks.rake +1 -1
- data/spec/controllers/groups_controller_spec.rb +5 -5
- data/spec/controllers/handlers_controller_spec.rb +1 -1
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/javascripts/translations.js +1 -0
- data/spec/dummy/app/controllers/users_controller.rb +1 -1
- data/spec/dummy/app/mailers/my_mailer.rb +1 -1
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/role.rb +1 -1
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/bin/bundle +1 -1
- data/spec/dummy/bin/rails +1 -1
- data/spec/dummy/config/application.rb +7 -2
- data/spec/dummy/config/boot.rb +2 -2
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config.ru +1 -1
- data/spec/factories/group.rb +2 -2
- data/spec/factories/handler.rb +4 -4
- data/spec/factories/handler_translation.rb +5 -5
- data/spec/factories/translation_key.rb +1 -1
- data/spec/factories/translation_value.rb +3 -3
- data/spec/features/clean_ups_spec.rb +1 -1
- data/spec/features/duplicates_spec.rb +4 -4
- data/spec/features/movals_spec.rb +7 -7
- data/spec/handlers/file_handler_spec.rb +8 -8
- data/spec/handlers/model_handler_spec.rb +4 -4
- data/spec/handlers/validations_handler_spec.rb +3 -3
- data/spec/handlers_spec.rb +1 -1
- data/spec/lib/cache_database_generator_spec.rb +3 -3
- data/spec/lib/erb_inspector/file_inspector_spec.rb +3 -2
- data/spec/lib/erb_inspector/translation_inspector_spec.rb +2 -2
- data/spec/lib/erb_inspector_spec.rb +5 -5
- data/spec/lib/model_inspector_spec.rb +4 -4
- data/spec/lib/translation_migrator_spec.rb +2 -2
- data/spec/models/awesome_translations/handler_spec.rb +1 -1
- data/spec/models/awesome_translations/translation_spec.rb +7 -2
- data/spec/spec_helper.rb +8 -6
- metadata +76 -94
- data/config/initializers/simple_form_ransack.rb +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe AwesomeTranslations::ErbInspector::FileInspector do
|
3
|
+
describe AwesomeTranslations::ErbInspector::FileInspector do # rubocop:disable RSpec/MultipleMemoizedHelpers
|
4
4
|
let(:erb_inspector) do
|
5
5
|
AwesomeTranslations::ErbInspector.new(
|
6
6
|
dirs: [Rails.root.to_s]
|
@@ -15,7 +15,7 @@ describe AwesomeTranslations::ErbInspector::FileInspector do
|
|
15
15
|
let(:user_index_translations) { user_index_inspector.translations.to_a }
|
16
16
|
let(:hello_world_translation) { user_index_translations.find { |translation| translation.key == ".hello_world" } }
|
17
17
|
|
18
|
-
describe "#translations" do
|
18
|
+
describe "#translations" do # rubocop:disable RSpec/MultipleMemoizedHelpers
|
19
19
|
it "finds the right number of translations" do
|
20
20
|
expect(user_index_translations.length).to eq 3
|
21
21
|
end
|
@@ -29,6 +29,7 @@ describe AwesomeTranslations::ErbInspector::FileInspector do
|
|
29
29
|
|
30
30
|
expect(translation_full_keys).to include "assets.javascripts.translations.hello_world"
|
31
31
|
expect(translation_full_keys).to include "javascripts.absolute.key"
|
32
|
+
expect(translation_full_keys).to include "javascripts.absolute.key_with_args"
|
32
33
|
end
|
33
34
|
|
34
35
|
it "finds liquid translations" do
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe AwesomeTranslations::ErbInspector::TranslationInspector do
|
3
|
+
describe AwesomeTranslations::ErbInspector::TranslationInspector do # rubocop:disable RSpec/MultipleMemoizedHelpers
|
4
4
|
let(:erb_inspector) do
|
5
5
|
AwesomeTranslations::ErbInspector.new(
|
6
6
|
dirs: [Rails.root.to_s]
|
@@ -24,7 +24,7 @@ describe AwesomeTranslations::ErbInspector::TranslationInspector do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "#full_path" do
|
27
|
-
expect(hello_world_translation.full_path).to eq Rails.root.join("app
|
27
|
+
expect(hello_world_translation.full_path).to eq Rails.root.join("app/views/users/index.html.haml").to_s
|
28
28
|
end
|
29
29
|
|
30
30
|
it "#dir" do
|
@@ -11,19 +11,19 @@ describe AwesomeTranslations::ErbInspector do
|
|
11
11
|
let(:file_paths) { files.map(&:file_path) }
|
12
12
|
|
13
13
|
describe "#files" do
|
14
|
-
it "
|
15
|
-
expect(files.length).to eq
|
14
|
+
it "finds the right amount of haml-files" do
|
15
|
+
expect(files.length).to eq 34
|
16
16
|
end
|
17
17
|
|
18
|
-
it "
|
18
|
+
it "finds haml-files" do
|
19
19
|
expect(file_paths).to include "app/views/users/index.html.haml"
|
20
20
|
end
|
21
21
|
|
22
|
-
it "
|
22
|
+
it "finds js-files" do
|
23
23
|
expect(file_paths).to include "app/assets/javascripts/translations.js"
|
24
24
|
end
|
25
25
|
|
26
|
-
it "
|
26
|
+
it "finds erb-files" do
|
27
27
|
expect(file_paths).to include "app/views/users/show.html.erb"
|
28
28
|
end
|
29
29
|
end
|
@@ -2,15 +2,15 @@ require "spec_helper"
|
|
2
2
|
|
3
3
|
describe AwesomeTranslations::ModelInspector do
|
4
4
|
let(:user_inspector) { AwesomeTranslations::ModelInspector.model_classes.find { |model_inspector| model_inspector.clazz == User } }
|
5
|
-
let(:model_classes) { AwesomeTranslations::ModelInspector.model_classes.map(&:clazz).
|
5
|
+
let(:model_classes) { AwesomeTranslations::ModelInspector.model_classes.map(&:clazz).reject { |clazz| clazz.name.end_with?("::Translation") } }
|
6
6
|
|
7
7
|
it "#model_classes" do
|
8
|
-
expect(model_classes.to_a.
|
8
|
+
expect(model_classes.to_a.sort_by(&:name)).to eq [ApplicationRecord, Role, User]
|
9
9
|
end
|
10
10
|
|
11
11
|
it "#engines" do
|
12
12
|
expected = [ActionView::Railtie, AwesomeTranslations::Engine, MoneyRails::Engine]
|
13
|
-
expect(AwesomeTranslations::ModelInspector.engines.map(&:class).
|
13
|
+
expect(AwesomeTranslations::ModelInspector.engines.map(&:class).sort_by(&:name)).to eq expected
|
14
14
|
end
|
15
15
|
|
16
16
|
it "#class_key" do
|
@@ -34,6 +34,6 @@ describe AwesomeTranslations::ModelInspector do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it "#attributes" do
|
37
|
-
expect(user_inspector.attributes.map(&:name).to_a).to eq %w
|
37
|
+
expect(user_inspector.attributes.map(&:name).to_a).to eq %w[id email password age]
|
38
38
|
end
|
39
39
|
end
|
@@ -27,8 +27,8 @@ describe AwesomeTranslations::TranslationMigrator do
|
|
27
27
|
it "moves the translation from one file to another and deletes the old file" do
|
28
28
|
old_path = translation_value.file_path
|
29
29
|
|
30
|
-
expect(old_path).
|
31
|
-
expect(translation_value.file_path).
|
30
|
+
expect(old_path).not_to eq nil
|
31
|
+
expect(translation_value.file_path).not_to eq handler_translation.file_path
|
32
32
|
expect(translation_value.key).to eq handler_translation.key
|
33
33
|
|
34
34
|
migrator = AwesomeTranslations::TranslationMigrator.new(
|
@@ -3,14 +3,14 @@ require "spec_helper"
|
|
3
3
|
describe AwesomeTranslations::Translation do
|
4
4
|
let(:day_names_monday_translation) do
|
5
5
|
AwesomeTranslations::Translation.new(
|
6
|
-
dir: Rails.root.join("config
|
6
|
+
dir: Rails.root.join("config/locales/awesome_translations/date_time"),
|
7
7
|
key: "date.day_names[1]"
|
8
8
|
)
|
9
9
|
end
|
10
10
|
|
11
11
|
let(:am_translation) do
|
12
12
|
AwesomeTranslations::Translation.new(
|
13
|
-
dir: Rails.root.join("config
|
13
|
+
dir: Rails.root.join("config/locales/awesome_translations/date_time"),
|
14
14
|
key: "time.am"
|
15
15
|
)
|
16
16
|
end
|
@@ -35,6 +35,11 @@ describe AwesomeTranslations::Translation do
|
|
35
35
|
it "returns correct value for normal translations" do
|
36
36
|
expect(am_translation.value(locale: "en")).to eq "am"
|
37
37
|
end
|
38
|
+
|
39
|
+
it "doesnt use fallbacks" do
|
40
|
+
expect(I18n).to receive(:t).with("time.am", default: nil, fallback: false).and_call_original
|
41
|
+
am_translation.value
|
42
|
+
end
|
38
43
|
end
|
39
44
|
|
40
45
|
describe "#value_for?" do
|
data/spec/spec_helper.rb
CHANGED
@@ -10,10 +10,12 @@ require "capybara-webkit"
|
|
10
10
|
require "factory_bot"
|
11
11
|
require "forgery"
|
12
12
|
require "globalize"
|
13
|
+
require "sass-rails"
|
14
|
+
require "simple_form"
|
13
15
|
|
14
16
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
15
17
|
# in spec/support/ and its subdirectories.
|
16
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
18
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |f| require f }
|
17
19
|
|
18
20
|
# Checks for pending migrations before tests are run.
|
19
21
|
# If you are not using ActiveRecord, you can remove this line.
|
@@ -40,7 +42,7 @@ RSpec.configure do |config|
|
|
40
42
|
generator.cache_translations
|
41
43
|
end
|
42
44
|
|
43
|
-
config.before
|
45
|
+
config.before do
|
44
46
|
Capybara.reset_sessions!
|
45
47
|
|
46
48
|
DatabaseCleaner.strategy = :transaction
|
@@ -55,7 +57,7 @@ RSpec.configure do |config|
|
|
55
57
|
DatabaseCleaner.strategy = :truncation
|
56
58
|
end
|
57
59
|
|
58
|
-
config.after
|
60
|
+
config.after do
|
59
61
|
DatabaseCleaner.clean
|
60
62
|
end
|
61
63
|
|
@@ -67,11 +69,11 @@ RSpec.configure do |config|
|
|
67
69
|
generator = AwesomeTranslations::CacheDatabaseGenerator.current
|
68
70
|
generator.close
|
69
71
|
|
70
|
-
translation_file = Rails.root.join("config
|
72
|
+
translation_file = Rails.root.join("config/locales/translations.yml").to_s
|
71
73
|
File.unlink(translation_file) if File.exist?(translation_file)
|
72
74
|
|
73
|
-
at_dir = Rails.root.join("config
|
75
|
+
at_dir = Rails.root.join("config/locales/awesome_translations").to_s
|
74
76
|
FileUtils.rm_rf(at_dir) if File.exist?(at_dir)
|
75
|
-
FileUtils.touch(Rails.root.join("config
|
77
|
+
FileUtils.touch(Rails.root.join("config/locales/.keep").to_s)
|
76
78
|
end
|
77
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_translations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.60
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Johansen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active-record-transactioner
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: array_enumerator
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.0.10
|
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
40
|
version: 0.0.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -58,20 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
62
|
-
- - "<="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.0.33
|
61
|
+
version: 0.0.37
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
66
|
- - ">="
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: 0.0.
|
72
|
-
- - "<="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.0.33
|
68
|
+
version: 0.0.37
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: baza_migrations
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +86,14 @@ dependencies:
|
|
92
86
|
requirements:
|
93
87
|
- - ">="
|
94
88
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0.0.
|
89
|
+
version: 0.0.14
|
96
90
|
type: :runtime
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
94
|
- - ">="
|
101
95
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.0.
|
96
|
+
version: 0.0.14
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: rails
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,50 +123,36 @@ dependencies:
|
|
129
123
|
- !ruby/object:Gem::Version
|
130
124
|
version: 4.0.5
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - ">="
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0'
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: simple_form_ransack
|
126
|
+
name: string-cases
|
147
127
|
requirement: !ruby/object:Gem::Requirement
|
148
128
|
requirements:
|
149
129
|
- - ">="
|
150
130
|
- !ruby/object:Gem::Version
|
151
|
-
version: 0.0.
|
131
|
+
version: 0.0.3
|
152
132
|
type: :runtime
|
153
133
|
prerelease: false
|
154
134
|
version_requirements: !ruby/object:Gem::Requirement
|
155
135
|
requirements:
|
156
136
|
- - ">="
|
157
137
|
- !ruby/object:Gem::Version
|
158
|
-
version: 0.0.
|
138
|
+
version: 0.0.3
|
159
139
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
140
|
+
name: simple_form
|
161
141
|
requirement: !ruby/object:Gem::Requirement
|
162
142
|
requirements:
|
163
143
|
- - ">="
|
164
144
|
- !ruby/object:Gem::Version
|
165
|
-
version: 0
|
166
|
-
type: :
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
149
|
requirements:
|
170
150
|
- - ">="
|
171
151
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0
|
152
|
+
version: '0'
|
173
153
|
description: Semi-automatic maintenance of most translations in a Rails app.
|
174
154
|
email:
|
175
|
-
-
|
155
|
+
- kaspernj@gmail.com
|
176
156
|
executables: []
|
177
157
|
extensions: []
|
178
158
|
extra_rdoc_files: []
|
@@ -208,7 +188,6 @@ files:
|
|
208
188
|
- app/views/awesome_translations/migrations/new.html.erb
|
209
189
|
- app/views/awesome_translations/movals/index.html.erb
|
210
190
|
- app/views/layouts/awesome_translations/application.html.erb
|
211
|
-
- config/initializers/simple_form_ransack.rb
|
212
191
|
- config/rails_best_practices.yml
|
213
192
|
- config/routes.rb
|
214
193
|
- db/baza_translations_migrations/20150902155200_create_translation_keys.rb
|
@@ -253,6 +232,7 @@ files:
|
|
253
232
|
- spec/controllers/users_controller_spec.rb
|
254
233
|
- spec/dummy/README.rdoc
|
255
234
|
- spec/dummy/Rakefile
|
235
|
+
- spec/dummy/app/assets/config/manifest.js
|
256
236
|
- spec/dummy/app/assets/javascripts/application.js
|
257
237
|
- spec/dummy/app/assets/javascripts/translations.js
|
258
238
|
- spec/dummy/app/assets/stylesheets/application.css
|
@@ -261,6 +241,7 @@ files:
|
|
261
241
|
- spec/dummy/app/controllers/users_controller.rb
|
262
242
|
- spec/dummy/app/helpers/application_helper.rb
|
263
243
|
- spec/dummy/app/mailers/my_mailer.rb
|
244
|
+
- spec/dummy/app/models/application_record.rb
|
264
245
|
- spec/dummy/app/models/role.rb
|
265
246
|
- spec/dummy/app/models/user.rb
|
266
247
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -331,88 +312,89 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
331
312
|
requirements:
|
332
313
|
- - ">="
|
333
314
|
- !ruby/object:Gem::Version
|
334
|
-
version: '
|
315
|
+
version: '2.5'
|
335
316
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
336
317
|
requirements:
|
337
318
|
- - ">="
|
338
319
|
- !ruby/object:Gem::Version
|
339
320
|
version: '0'
|
340
321
|
requirements: []
|
341
|
-
|
342
|
-
rubygems_version: 2.6.13
|
322
|
+
rubygems_version: 3.1.6
|
343
323
|
signing_key:
|
344
324
|
specification_version: 4
|
345
325
|
summary: Semi-automatic maintenance of most translations in a Rails app.
|
346
326
|
test_files:
|
327
|
+
- spec/handlers_spec.rb
|
328
|
+
- spec/controllers/groups_controller_spec.rb
|
329
|
+
- spec/controllers/users_controller_spec.rb
|
330
|
+
- spec/controllers/handlers_controller_spec.rb
|
331
|
+
- spec/features/duplicates_spec.rb
|
332
|
+
- spec/features/movals_spec.rb
|
333
|
+
- spec/features/clean_ups_spec.rb
|
334
|
+
- spec/handlers/file_handler_spec.rb
|
347
335
|
- spec/handlers/model_handler_spec.rb
|
348
336
|
- spec/handlers/validations_handler_spec.rb
|
349
|
-
- spec/
|
350
|
-
- spec/
|
351
|
-
- spec/
|
352
|
-
- spec/
|
353
|
-
- spec/
|
354
|
-
- spec/
|
355
|
-
- spec/
|
356
|
-
- spec/
|
357
|
-
- spec/
|
358
|
-
- spec/dummy/config/
|
337
|
+
- spec/spec_helper.rb
|
338
|
+
- spec/models/awesome_translations/handler_spec.rb
|
339
|
+
- spec/models/awesome_translations/translated_value_spec.rb
|
340
|
+
- spec/models/awesome_translations/translation_spec.rb
|
341
|
+
- spec/dummy/config/environment.rb
|
342
|
+
- spec/dummy/config/routes.rb
|
343
|
+
- spec/dummy/config/environments/test.rb
|
344
|
+
- spec/dummy/config/environments/development.rb
|
345
|
+
- spec/dummy/config/environments/production.rb
|
346
|
+
- spec/dummy/config/boot.rb
|
347
|
+
- spec/dummy/config/application.rb
|
348
|
+
- spec/dummy/config/database.yml
|
359
349
|
- spec/dummy/config/initializers/inflections.rb
|
350
|
+
- spec/dummy/config/initializers/mime_types.rb
|
360
351
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
361
|
-
- spec/dummy/config/initializers/secret_token.rb
|
362
352
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
363
|
-
- spec/dummy/config/initializers/mime_types.rb
|
364
353
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
365
|
-
- spec/dummy/config/
|
366
|
-
- spec/dummy/config/
|
367
|
-
- spec/dummy/
|
368
|
-
- spec/dummy/
|
369
|
-
- spec/dummy/
|
370
|
-
- spec/dummy/
|
371
|
-
- spec/dummy/config/environments/production.rb
|
372
|
-
- spec/dummy/config/routes.rb
|
373
|
-
- spec/dummy/Rakefile
|
354
|
+
- spec/dummy/config/initializers/session_store.rb
|
355
|
+
- spec/dummy/config/initializers/secret_token.rb
|
356
|
+
- spec/dummy/README.rdoc
|
357
|
+
- spec/dummy/bin/rails
|
358
|
+
- spec/dummy/bin/bundle
|
359
|
+
- spec/dummy/bin/rake
|
374
360
|
- spec/dummy/config.ru
|
375
|
-
- spec/dummy/db/schema.rb
|
376
|
-
- spec/dummy/db/migrate/20141018081640_create_roles.rb
|
377
361
|
- spec/dummy/db/migrate/20141018081559_create_users.rb
|
362
|
+
- spec/dummy/db/migrate/20141018081640_create_roles.rb
|
378
363
|
- spec/dummy/db/migrate/20150607110245_add_price_cents_to_roles.rb
|
379
|
-
- spec/dummy/
|
380
|
-
- spec/dummy/
|
381
|
-
- spec/dummy/
|
382
|
-
- spec/dummy/public/favicon.ico
|
383
|
-
- spec/dummy/bin/rake
|
384
|
-
- spec/dummy/bin/bundle
|
385
|
-
- spec/dummy/bin/rails
|
386
|
-
- spec/dummy/README.rdoc
|
387
|
-
- spec/dummy/app/mailers/my_mailer.rb
|
388
|
-
- spec/dummy/app/helpers/application_helper.rb
|
364
|
+
- spec/dummy/db/schema.rb
|
365
|
+
- spec/dummy/Rakefile
|
366
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
389
367
|
- spec/dummy/app/views/users/edit.html.liquid
|
390
|
-
- spec/dummy/app/views/users/index.html.haml
|
391
368
|
- spec/dummy/app/views/users/_partial_test.html.erb
|
392
369
|
- spec/dummy/app/views/users/show.html.erb
|
393
|
-
- spec/dummy/app/views/
|
394
|
-
- spec/dummy/app/
|
395
|
-
- spec/dummy/app/
|
396
|
-
- spec/dummy/app/controllers/locales_controller.rb
|
397
|
-
- spec/dummy/app/controllers/application_controller.rb
|
398
|
-
- spec/dummy/app/controllers/users_controller.rb
|
370
|
+
- spec/dummy/app/views/users/index.html.haml
|
371
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
372
|
+
- spec/dummy/app/assets/config/manifest.js
|
399
373
|
- spec/dummy/app/assets/javascripts/translations.js
|
400
374
|
- spec/dummy/app/assets/javascripts/application.js
|
401
|
-
- spec/dummy/app/
|
402
|
-
- spec/
|
403
|
-
- spec/
|
404
|
-
- spec/
|
405
|
-
- spec/
|
406
|
-
- spec/
|
407
|
-
- spec/
|
408
|
-
- spec/
|
409
|
-
- spec/
|
410
|
-
- spec/
|
411
|
-
- spec/
|
412
|
-
- spec/
|
375
|
+
- spec/dummy/app/controllers/users_controller.rb
|
376
|
+
- spec/dummy/app/controllers/locales_controller.rb
|
377
|
+
- spec/dummy/app/controllers/application_controller.rb
|
378
|
+
- spec/dummy/app/helpers/application_helper.rb
|
379
|
+
- spec/dummy/app/mailers/my_mailer.rb
|
380
|
+
- spec/dummy/app/models/role.rb
|
381
|
+
- spec/dummy/app/models/user.rb
|
382
|
+
- spec/dummy/app/models/application_record.rb
|
383
|
+
- spec/dummy/public/500.html
|
384
|
+
- spec/dummy/public/404.html
|
385
|
+
- spec/dummy/public/422.html
|
386
|
+
- spec/dummy/public/favicon.ico
|
413
387
|
- spec/factories/translation_value.rb
|
414
388
|
- spec/factories/group.rb
|
415
|
-
- spec/factories/
|
389
|
+
- spec/factories/user.rb
|
416
390
|
- spec/factories/handler_translation.rb
|
417
391
|
- spec/factories/translation_key.rb
|
418
|
-
- spec/
|
392
|
+
- spec/factories/handler.rb
|
393
|
+
- spec/lib/erb_inspector/file_inspector_spec.rb
|
394
|
+
- spec/lib/erb_inspector/translation_inspector_spec.rb
|
395
|
+
- spec/lib/model_inspector/attribute_spec.rb
|
396
|
+
- spec/lib/translation_migrator_spec.rb
|
397
|
+
- spec/lib/model_inspector_spec.rb
|
398
|
+
- spec/lib/cache_database_generator_spec.rb
|
399
|
+
- spec/lib/erb_inspector_spec.rb
|
400
|
+
- spec/lib/object_extensions_spec.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
Rails.application.config.i18n.load_path += SimpleFormRansack.locale_files
|