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 +5 -5
- data/lib/awesome_translations/model_inspector.rb +6 -0
- data/lib/awesome_translations/version.rb +1 -1
- metadata +55 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 97aa6b7fa7187a62074783131b5e97ce86c977a74a18407c02efae5bdfc80928
|
4
|
+
data.tar.gz: 15be14431991a55fcef0aade82bcff5c8952f7781f20f5853218d4a84c1389c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
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.
|
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/
|
348
|
-
- spec/
|
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/
|
357
|
-
- spec/
|
358
|
-
- spec/
|
359
|
-
- spec/
|
360
|
-
- spec/
|
361
|
-
- spec/
|
362
|
-
- spec/
|
363
|
-
- spec/
|
364
|
-
- spec/
|
365
|
-
- spec/
|
366
|
-
- spec/
|
367
|
-
- spec/
|
368
|
-
- spec/dummy/
|
369
|
-
- spec/dummy/
|
370
|
-
- spec/dummy/
|
371
|
-
- spec/dummy/
|
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/
|
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/
|
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/
|
403
|
-
- spec/
|
404
|
-
- spec/
|
405
|
-
- spec/
|
406
|
-
- spec/
|
407
|
-
- spec/
|
408
|
-
- spec/
|
409
|
-
- spec/
|
410
|
-
- spec/
|
411
|
-
- spec/
|
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/
|
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
|