awesome_translations 0.0.57 → 0.0.58

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9b94ef91440571e20b5449c6ee2cbcde310a1a6f
4
- data.tar.gz: 1e7a3cbe89d9fe1b2a93d6368bcbdcf4f8ba4c6c
2
+ SHA256:
3
+ metadata.gz: 97aa6b7fa7187a62074783131b5e97ce86c977a74a18407c02efae5bdfc80928
4
+ data.tar.gz: 15be14431991a55fcef0aade82bcff5c8952f7781f20f5853218d4a84c1389c2
5
5
  SHA512:
6
- metadata.gz: e0178ff4789c64a1a567e2c1f19f3e658fe7654b12f3a7ce39b588e261116473892673bb0ecf5edb4b10d61d96a1315855391f8bc20ecb6aa4d2e0bc17d45234
7
- data.tar.gz: 48e1da2055e05f3d8052f831e07bce331e0b774fe9e7879381479bb9fa693d9985d953c873760ec36444c7f91dba59620f1fc6a8a0b9464f1b4e963a54f6c8df
6
+ metadata.gz: 3200002a0574f45b587fa8839e6ab9f11fc117c8c3e6382430982467539a6bfbf9d2d18d7da52891ab44acfd9beecac706f138fedbdfcb34a75ecb0c327599ca
7
+ data.tar.gz: 74d08ebb996d3f11892e6d7260d431532d1584c495195302b4bd454c9fb83954e80e8e464ba2ccc506a519a1f7f781ba3b456f7f3bf82699608dfc621e482b4e
@@ -122,6 +122,8 @@ class AwesomeTranslations::ModelInspector
122
122
  # Loads models for the given app-directory (Rails-root or engine).
123
123
  def self.load_models_for(root)
124
124
  Dir.glob("#{root}/app/models/**/*.rb") do |model_path|
125
+ next if active_storage_path?(model_path)
126
+
125
127
  begin
126
128
  require model_path
127
129
  rescue => e
@@ -131,4 +133,8 @@ class AwesomeTranslations::ModelInspector
131
133
  end
132
134
  end
133
135
  end
136
+
137
+ def self.active_storage_path?(model_path)
138
+ model_path.match?(/\/gems\/activestorage-([\d\.]+)\//)
139
+ end
134
140
  end
@@ -1,3 +1,3 @@
1
1
  module AwesomeTranslations
2
- VERSION = "0.0.57".freeze
2
+ VERSION = "0.0.58".freeze
3
3
  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.57
4
+ version: 0.0.58
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-08-01 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-record-transactioner
@@ -339,80 +339,80 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.6.13
342
+ rubygems_version: 2.7.7
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: Semi-automatic maintenance of most translations in a Rails app.
346
346
  test_files:
347
- - spec/handlers/model_handler_spec.rb
348
- - spec/handlers/validations_handler_spec.rb
349
- - spec/handlers/file_handler_spec.rb
347
+ - spec/lib/translation_migrator_spec.rb
348
+ - spec/lib/cache_database_generator_spec.rb
350
349
  - spec/lib/erb_inspector/file_inspector_spec.rb
351
350
  - spec/lib/erb_inspector/translation_inspector_spec.rb
352
- - spec/lib/model_inspector/attribute_spec.rb
353
- - spec/lib/erb_inspector_spec.rb
354
351
  - spec/lib/object_extensions_spec.rb
352
+ - spec/lib/erb_inspector_spec.rb
353
+ - spec/lib/model_inspector/attribute_spec.rb
355
354
  - 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
359
- - spec/dummy/config/initializers/inflections.rb
360
- - spec/dummy/config/initializers/filter_parameter_logging.rb
361
- - spec/dummy/config/initializers/secret_token.rb
362
- - spec/dummy/config/initializers/wrap_parameters.rb
363
- - spec/dummy/config/initializers/mime_types.rb
364
- - 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
355
+ - spec/models/awesome_translations/translation_spec.rb
356
+ - spec/models/awesome_translations/handler_spec.rb
357
+ - spec/models/awesome_translations/translated_value_spec.rb
358
+ - spec/controllers/users_controller_spec.rb
359
+ - spec/controllers/groups_controller_spec.rb
360
+ - spec/controllers/handlers_controller_spec.rb
361
+ - spec/features/duplicates_spec.rb
362
+ - spec/features/movals_spec.rb
363
+ - spec/features/clean_ups_spec.rb
364
+ - spec/handlers/model_handler_spec.rb
365
+ - spec/handlers/file_handler_spec.rb
366
+ - spec/handlers/validations_handler_spec.rb
367
+ - spec/dummy/bin/rails
368
+ - spec/dummy/bin/rake
369
+ - spec/dummy/bin/bundle
370
+ - spec/dummy/README.rdoc
373
371
  - spec/dummy/Rakefile
374
372
  - spec/dummy/config.ru
375
- - spec/dummy/db/schema.rb
376
- - spec/dummy/db/migrate/20141018081640_create_roles.rb
377
- - spec/dummy/db/migrate/20141018081559_create_users.rb
378
- - spec/dummy/db/migrate/20150607110245_add_price_cents_to_roles.rb
379
- - spec/dummy/public/404.html
373
+ - spec/dummy/public/favicon.ico
380
374
  - spec/dummy/public/500.html
381
375
  - 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
389
- - spec/dummy/app/views/users/edit.html.liquid
390
- - spec/dummy/app/views/users/index.html.haml
391
- - spec/dummy/app/views/users/_partial_test.html.erb
392
- - spec/dummy/app/views/users/show.html.erb
393
- - spec/dummy/app/views/layouts/application.html.erb
376
+ - spec/dummy/public/404.html
394
377
  - spec/dummy/app/models/user.rb
395
378
  - spec/dummy/app/models/role.rb
396
379
  - spec/dummy/app/controllers/locales_controller.rb
397
- - spec/dummy/app/controllers/application_controller.rb
398
380
  - spec/dummy/app/controllers/users_controller.rb
381
+ - spec/dummy/app/controllers/application_controller.rb
399
382
  - spec/dummy/app/assets/javascripts/translations.js
400
383
  - spec/dummy/app/assets/javascripts/application.js
401
384
  - 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
385
+ - spec/dummy/app/helpers/application_helper.rb
386
+ - spec/dummy/app/mailers/my_mailer.rb
387
+ - spec/dummy/app/views/users/show.html.erb
388
+ - spec/dummy/app/views/users/_partial_test.html.erb
389
+ - spec/dummy/app/views/users/index.html.haml
390
+ - spec/dummy/app/views/users/edit.html.liquid
391
+ - spec/dummy/app/views/layouts/application.html.erb
392
+ - spec/dummy/config/application.rb
393
+ - spec/dummy/config/environment.rb
394
+ - spec/dummy/config/database.yml
395
+ - spec/dummy/config/routes.rb
396
+ - spec/dummy/config/environments/production.rb
397
+ - spec/dummy/config/environments/development.rb
398
+ - spec/dummy/config/environments/test.rb
399
+ - spec/dummy/config/boot.rb
400
+ - spec/dummy/config/initializers/inflections.rb
401
+ - spec/dummy/config/initializers/secret_token.rb
402
+ - spec/dummy/config/initializers/mime_types.rb
403
+ - spec/dummy/config/initializers/backtrace_silencers.rb
404
+ - spec/dummy/config/initializers/session_store.rb
405
+ - spec/dummy/config/initializers/wrap_parameters.rb
406
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
407
+ - spec/dummy/db/migrate/20141018081640_create_roles.rb
408
+ - spec/dummy/db/migrate/20150607110245_add_price_cents_to_roles.rb
409
+ - spec/dummy/db/migrate/20141018081559_create_users.rb
410
+ - spec/dummy/db/schema.rb
412
411
  - spec/factories/user.rb
413
- - spec/factories/translation_value.rb
414
412
  - spec/factories/group.rb
415
- - spec/factories/handler.rb
413
+ - spec/factories/translation_value.rb
416
414
  - spec/factories/handler_translation.rb
415
+ - spec/factories/handler.rb
417
416
  - spec/factories/translation_key.rb
418
417
  - spec/handlers_spec.rb
418
+ - spec/spec_helper.rb