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.
- checksums.yaml +4 -4
 - data/MIT-LICENSE +1 -1
 - data/README.md +26 -22
 - data/Rakefile +1 -14
 - data/lib/generators/translation/templates/migration.rb +14 -0
 - data/lib/generators/translation/templates/model.rb +8 -0
 - data/lib/generators/translation/translation_generator.rb +25 -0
 - data/lib/translatable_records/builder.rb +66 -0
 - data/lib/translatable_records/concern.rb +22 -0
 - data/lib/translatable_records/extensions/active_record/base.rb +26 -0
 - data/lib/translatable_records/railtie.rb +4 -2
 - data/lib/translatable_records/version.rb +1 -1
 - data/lib/translatable_records.rb +4 -2
 - data/test/dummy/Rakefile +1 -2
 - data/test/dummy/app/assets/javascripts/application.js +2 -2
 - data/test/dummy/app/assets/stylesheets/application.css +6 -4
 - data/test/dummy/app/models/product.rb +5 -0
 - data/test/dummy/app/models/product_translation.rb +8 -0
 - data/test/dummy/app/views/layouts/application.html.erb +9 -11
 - data/test/dummy/bin/bundle +1 -0
 - data/test/dummy/bin/rails +2 -1
 - data/test/dummy/bin/rake +1 -0
 - data/test/dummy/bin/setup +30 -0
 - data/test/dummy/config/application.rb +3 -0
 - data/test/dummy/config/boot.rb +1 -1
 - data/test/dummy/config/database.yml +4 -22
 - data/test/dummy/config/database.yml.travis +3 -0
 - data/test/dummy/config/environment.rb +1 -1
 - data/test/dummy/config/environments/development.rb +15 -3
 - data/test/dummy/config/environments/production.rb +21 -26
 - data/test/dummy/config/environments/test.rb +10 -12
 - data/test/dummy/config/initializers/assets.rb +11 -0
 - data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
 - data/test/dummy/config/initializers/mime_types.rb +1 -2
 - data/test/dummy/config/initializers/session_store.rb +1 -1
 - data/test/dummy/config/routes.rb +2 -2
 - data/test/dummy/config/secrets.yml +22 -0
 - data/test/dummy/config.ru +1 -1
 - data/test/dummy/db/migrate/20130819155126_create_products.rb +8 -0
 - data/test/dummy/db/migrate/20161205171056_create_product_translations.rb +12 -0
 - data/test/dummy/db/schema.rb +13 -11
 - data/test/dummy/log/development.log +39 -0
 - data/test/dummy/log/test.log +1443 -62
 - data/test/dummy/public/404.html +58 -55
 - data/test/dummy/public/422.html +58 -55
 - data/test/dummy/public/500.html +57 -54
 - data/test/generator_test.rb +21 -0
 - data/test/record_test.rb +38 -0
 - data/test/test_helper.rb +5 -13
 - metadata +42 -33
 - data/lib/generators/templates/migration.rb +0 -12
 - data/lib/generators/templates/model.rb +0 -8
 - data/lib/generators/translation_generator.rb +0 -21
 - data/lib/translatable_records/active_record/base.rb +0 -56
 - data/lib/translatable_records/active_record/translatable.rb +0 -26
 - data/test/dummy/README.rdoc +0 -28
 - data/test/dummy/app/models/model.rb +0 -3
 - data/test/dummy/app/models/model_translation.rb +0 -8
 - data/test/dummy/config/initializers/secret_token.rb +0 -13
 - data/test/dummy/db/migrate/20130819155126_create_models.rb +0 -8
 - data/test/dummy/db/migrate/20130819165249_create_model_translations.rb +0 -13
 - data/test/generators_test.rb +0 -19
 - data/test/records_test.rb +0 -36
 
    
        data/test/dummy/public/404.html
    CHANGED
    
    | 
         @@ -1,58 +1,61 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <!DOCTYPE html>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <html>
         
     | 
| 
       3 
     | 
    
         
            -
            <head>
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
               
     | 
| 
       52 
     | 
    
         
            -
              < 
     | 
| 
       53 
     | 
    
         
            -
                < 
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            </ 
     | 
| 
      
 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>
         
     | 
    
        data/test/dummy/public/422.html
    CHANGED
    
    | 
         @@ -1,58 +1,61 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <!DOCTYPE html>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <html>
         
     | 
| 
       3 
     | 
    
         
            -
            <head>
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
               
     | 
| 
       52 
     | 
    
         
            -
              < 
     | 
| 
       53 
     | 
    
         
            -
                < 
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
       57 
     | 
    
         
            -
            </ 
     | 
| 
      
 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>
         
     | 
    
        data/test/dummy/public/500.html
    CHANGED
    
    | 
         @@ -1,57 +1,60 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            <!DOCTYPE html>
         
     | 
| 
       2 
2 
     | 
    
         
             
            <html>
         
     | 
| 
       3 
     | 
    
         
            -
            <head>
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
             
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
               
     | 
| 
       52 
     | 
    
         
            -
              < 
     | 
| 
       53 
     | 
    
         
            -
                < 
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
            </ 
     | 
| 
      
 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
         
     | 
    
        data/test/record_test.rb
    ADDED
    
    | 
         @@ -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(' 
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 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:  
     | 
| 
      
 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- 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 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:  
     | 
| 
      
 34 
     | 
    
         
            +
              name: pg
         
     | 
| 
       35 
35 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       36 
36 
     | 
    
         
             
                requirements:
         
     | 
| 
       37 
37 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       38 
38 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       39 
     | 
    
         
            -
                    version: ' 
     | 
| 
      
 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: ' 
     | 
| 
       47 
     | 
    
         
            -
            description:  
     | 
| 
      
 46 
     | 
    
         
            +
                    version: '0.18'
         
     | 
| 
      
 47 
     | 
    
         
            +
            description: Fully customizable record translations for rails.
         
     | 
| 
       48 
48 
     | 
    
         
             
            email:
         
     | 
| 
       49 
     | 
    
         
            -
            - mmontossi@ 
     | 
| 
      
 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/ 
     | 
| 
       62 
     | 
    
         
            -
            - lib/translatable_records/ 
     | 
| 
      
 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/ 
     | 
| 
       72 
     | 
    
         
            -
            - test/dummy/app/models/ 
     | 
| 
      
 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/ 
     | 
| 
       95 
     | 
    
         
            -
            - test/dummy/db/migrate/ 
     | 
| 
      
 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/ 
     | 
| 
       103 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 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. 
     | 
| 
      
 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. 
     | 
| 
      
 130 
     | 
    
         
            +
            rubygems_version: 2.5.1
         
     | 
| 
       126 
131 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       127 
132 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       128 
     | 
    
         
            -
            summary:  
     | 
| 
      
 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/ 
     | 
| 
       135 
     | 
    
         
            -
            - test/dummy/app/models/ 
     | 
| 
      
 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/ 
     | 
| 
       158 
     | 
    
         
            -
            - test/dummy/db/migrate/ 
     | 
| 
      
 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/ 
     | 
| 
       167 
     | 
    
         
            -
            - test/ 
     | 
| 
       168 
     | 
    
         
            -
            - test/records_test.rb
         
     | 
| 
      
 176 
     | 
    
         
            +
            - test/generator_test.rb
         
     | 
| 
      
 177 
     | 
    
         
            +
            - test/record_test.rb
         
     | 
| 
       169 
178 
     | 
    
         
             
            - test/test_helper.rb
         
     |