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.
Files changed (74) hide show
  1. checksums.yaml +5 -5
  2. data/Rakefile +1 -1
  3. data/app/controllers/awesome_translations/clean_ups_controller.rb +1 -1
  4. data/app/controllers/awesome_translations/groups_controller.rb +1 -0
  5. data/app/controllers/awesome_translations/handlers_controller.rb +1 -0
  6. data/app/helpers/awesome_translations/application_helper.rb +0 -1
  7. data/app/models/awesome_translations/group.rb +2 -2
  8. data/app/models/awesome_translations/translated_value.rb +4 -1
  9. data/app/models/awesome_translations/translation.rb +9 -4
  10. data/app/views/awesome_translations/duplicates/index.html.erb +2 -2
  11. data/app/views/awesome_translations/groups/show.html.erb +9 -4
  12. data/app/views/awesome_translations/handler_translations/index.html.erb +21 -6
  13. data/app/views/awesome_translations/handlers/show.html.erb +29 -6
  14. data/app/views/awesome_translations/movals/index.html.erb +2 -2
  15. data/lib/awesome_translations/cache_database_generator/group.rb +10 -3
  16. data/lib/awesome_translations/cache_database_generator/handler.rb +9 -2
  17. data/lib/awesome_translations/cache_database_generator/handler_translation.rb +13 -3
  18. data/lib/awesome_translations/cache_database_generator/translation_key.rb +4 -4
  19. data/lib/awesome_translations/cache_database_generator/translation_value.rb +3 -1
  20. data/lib/awesome_translations/cache_database_generator.rb +2 -2
  21. data/lib/awesome_translations/config.rb +3 -3
  22. data/lib/awesome_translations/engine.rb +0 -4
  23. data/lib/awesome_translations/erb_inspector/file_inspector.rb +7 -7
  24. data/lib/awesome_translations/erb_inspector/translation_inspector.rb +7 -7
  25. data/lib/awesome_translations/erb_inspector.rb +2 -1
  26. data/lib/awesome_translations/global_translator.rb +13 -27
  27. data/lib/awesome_translations/handlers/file_handler.rb +1 -0
  28. data/lib/awesome_translations/handlers/model_handler.rb +1 -1
  29. data/lib/awesome_translations/handlers/validations_handler.rb +4 -4
  30. data/lib/awesome_translations/handlers.rb +1 -0
  31. data/lib/awesome_translations/model_inspector.rb +19 -13
  32. data/lib/awesome_translations/translation_migrator.rb +1 -1
  33. data/lib/awesome_translations/version.rb +1 -1
  34. data/lib/awesome_translations.rb +1 -1
  35. data/lib/tasks/awesome_translations_tasks.rake +1 -1
  36. data/spec/controllers/groups_controller_spec.rb +5 -5
  37. data/spec/controllers/handlers_controller_spec.rb +1 -1
  38. data/spec/dummy/Rakefile +1 -1
  39. data/spec/dummy/app/assets/config/manifest.js +3 -0
  40. data/spec/dummy/app/assets/javascripts/translations.js +1 -0
  41. data/spec/dummy/app/controllers/users_controller.rb +1 -1
  42. data/spec/dummy/app/mailers/my_mailer.rb +1 -1
  43. data/spec/dummy/app/models/application_record.rb +3 -0
  44. data/spec/dummy/app/models/role.rb +1 -1
  45. data/spec/dummy/app/models/user.rb +1 -1
  46. data/spec/dummy/bin/bundle +1 -1
  47. data/spec/dummy/bin/rails +1 -1
  48. data/spec/dummy/config/application.rb +7 -2
  49. data/spec/dummy/config/boot.rb +2 -2
  50. data/spec/dummy/config/environment.rb +1 -1
  51. data/spec/dummy/config.ru +1 -1
  52. data/spec/factories/group.rb +2 -2
  53. data/spec/factories/handler.rb +4 -4
  54. data/spec/factories/handler_translation.rb +5 -5
  55. data/spec/factories/translation_key.rb +1 -1
  56. data/spec/factories/translation_value.rb +3 -3
  57. data/spec/features/clean_ups_spec.rb +1 -1
  58. data/spec/features/duplicates_spec.rb +4 -4
  59. data/spec/features/movals_spec.rb +7 -7
  60. data/spec/handlers/file_handler_spec.rb +8 -8
  61. data/spec/handlers/model_handler_spec.rb +4 -4
  62. data/spec/handlers/validations_handler_spec.rb +3 -3
  63. data/spec/handlers_spec.rb +1 -1
  64. data/spec/lib/cache_database_generator_spec.rb +3 -3
  65. data/spec/lib/erb_inspector/file_inspector_spec.rb +3 -2
  66. data/spec/lib/erb_inspector/translation_inspector_spec.rb +2 -2
  67. data/spec/lib/erb_inspector_spec.rb +5 -5
  68. data/spec/lib/model_inspector_spec.rb +4 -4
  69. data/spec/lib/translation_migrator_spec.rb +2 -2
  70. data/spec/models/awesome_translations/handler_spec.rb +1 -1
  71. data/spec/models/awesome_translations/translation_spec.rb +7 -2
  72. data/spec/spec_helper.rb +8 -6
  73. metadata +76 -94
  74. 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", "views", "users", "index.html.haml").to_s
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 "should find haml-files" do
15
- expect(files.length).to eq 32
14
+ it "finds the right amount of haml-files" do
15
+ expect(files.length).to eq 34
16
16
  end
17
17
 
18
- it "should find haml-files" do
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 "should find js-files" do
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 "should find erb-files" do
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).select { |clazz| !clazz.name.end_with?("::Translation") } }
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.sort { |class1, class2| class1.name <=> class2.name }).to eq [Role, User]
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).sort { |class1, class2| class1.name <=> class2.name }).to eq expected
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(id email password age)
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).to_not eq nil
31
- expect(translation_value.file_path).to_not eq handler_translation.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(
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe AwesomeTranslations::Handler do
4
- it "should list available handlers" do
4
+ it "lists available handlers" do
5
5
  handlers = AwesomeTranslations::Handler.all
6
6
  expect(handlers.length).to be > 0
7
7
  end
@@ -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", "locales", "awesome_translations", "date_time"),
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", "locales", "awesome_translations", "date_time"),
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(:each) do
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(:each) do
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", "locales", "translations.yml").to_s
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", "locales", "awesome_translations").to_s
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", "locales", ".keep").to_s)
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.56
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: 2018-07-27 00:00:00.000000000 Z
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.29
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.29
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.10
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.10
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: simple_form
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.18
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.18
138
+ version: 0.0.3
159
139
  - !ruby/object:Gem::Dependency
160
- name: string-cases
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.0.3
166
- type: :runtime
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.0.3
152
+ version: '0'
173
153
  description: Semi-automatic maintenance of most translations in a Rails app.
174
154
  email:
175
- - k@spernj.org
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: '0'
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
- rubyforge_project:
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/handlers/file_handler_spec.rb
350
- - spec/lib/erb_inspector/file_inspector_spec.rb
351
- - spec/lib/erb_inspector/translation_inspector_spec.rb
352
- - spec/lib/model_inspector/attribute_spec.rb
353
- - spec/lib/erb_inspector_spec.rb
354
- - spec/lib/object_extensions_spec.rb
355
- - spec/lib/model_inspector_spec.rb
356
- - spec/lib/cache_database_generator_spec.rb
357
- - spec/lib/translation_migrator_spec.rb
358
- - spec/dummy/config/initializers/session_store.rb
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/database.yml
366
- - spec/dummy/config/boot.rb
367
- - spec/dummy/config/environment.rb
368
- - spec/dummy/config/application.rb
369
- - spec/dummy/config/environments/development.rb
370
- - spec/dummy/config/environments/test.rb
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/public/404.html
380
- - spec/dummy/public/500.html
381
- - spec/dummy/public/422.html
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/layouts/application.html.erb
394
- - spec/dummy/app/models/user.rb
395
- - spec/dummy/app/models/role.rb
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/assets/stylesheets/application.css
402
- - spec/spec_helper.rb
403
- - spec/models/awesome_translations/translated_value_spec.rb
404
- - spec/models/awesome_translations/handler_spec.rb
405
- - spec/models/awesome_translations/translation_spec.rb
406
- - spec/features/movals_spec.rb
407
- - spec/features/clean_ups_spec.rb
408
- - spec/features/duplicates_spec.rb
409
- - spec/controllers/groups_controller_spec.rb
410
- - spec/controllers/users_controller_spec.rb
411
- - spec/controllers/handlers_controller_spec.rb
412
- - spec/factories/user.rb
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/handler.rb
389
+ - spec/factories/user.rb
416
390
  - spec/factories/handler_translation.rb
417
391
  - spec/factories/translation_key.rb
418
- - spec/handlers_spec.rb
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