translatable_records 1.1.7 → 4.0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +26 -22
  4. data/Rakefile +1 -14
  5. data/lib/generators/translation/templates/migration.rb +14 -0
  6. data/lib/generators/translation/templates/model.rb +8 -0
  7. data/lib/generators/translation/translation_generator.rb +25 -0
  8. data/lib/translatable_records/builder.rb +66 -0
  9. data/lib/translatable_records/concern.rb +22 -0
  10. data/lib/translatable_records/extensions/active_record/base.rb +26 -0
  11. data/lib/translatable_records/railtie.rb +4 -2
  12. data/lib/translatable_records/version.rb +1 -1
  13. data/lib/translatable_records.rb +4 -2
  14. data/test/dummy/Rakefile +1 -2
  15. data/test/dummy/app/assets/javascripts/application.js +2 -2
  16. data/test/dummy/app/assets/stylesheets/application.css +6 -4
  17. data/test/dummy/app/models/product.rb +5 -0
  18. data/test/dummy/app/models/product_translation.rb +8 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +9 -11
  20. data/test/dummy/bin/bundle +1 -0
  21. data/test/dummy/bin/rails +2 -1
  22. data/test/dummy/bin/rake +1 -0
  23. data/test/dummy/bin/setup +30 -0
  24. data/test/dummy/config/application.rb +3 -0
  25. data/test/dummy/config/boot.rb +1 -1
  26. data/test/dummy/config/database.yml +4 -22
  27. data/test/dummy/config/database.yml.travis +3 -0
  28. data/test/dummy/config/environment.rb +1 -1
  29. data/test/dummy/config/environments/development.rb +15 -3
  30. data/test/dummy/config/environments/production.rb +21 -26
  31. data/test/dummy/config/environments/test.rb +10 -12
  32. data/test/dummy/config/initializers/assets.rb +11 -0
  33. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  34. data/test/dummy/config/initializers/mime_types.rb +1 -2
  35. data/test/dummy/config/initializers/session_store.rb +1 -1
  36. data/test/dummy/config/routes.rb +2 -2
  37. data/test/dummy/config/secrets.yml +22 -0
  38. data/test/dummy/config.ru +1 -1
  39. data/test/dummy/db/migrate/20130819155126_create_products.rb +8 -0
  40. data/test/dummy/db/migrate/20161205171056_create_product_translations.rb +12 -0
  41. data/test/dummy/db/schema.rb +13 -11
  42. data/test/dummy/log/development.log +39 -0
  43. data/test/dummy/log/test.log +1443 -62
  44. data/test/dummy/public/404.html +58 -55
  45. data/test/dummy/public/422.html +58 -55
  46. data/test/dummy/public/500.html +57 -54
  47. data/test/generator_test.rb +21 -0
  48. data/test/record_test.rb +38 -0
  49. data/test/test_helper.rb +5 -13
  50. metadata +42 -33
  51. data/lib/generators/templates/migration.rb +0 -12
  52. data/lib/generators/templates/model.rb +0 -8
  53. data/lib/generators/translation_generator.rb +0 -21
  54. data/lib/translatable_records/active_record/base.rb +0 -56
  55. data/lib/translatable_records/active_record/translatable.rb +0 -26
  56. data/test/dummy/README.rdoc +0 -28
  57. data/test/dummy/app/models/model.rb +0 -3
  58. data/test/dummy/app/models/model_translation.rb +0 -8
  59. data/test/dummy/config/initializers/secret_token.rb +0 -13
  60. data/test/dummy/db/migrate/20130819155126_create_models.rb +0 -8
  61. data/test/dummy/db/migrate/20130819165249_create_model_translations.rb +0 -13
  62. data/test/generators_test.rb +0 -19
  63. data/test/records_test.rb +0 -36
@@ -1,58 +1,61 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/404.html -->
52
- <div class="dialog">
53
- <h1>The page you were looking for doesn't exist.</h1>
54
- <p>You may have mistyped the address or the page may have moved.</p>
55
- </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
- </body>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+ div.dialog {
15
+ width: 95%;
16
+ max-width: 33em;
17
+ margin: 4em auto 0;
18
+ }
19
+ div.dialog > div {
20
+ border: 1px solid #CCC;
21
+ border-right-color: #999;
22
+ border-left-color: #999;
23
+ border-bottom-color: #BBB;
24
+ border-top: #B00100 solid 4px;
25
+ border-top-left-radius: 9px;
26
+ border-top-right-radius: 9px;
27
+ background-color: white;
28
+ padding: 7px 12% 0;
29
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
30
+ }
31
+ h1 {
32
+ font-size: 100%;
33
+ color: #730E15;
34
+ line-height: 1.5em;
35
+ }
36
+ div.dialog > p {
37
+ margin: 0 0 1em;
38
+ padding: 1em;
39
+ background-color: #F7F7F7;
40
+ border: 1px solid #CCC;
41
+ border-right-color: #999;
42
+ border-left-color: #999;
43
+ border-bottom-color: #999;
44
+ border-bottom-left-radius: 4px;
45
+ border-bottom-right-radius: 4px;
46
+ border-top-color: #DADADA;
47
+ color: #666;
48
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="dialog">
54
+ <div>
55
+ <h1>The page you were looking for doesn't exist.</h1>
56
+ <p>You may have mistyped the address or the page may have moved.</p>
57
+ </div>
58
+ <p>If you are the application owner check the logs for more information.</p>
59
+ </div>
60
+ </body>
58
61
  </html>
@@ -1,58 +1,61 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/422.html -->
52
- <div class="dialog">
53
- <h1>The change you wanted was rejected.</h1>
54
- <p>Maybe you tried to change something you didn't have access to.</p>
55
- </div>
56
- <p>If you are the application owner check the logs for more information.</p>
57
- </body>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+ div.dialog {
15
+ width: 95%;
16
+ max-width: 33em;
17
+ margin: 4em auto 0;
18
+ }
19
+ div.dialog > div {
20
+ border: 1px solid #CCC;
21
+ border-right-color: #999;
22
+ border-left-color: #999;
23
+ border-bottom-color: #BBB;
24
+ border-top: #B00100 solid 4px;
25
+ border-top-left-radius: 9px;
26
+ border-top-right-radius: 9px;
27
+ background-color: white;
28
+ padding: 7px 12% 0;
29
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
30
+ }
31
+ h1 {
32
+ font-size: 100%;
33
+ color: #730E15;
34
+ line-height: 1.5em;
35
+ }
36
+ div.dialog > p {
37
+ margin: 0 0 1em;
38
+ padding: 1em;
39
+ background-color: #F7F7F7;
40
+ border: 1px solid #CCC;
41
+ border-right-color: #999;
42
+ border-left-color: #999;
43
+ border-bottom-color: #999;
44
+ border-bottom-left-radius: 4px;
45
+ border-bottom-right-radius: 4px;
46
+ border-top-color: #DADADA;
47
+ color: #666;
48
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="dialog">
54
+ <div>
55
+ <h1>The change you wanted was rejected.</h1>
56
+ <p>Maybe you tried to change something you didn't have access to.</p>
57
+ </div>
58
+ <p>If you are the application owner check the logs for more information.</p>
59
+ </div>
60
+ </body>
58
61
  </html>
@@ -1,57 +1,60 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style>
6
- body {
7
- background-color: #EFEFEF;
8
- color: #2E2F30;
9
- text-align: center;
10
- font-family: arial, sans-serif;
11
- }
12
-
13
- div.dialog {
14
- width: 25em;
15
- margin: 4em auto 0 auto;
16
- border: 1px solid #CCC;
17
- border-right-color: #999;
18
- border-left-color: #999;
19
- border-bottom-color: #BBB;
20
- border-top: #B00100 solid 4px;
21
- border-top-left-radius: 9px;
22
- border-top-right-radius: 9px;
23
- background-color: white;
24
- padding: 7px 4em 0 4em;
25
- }
26
-
27
- h1 {
28
- font-size: 100%;
29
- color: #730E15;
30
- line-height: 1.5em;
31
- }
32
-
33
- body > p {
34
- width: 33em;
35
- margin: 0 auto 1em;
36
- padding: 1em 0;
37
- background-color: #F7F7F7;
38
- border: 1px solid #CCC;
39
- border-right-color: #999;
40
- border-bottom-color: #999;
41
- border-bottom-left-radius: 4px;
42
- border-bottom-right-radius: 4px;
43
- border-top-color: #DADADA;
44
- color: #666;
45
- box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
- }
47
- </style>
48
- </head>
49
-
50
- <body>
51
- <!-- This file lives in public/500.html -->
52
- <div class="dialog">
53
- <h1>We're sorry, but something went wrong.</h1>
54
- </div>
55
- <p>If you are the application owner check the logs for more information.</p>
56
- </body>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+ div.dialog {
15
+ width: 95%;
16
+ max-width: 33em;
17
+ margin: 4em auto 0;
18
+ }
19
+ div.dialog > div {
20
+ border: 1px solid #CCC;
21
+ border-right-color: #999;
22
+ border-left-color: #999;
23
+ border-bottom-color: #BBB;
24
+ border-top: #B00100 solid 4px;
25
+ border-top-left-radius: 9px;
26
+ border-top-right-radius: 9px;
27
+ background-color: white;
28
+ padding: 7px 12% 0;
29
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
30
+ }
31
+ h1 {
32
+ font-size: 100%;
33
+ color: #730E15;
34
+ line-height: 1.5em;
35
+ }
36
+ div.dialog > p {
37
+ margin: 0 0 1em;
38
+ padding: 1em;
39
+ background-color: #F7F7F7;
40
+ border: 1px solid #CCC;
41
+ border-right-color: #999;
42
+ border-left-color: #999;
43
+ border-bottom-color: #999;
44
+ border-bottom-left-radius: 4px;
45
+ border-bottom-right-radius: 4px;
46
+ border-top-color: #DADADA;
47
+ color: #666;
48
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
49
+ }
50
+ </style>
51
+ </head>
52
+ <body>
53
+ <div class="dialog">
54
+ <div>
55
+ <h1>We're sorry, but something went wrong.</h1>
56
+ </div>
57
+ <p>If you are the application owner check the logs for more information.</p>
58
+ </div>
59
+ </body>
57
60
  </html>
@@ -0,0 +1,21 @@
1
+ require 'test_helper'
2
+ require 'rails/generators'
3
+ require 'generators/translation/translation_generator'
4
+
5
+ class GeneratorsTest < ::Rails::Generators::TestCase
6
+ destination Rails.root.join('tmp')
7
+
8
+ teardown do
9
+ FileUtils.rm_rf destination_root
10
+ end
11
+
12
+ test 'install' do
13
+ self.class.tests TranslationGenerator
14
+ run_generator %w(product)
15
+ assert_file 'app/models/product_translation.rb'
16
+ assert_migration 'db/migrate/create_product_translations.rb'
17
+ migration = File.read(migration_file_name('db/migrate/create_product_translations.rb'))
18
+ assert_includes migration, 't.string :name'
19
+ end
20
+
21
+ end
@@ -0,0 +1,38 @@
1
+ require 'test_helper'
2
+
3
+ class ProductTest < ActiveSupport::TestCase
4
+
5
+ test 'persistent' do
6
+ product = Product.new
7
+
8
+ assert_nil product.name
9
+ product.name = 'phone'
10
+ assert_equal 'phone', product.name
11
+ assert_equal 'en', product.locale
12
+
13
+ product.locale = :es
14
+ assert_nil product.name
15
+ product.name = 'teléfono'
16
+ assert_equal 'teléfono', product.name
17
+ assert_equal 'es', product.locale
18
+
19
+ product.locale = :en
20
+ assert_equal 'phone', product.name
21
+ assert_equal 'en', product.locale
22
+
23
+ product.save!
24
+ product.reload
25
+
26
+ assert_equal 'phone', product.name
27
+ assert_equal 'en', product.locale
28
+
29
+ product.locale = :es
30
+ assert_equal 'teléfono', product.name
31
+ assert_equal 'es', product.locale
32
+
33
+ product.destroy!
34
+
35
+ assert_equal 0, ProductTranslation.count
36
+ end
37
+
38
+ end
data/test/test_helper.rb CHANGED
@@ -1,21 +1,13 @@
1
1
  # Configure Rails Environment
2
2
  ENV['RAILS_ENV'] = 'test'
3
3
 
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
4
+ require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path('../../test/dummy/db/migrate', __FILE__)]
5
6
  require 'rails/test_help'
6
7
 
7
- Rails.backtrace_cleaner.remove_silencers!
8
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
9
+ # to be shown.
10
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
8
11
 
9
12
  # Load support files
10
13
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
-
12
- # Load fixtures from the engine
13
- if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
- ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
15
- end
16
-
17
- # Load database
18
- config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
19
- config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
20
- ActiveRecord::Base.establish_connection(config['test'])
21
- load(File.expand_path('../dummy/db/schema.rb', __FILE__))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translatable_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 4.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: 4.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.3.0
@@ -26,27 +26,27 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 4.0.0
29
+ version: 4.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.3.0
33
33
  - !ruby/object:Gem::Dependency
34
- name: sqlite3
34
+ name: pg
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.3'
39
+ version: '0.18'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '1.3'
47
- description: Minimalistic toolkit to work with translatable records in rails.
46
+ version: '0.18'
47
+ description: Fully customizable record translations for rails.
48
48
  email:
49
- - mmontossi@buyin.io
49
+ - mmontossi@gmail.com
50
50
  executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
@@ -54,53 +54,58 @@ files:
54
54
  - MIT-LICENSE
55
55
  - README.md
56
56
  - Rakefile
57
- - lib/generators/templates/migration.rb
58
- - lib/generators/templates/model.rb
59
- - lib/generators/translation_generator.rb
57
+ - lib/generators/translation/templates/migration.rb
58
+ - lib/generators/translation/templates/model.rb
59
+ - lib/generators/translation/translation_generator.rb
60
60
  - lib/translatable_records.rb
61
- - lib/translatable_records/active_record/base.rb
62
- - lib/translatable_records/active_record/translatable.rb
61
+ - lib/translatable_records/builder.rb
62
+ - lib/translatable_records/concern.rb
63
+ - lib/translatable_records/extensions/active_record/base.rb
63
64
  - lib/translatable_records/railtie.rb
64
65
  - lib/translatable_records/version.rb
65
- - test/dummy/README.rdoc
66
66
  - test/dummy/Rakefile
67
67
  - test/dummy/app/assets/javascripts/application.js
68
68
  - test/dummy/app/assets/stylesheets/application.css
69
69
  - test/dummy/app/controllers/application_controller.rb
70
70
  - test/dummy/app/helpers/application_helper.rb
71
- - test/dummy/app/models/model.rb
72
- - test/dummy/app/models/model_translation.rb
71
+ - test/dummy/app/models/product.rb
72
+ - test/dummy/app/models/product_translation.rb
73
73
  - test/dummy/app/views/layouts/application.html.erb
74
74
  - test/dummy/bin/bundle
75
75
  - test/dummy/bin/rails
76
76
  - test/dummy/bin/rake
77
+ - test/dummy/bin/setup
77
78
  - test/dummy/config.ru
78
79
  - test/dummy/config/application.rb
79
80
  - test/dummy/config/boot.rb
80
81
  - test/dummy/config/database.yml
82
+ - test/dummy/config/database.yml.travis
81
83
  - test/dummy/config/environment.rb
82
84
  - test/dummy/config/environments/development.rb
83
85
  - test/dummy/config/environments/production.rb
84
86
  - test/dummy/config/environments/test.rb
87
+ - test/dummy/config/initializers/assets.rb
85
88
  - test/dummy/config/initializers/backtrace_silencers.rb
89
+ - test/dummy/config/initializers/cookies_serializer.rb
86
90
  - test/dummy/config/initializers/filter_parameter_logging.rb
87
91
  - test/dummy/config/initializers/inflections.rb
88
92
  - test/dummy/config/initializers/mime_types.rb
89
- - test/dummy/config/initializers/secret_token.rb
90
93
  - test/dummy/config/initializers/session_store.rb
91
94
  - test/dummy/config/initializers/wrap_parameters.rb
92
95
  - test/dummy/config/locales/en.yml
93
96
  - test/dummy/config/routes.rb
94
- - test/dummy/db/migrate/20130819155126_create_models.rb
95
- - test/dummy/db/migrate/20130819165249_create_model_translations.rb
97
+ - test/dummy/config/secrets.yml
98
+ - test/dummy/db/migrate/20130819155126_create_products.rb
99
+ - test/dummy/db/migrate/20161205171056_create_product_translations.rb
96
100
  - test/dummy/db/schema.rb
101
+ - test/dummy/log/development.log
97
102
  - test/dummy/log/test.log
98
103
  - test/dummy/public/404.html
99
104
  - test/dummy/public/422.html
100
105
  - test/dummy/public/500.html
101
106
  - test/dummy/public/favicon.ico
102
- - test/generators_test.rb
103
- - test/records_test.rb
107
+ - test/generator_test.rb
108
+ - test/record_test.rb
104
109
  - test/test_helper.rb
105
110
  homepage: https://github.com/mmontossi/translatable_records
106
111
  licenses:
@@ -114,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
119
  requirements:
115
120
  - - ">="
116
121
  - !ruby/object:Gem::Version
117
- version: 1.9.3
122
+ version: 2.1.0
118
123
  required_rubygems_version: !ruby/object:Gem::Requirement
119
124
  requirements:
120
125
  - - ">="
@@ -122,48 +127,52 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
127
  version: '0'
123
128
  requirements: []
124
129
  rubyforge_project:
125
- rubygems_version: 2.4.5
130
+ rubygems_version: 2.5.1
126
131
  signing_key:
127
132
  specification_version: 4
128
- summary: Translatable records for rails.
133
+ summary: Record translations for rails.
129
134
  test_files:
130
135
  - test/dummy/app/assets/javascripts/application.js
131
136
  - test/dummy/app/assets/stylesheets/application.css
132
137
  - test/dummy/app/controllers/application_controller.rb
133
138
  - test/dummy/app/helpers/application_helper.rb
134
- - test/dummy/app/models/model.rb
135
- - test/dummy/app/models/model_translation.rb
139
+ - test/dummy/app/models/product.rb
140
+ - test/dummy/app/models/product_translation.rb
136
141
  - test/dummy/app/views/layouts/application.html.erb
137
142
  - test/dummy/bin/bundle
138
143
  - test/dummy/bin/rails
139
144
  - test/dummy/bin/rake
145
+ - test/dummy/bin/setup
140
146
  - test/dummy/config/application.rb
141
147
  - test/dummy/config/boot.rb
142
148
  - test/dummy/config/database.yml
149
+ - test/dummy/config/database.yml.travis
143
150
  - test/dummy/config/environment.rb
144
151
  - test/dummy/config/environments/development.rb
145
152
  - test/dummy/config/environments/production.rb
146
153
  - test/dummy/config/environments/test.rb
154
+ - test/dummy/config/initializers/assets.rb
147
155
  - test/dummy/config/initializers/backtrace_silencers.rb
156
+ - test/dummy/config/initializers/cookies_serializer.rb
148
157
  - test/dummy/config/initializers/filter_parameter_logging.rb
149
158
  - test/dummy/config/initializers/inflections.rb
150
159
  - test/dummy/config/initializers/mime_types.rb
151
- - test/dummy/config/initializers/secret_token.rb
152
160
  - test/dummy/config/initializers/session_store.rb
153
161
  - test/dummy/config/initializers/wrap_parameters.rb
154
162
  - test/dummy/config/locales/en.yml
155
163
  - test/dummy/config/routes.rb
164
+ - test/dummy/config/secrets.yml
156
165
  - test/dummy/config.ru
157
- - test/dummy/db/migrate/20130819155126_create_models.rb
158
- - test/dummy/db/migrate/20130819165249_create_model_translations.rb
166
+ - test/dummy/db/migrate/20130819155126_create_products.rb
167
+ - test/dummy/db/migrate/20161205171056_create_product_translations.rb
159
168
  - test/dummy/db/schema.rb
169
+ - test/dummy/log/development.log
160
170
  - test/dummy/log/test.log
161
171
  - test/dummy/public/404.html
162
172
  - test/dummy/public/422.html
163
173
  - test/dummy/public/500.html
164
174
  - test/dummy/public/favicon.ico
165
175
  - test/dummy/Rakefile
166
- - test/dummy/README.rdoc
167
- - test/generators_test.rb
168
- - test/records_test.rb
176
+ - test/generator_test.rb
177
+ - test/record_test.rb
169
178
  - test/test_helper.rb