assignable_values 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/.gitignore +1 -0
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +41 -9
  4. data/Gemfile +16 -0
  5. data/Gemfile.lock +70 -0
  6. data/README.md +16 -5
  7. data/Rakefile +5 -69
  8. data/assignable_values.gemspec +2 -7
  9. data/gemfiles/Gemfile.2.3 +16 -0
  10. data/gemfiles/Gemfile.2.3.lock +40 -0
  11. data/gemfiles/Gemfile.3.2 +16 -0
  12. data/gemfiles/Gemfile.3.2.lock +65 -0
  13. data/gemfiles/Gemfile.4.2 +16 -0
  14. data/gemfiles/Gemfile.4.2.lock +70 -0
  15. data/gemfiles/Gemfile.5.0 +16 -0
  16. data/gemfiles/Gemfile.5.0.lock +67 -0
  17. data/lib/assignable_values/active_record/restriction/base.rb +5 -5
  18. data/lib/assignable_values/active_record/restriction/belongs_to_association.rb +1 -1
  19. data/lib/assignable_values/active_record/restriction/scalar_attribute.rb +4 -4
  20. data/lib/assignable_values/version.rb +1 -1
  21. data/spec/{shared/assignable_values → assignable_values}/active_record_spec.rb +3 -1
  22. data/spec/{shared/assignable_values → assignable_values}/humanized_value_spec.rb +0 -0
  23. data/spec/spec_helper.rb +19 -0
  24. data/spec/support/database.rb +16 -0
  25. data/spec/support/database.sample.yml +5 -0
  26. data/spec/support/database.travis.yml +4 -0
  27. data/spec/{shared/app_root/config/locales/en.yml → support/i18n.yml} +0 -0
  28. data/spec/support/models.rb +20 -0
  29. metadata +36 -226
  30. data/spec/rails-2.3/.bundle/config +0 -2
  31. data/spec/rails-2.3/Gemfile +0 -14
  32. data/spec/rails-2.3/Gemfile.lock +0 -68
  33. data/spec/rails-2.3/Rakefile +0 -11
  34. data/spec/rails-2.3/app_root/config/boot.rb +0 -129
  35. data/spec/rails-2.3/app_root/config/database.yml +0 -4
  36. data/spec/rails-2.3/app_root/config/environment.rb +0 -14
  37. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
  38. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  39. data/spec/rails-2.3/app_root/config/routes.rb +0 -4
  40. data/spec/rails-2.3/app_root/lib/console_with_fixtures.rb +0 -4
  41. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  42. data/spec/rails-2.3/app_root/script/console +0 -7
  43. data/spec/rails-2.3/rcov.opts +0 -2
  44. data/spec/rails-2.3/spec.opts +0 -4
  45. data/spec/rails-2.3/spec/spec_helper.rb +0 -25
  46. data/spec/rails-3.2/.bundle/config +0 -2
  47. data/spec/rails-3.2/.rspec +0 -2
  48. data/spec/rails-3.2/Gemfile +0 -10
  49. data/spec/rails-3.2/Gemfile.lock +0 -132
  50. data/spec/rails-3.2/Rakefile +0 -10
  51. data/spec/rails-3.2/app_root/.gitignore +0 -4
  52. data/spec/rails-3.2/app_root/config/application.rb +0 -32
  53. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  54. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  55. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  56. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  57. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  58. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  59. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  60. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  61. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  62. data/spec/rails-3.2/app_root/config/routes.rb +0 -58
  63. data/spec/rails-3.2/app_root/lib/tasks/.gitkeep +0 -0
  64. data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
  65. data/spec/rails-3.2/app_root/script/rails +0 -6
  66. data/spec/rails-3.2/rcov.opts +0 -2
  67. data/spec/rails-3.2/spec/spec_helper.rb +0 -25
  68. data/spec/rails-4.1/.bundle/config +0 -2
  69. data/spec/rails-4.1/.rspec +0 -2
  70. data/spec/rails-4.1/.ruby-version +0 -1
  71. data/spec/rails-4.1/Gemfile +0 -16
  72. data/spec/rails-4.1/Gemfile.lock +0 -146
  73. data/spec/rails-4.1/Rakefile +0 -12
  74. data/spec/rails-4.1/app_root/.gitignore +0 -16
  75. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  76. data/spec/rails-4.1/app_root/bin/rails +0 -8
  77. data/spec/rails-4.1/app_root/bin/rake +0 -8
  78. data/spec/rails-4.1/app_root/bin/spring +0 -18
  79. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  80. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  81. data/spec/rails-4.1/app_root/config/database.yml +0 -4
  82. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  83. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  84. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  85. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  86. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  87. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  88. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  89. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  90. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  91. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  92. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  93. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  94. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  95. data/spec/rails-4.1/rcov.opts +0 -2
  96. data/spec/rails-4.1/spec/spec_helper.rb +0 -25
  97. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
  98. data/spec/shared/app_root/app/helpers/application_helper.rb +0 -3
  99. data/spec/shared/app_root/app/models/artist.rb +0 -5
  100. data/spec/shared/app_root/app/models/recording/vinyl.rb +0 -5
  101. data/spec/shared/app_root/app/models/song.rb +0 -7
  102. data/spec/shared/app_root/config/database.yml +0 -4
  103. data/spec/shared/app_root/db/migrate/001_create_artists.rb +0 -11
  104. data/spec/shared/app_root/db/migrate/002_create_songs.rb +0 -16
  105. data/spec/shared/app_root/db/migrate/003_create_recordings.rb +0 -13
@@ -1,16 +0,0 @@
1
- class CreateSongs < ActiveRecord::Migration
2
-
3
- def self.up
4
- create_table :songs do |t|
5
- t.integer :artist_id
6
- t.string :genre
7
- t.integer :year
8
- t.integer :duration
9
- end
10
- end
11
-
12
- def self.down
13
- drop_table :songs
14
- end
15
-
16
- end
@@ -1,13 +0,0 @@
1
- class CreateRecordings < ActiveRecord::Migration
2
-
3
- def self.up
4
- create_table :vinyl_recordings do |t|
5
- t.integer :year
6
- end
7
- end
8
-
9
- def self.down
10
- drop_table :vinyl_recordings
11
- end
12
-
13
- end