rails_i18n_record 1.0.5 → 1.0.6

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 (53) hide show
  1. checksums.yaml +7 -0
  2. metadata +18 -130
  3. data/MIT-LICENSE +0 -20
  4. data/README.rdoc +0 -44
  5. data/Rakefile +0 -38
  6. data/lib/generators/i18n_generator.rb +0 -26
  7. data/lib/generators/templates/migration.erb +0 -19
  8. data/lib/generators/templates/model.erb +0 -13
  9. data/lib/rails_i18n_record.rb +0 -6
  10. data/lib/rails_i18n_record/active_record/base.rb +0 -79
  11. data/lib/rails_i18n_record/railtie.rb +0 -9
  12. data/lib/rails_i18n_record/version.rb +0 -5
  13. data/test/dummy/README.rdoc +0 -261
  14. data/test/dummy/Rakefile +0 -7
  15. data/test/dummy/app/assets/javascripts/application.js +0 -15
  16. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  17. data/test/dummy/app/controllers/application_controller.rb +0 -3
  18. data/test/dummy/app/helpers/application_helper.rb +0 -2
  19. data/test/dummy/app/models/model.rb +0 -4
  20. data/test/dummy/app/models/model_translation.rb +0 -13
  21. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  22. data/test/dummy/config.ru +0 -4
  23. data/test/dummy/config/application.rb +0 -59
  24. data/test/dummy/config/boot.rb +0 -10
  25. data/test/dummy/config/database.yml +0 -25
  26. data/test/dummy/config/environment.rb +0 -5
  27. data/test/dummy/config/environments/development.rb +0 -37
  28. data/test/dummy/config/environments/production.rb +0 -67
  29. data/test/dummy/config/environments/test.rb +0 -37
  30. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  31. data/test/dummy/config/initializers/inflections.rb +0 -15
  32. data/test/dummy/config/initializers/mime_types.rb +0 -5
  33. data/test/dummy/config/initializers/secret_token.rb +0 -7
  34. data/test/dummy/config/initializers/session_store.rb +0 -8
  35. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  36. data/test/dummy/config/locales/en.yml +0 -5
  37. data/test/dummy/config/routes.rb +0 -58
  38. data/test/dummy/db/development.sqlite3 +0 -0
  39. data/test/dummy/db/migrate/20120831205714_create_models.rb +0 -7
  40. data/test/dummy/db/migrate/20130404161713_create_models_i18n.rb +0 -19
  41. data/test/dummy/db/schema.rb +0 -35
  42. data/test/dummy/db/test.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +0 -499
  44. data/test/dummy/log/test.log +0 -2397
  45. data/test/dummy/public/404.html +0 -26
  46. data/test/dummy/public/422.html +0 -26
  47. data/test/dummy/public/500.html +0 -25
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/script/rails +0 -6
  50. data/test/generators_test.rb +0 -24
  51. data/test/rails_i18n_record_test.rb +0 -9
  52. data/test/records_test.rb +0 -27
  53. data/test/test_helper.rb +0 -21
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1,24 +0,0 @@
1
- require 'test_helper'
2
- require 'rails/generators'
3
- require 'generators/i18n_generator'
4
-
5
- class I18nGeneratorTest < Rails::Generators::TestCase
6
-
7
- setup :clean
8
-
9
- tests I18nGenerator
10
- destination File.expand_path('../tmp', File.dirname(__FILE__))
11
-
12
- test "should exists" do
13
- run_generator %w(something)
14
- assert_file 'app/models/something_translation.rb'
15
- assert_migration 'db/migrate/create_somethings_i18n.rb'
16
- end
17
-
18
- protected
19
-
20
- def clean
21
- FileUtils.rm_rf(self.destination_root)
22
- end
23
-
24
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RailsI18nRecordTest < ActiveSupport::TestCase
4
-
5
- test "truth" do
6
- assert_kind_of Module, RailsI18nRecord
7
- end
8
-
9
- end
@@ -1,27 +0,0 @@
1
- require 'test_helper'
2
-
3
- class RecrodsTest < ActiveSupport::TestCase
4
-
5
- setup :create_record
6
-
7
- test "should create associated translation" do
8
- assert_equal @record.name, 'name'
9
- end
10
-
11
- test "should edit associated translation" do
12
- @record.update_attributes :name => 'new name'
13
- assert_equal @record.name, 'new name'
14
- end
15
-
16
- test "should delete associated translation" do
17
- @record.destroy
18
- assert_equal ModelTranslation.find_by_model_id(@record.id), nil
19
- end
20
-
21
- protected
22
-
23
- def create_record
24
- @record = Model.create(:name => 'name')
25
- end
26
-
27
- end
@@ -1,21 +0,0 @@
1
- # Configure Rails Environment
2
- ENV['RAILS_ENV'] = 'test'
3
-
4
- require File.expand_path('../dummy/config/environment.rb', __FILE__)
5
- require 'rails/test_help'
6
-
7
- Rails.backtrace_cleaner.remove_silencers!
8
-
9
- # Load support files
10
- 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__))