active_type 0.4.5 → 0.7.5

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +30 -24
  5. data/CHANGELOG.md +73 -2
  6. data/README.md +56 -11
  7. data/Rakefile +22 -1
  8. data/active_type.gemspec +2 -1
  9. data/gemfiles/Gemfile.3.2.mysql2 +1 -0
  10. data/gemfiles/Gemfile.3.2.mysql2.lock +4 -2
  11. data/gemfiles/Gemfile.3.2.sqlite3 +1 -0
  12. data/gemfiles/Gemfile.3.2.sqlite3.lock +4 -2
  13. data/gemfiles/Gemfile.4.0.sqlite3 +1 -0
  14. data/gemfiles/Gemfile.4.0.sqlite3.lock +4 -2
  15. data/gemfiles/Gemfile.4.1.sqlite3 +1 -0
  16. data/gemfiles/Gemfile.4.1.sqlite3.lock +4 -2
  17. data/gemfiles/Gemfile.4.2.1.mysql2 +1 -0
  18. data/gemfiles/Gemfile.4.2.1.mysql2.lock +4 -2
  19. data/gemfiles/Gemfile.4.2.1.pg +1 -0
  20. data/gemfiles/Gemfile.4.2.1.pg.lock +4 -2
  21. data/gemfiles/Gemfile.4.2.1.sqlite3 +1 -0
  22. data/gemfiles/Gemfile.4.2.1.sqlite3.lock +4 -2
  23. data/gemfiles/Gemfile.5.0.0.mysql2.lock +56 -0
  24. data/gemfiles/Gemfile.5.0.0.pg.lock +56 -0
  25. data/gemfiles/Gemfile.5.0.0.sqlite3 +8 -0
  26. data/gemfiles/Gemfile.5.0.0.sqlite3.lock +56 -0
  27. data/gemfiles/Gemfile.5.1.0.mysql2 +8 -0
  28. data/gemfiles/Gemfile.5.1.0.mysql2.lock +56 -0
  29. data/gemfiles/Gemfile.5.1.0.pg +8 -0
  30. data/gemfiles/Gemfile.5.1.0.pg.lock +56 -0
  31. data/gemfiles/Gemfile.5.1.0.sqlite3 +8 -0
  32. data/gemfiles/Gemfile.5.1.0.sqlite3.lock +56 -0
  33. data/lib/active_type/extended_record/inheritance.rb +41 -6
  34. data/lib/active_type/nested_attributes/association.rb +13 -4
  35. data/lib/active_type/nested_attributes/builder.rb +3 -3
  36. data/lib/active_type/nested_attributes/nests_many_association.rb +5 -1
  37. data/lib/active_type/nested_attributes/nests_one_association.rb +3 -2
  38. data/lib/active_type/no_table.rb +129 -42
  39. data/lib/active_type/type_caster.rb +66 -25
  40. data/lib/active_type/util.rb +21 -6
  41. data/lib/active_type/version.rb +1 -1
  42. data/lib/active_type/virtual_attributes.rb +23 -1
  43. data/lib/active_type.rb +13 -3
  44. metadata +16 -55
  45. data/spec/active_type/extended_record/single_table_inheritance_spec.rb +0 -62
  46. data/spec/active_type/extended_record_spec.rb +0 -233
  47. data/spec/active_type/nested_attributes_spec.rb +0 -700
  48. data/spec/active_type/object_spec.rb +0 -400
  49. data/spec/active_type/record_spec.rb +0 -236
  50. data/spec/active_type/util_spec.rb +0 -128
  51. data/spec/integration/holidays_spec.rb +0 -102
  52. data/spec/integration/shape_spec.rb +0 -110
  53. data/spec/integration/sign_in_spec.rb +0 -101
  54. data/spec/integration/sign_up_spec.rb +0 -102
  55. data/spec/shared_examples/accessors.rb +0 -41
  56. data/spec/shared_examples/belongs_to.rb +0 -17
  57. data/spec/shared_examples/coercible_columns.rb +0 -228
  58. data/spec/shared_examples/constructor.rb +0 -30
  59. data/spec/shared_examples/defaults.rb +0 -60
  60. data/spec/shared_examples/dirty_tracking.rb +0 -40
  61. data/spec/shared_examples/dupable.rb +0 -31
  62. data/spec/shared_examples/mass_assignment.rb +0 -26
  63. data/spec/spec_helper.rb +0 -27
  64. data/spec/support/database.rb +0 -55
  65. data/spec/support/database.sample.yml +0 -3
  66. data/spec/support/error_on.rb +0 -12
  67. data/spec/support/i18n.rb +0 -1
  68. data/spec/support/protected_params.rb +0 -20
  69. data/spec/support/time_zone.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: facbcaa21321fefe498b9dfd06e01373a76bc0c4
4
- data.tar.gz: 1d49f4942cea269483f1e9f4c1054ef517267a8f
3
+ metadata.gz: f8e40c656b761439f7db54101905ac350792d30f
4
+ data.tar.gz: e986dc29174d96c5d7da9b611e123d885bc1954f
5
5
  SHA512:
6
- metadata.gz: 37658e011161ce41985c72c649f62f6686f6465a7ead8e7546accfe7a38bc82fdde513701d3b2c7d3eb59ba63774d4597bad2f87b6c2b9e0b1bcd50606ac3c2e
7
- data.tar.gz: 99064aa007b6b5b3f16063f884bee388e63ae2fdbed7b3b4afeae9aa5080ef01702edb2b63318ca402a195d3ea00d931d60a99abae56dc05c494167fab4b1643
6
+ metadata.gz: 3565ee831f0c113f398cb341fff3d439081ab9c4ff23ec60d2ddd38601d3d93885d082be331cadda22b6b32ebc13140d6ac3ff01750883beea5d0a89e60f883f
7
+ data.tar.gz: 6ae73d04f66d3634933a158cb5e808f7e7bee0df5894d46242a68fea2a5967a5dea464b56616f34b0c893917fba000f13e3fc15ac1bb857b1d70d20ea1b794e2
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ tags
5
5
  .idea
6
6
  tmp
7
7
  spec/support/database.yml
8
+ .bundle
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.travis.yml CHANGED
@@ -1,10 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "1.8.7"
4
- - "1.9.3"
5
- - "2.0.0"
6
3
  - "2.1.7"
7
4
  - "2.2.4"
5
+ - "2.3.1"
8
6
  gemfile:
9
7
  - gemfiles/Gemfile.3.2.mysql2
10
8
  - gemfiles/Gemfile.3.2.sqlite3
@@ -13,10 +11,14 @@ gemfile:
13
11
  - gemfiles/Gemfile.4.2.1.mysql2
14
12
  - gemfiles/Gemfile.4.2.1.pg
15
13
  - gemfiles/Gemfile.4.2.1.sqlite3
14
+ - gemfiles/Gemfile.5.0.0.sqlite3
15
+ - gemfiles/Gemfile.5.1.0.mysql2
16
+ - gemfiles/Gemfile.5.1.0.pg
17
+ - gemfiles/Gemfile.5.1.0.sqlite3
16
18
  before_script:
17
19
  - psql -c 'create database active_type_test;' -U postgres
18
20
  - mysql -e 'create database IF NOT EXISTS active_type_test;'
19
- script: bundle exec rspec spec
21
+ script: bundle exec rake spec
20
22
  sudo: false
21
23
  cache: bundler
22
24
  notifications:
@@ -27,29 +29,33 @@ branches:
27
29
  - master
28
30
  matrix:
29
31
  exclude:
30
- - rvm: "1.8.7"
32
+ - rvm: "2.1.7"
31
33
  gemfile: gemfiles/Gemfile.4.0.sqlite3
32
- - rvm: "1.8.7"
33
- gemfile: gemfiles/Gemfile.4.1.sqlite3
34
- - rvm: "1.8.7"
35
- gemfile: gemfiles/Gemfile.4.2.1.sqlite3
36
- - rvm: "1.8.7"
37
- gemfile: gemfiles/Gemfile.4.2.1.mysql2
38
- - rvm: "1.8.7"
39
- gemfile: gemfiles/Gemfile.4.2.1.pg
40
- - rvm: "1.9.3"
34
+ - rvm: "2.1.7"
41
35
  gemfile: gemfiles/Gemfile.4.2.1.mysql2
42
- - rvm: "1.9.3"
36
+ - rvm: "2.1.7"
43
37
  gemfile: gemfiles/Gemfile.4.2.1.pg
44
- - rvm: "2.0.0"
38
+ - rvm: "2.1.7"
39
+ gemfile: gemfiles/Gemfile.3.2.mysql2
40
+ - rvm: "2.1.7"
41
+ gemfile: gemfiles/Gemfile.4.1.sqlite3
42
+ - rvm: "2.1.7"
43
+ gemfile: gemfiles/Gemfile.5.0.0.sqlite3
44
+ - rvm: "2.1.7"
45
+ gemfile: gemfiles/Gemfile.5.1.0.sqlite3
46
+ - rvm: "2.1.7"
47
+ gemfile: gemfiles/Gemfile.5.1.0.mysql2
48
+ - rvm: "2.1.7"
49
+ gemfile: gemfiles/Gemfile.5.1.0.pg
50
+ - rvm: "2.2.4"
51
+ gemfile: gemfiles/Gemfile.4.0.sqlite3
52
+ - rvm: "2.2.4"
45
53
  gemfile: gemfiles/Gemfile.4.2.1.mysql2
46
- - rvm: "2.0.0"
54
+ - rvm: "2.2.4"
47
55
  gemfile: gemfiles/Gemfile.4.2.1.pg
48
- - rvm: "2.1.2"
49
- gemfile: gemfiles/Gemfile.4.0.sqlite3
50
- - rvm: "2.2.0"
51
- gemfile: gemfiles/Gemfile.3.2.sqlite3
52
- - rvm: "2.2.0"
56
+ - rvm: "2.2.4"
53
57
  gemfile: gemfiles/Gemfile.3.2.mysql2
54
- - rvm: "2.2.0"
55
- gemfile: gemfiles/Gemfile.4.0.sqlite3
58
+ - rvm: "2.2.4"
59
+ gemfile: gemfiles/Gemfile.4.1.sqlite3
60
+ install:
61
+ - bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
data/CHANGELOG.md CHANGED
@@ -4,9 +4,80 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ActiveType is in a pre-1.0 state. This means that its APIs and behavior are subject to breaking changes without deprecation notices. Until 1.0, version numbers will follow a [Semver][]-ish `0.y.z` format, where `y` is incremented when new features or breaking changes are introduced, and `z` is incremented for lesser changes or bug fixes.
6
6
 
7
- ## [Unreleased]
7
+ ## [0.7.5][] (2017-12-04)
8
8
 
9
- * Your contribution here!
9
+ * Fixed an `chird record did not match id` exception introduced in the 0.7.3 update when using `nests_one`. Credit to @cerdiogenes.
10
+
11
+
12
+ ## [0.7.4][] (2017-09-01)
13
+
14
+ * Bugfix: ActiveType.cast sets #type correctly when casting to an STI class
15
+
16
+ ## [0.7.3][] (2017-08-16)
17
+
18
+ * `nests_many` / `nests_one` will now work for nested records with non-integer primary keys.
19
+
20
+
21
+ ## [0.7.2][] (2017-07-31)
22
+
23
+ * Fixed a bug when converting datetimes from certain strings. This occured if the string included an explicit time zone (i.e. `record.date_time = '2017-07-31 12:30+03:00'`), which was not the local time.
24
+
25
+ ## [0.7.1][] (2017-06-19)
26
+
27
+ * ActiveType::Object no longer requires a database connection on Rails 5+ (it never did on Rails 3 or 4).
28
+
29
+ ## [0.7.0][] (2017-04-21)
30
+
31
+ * Support `index_errors: true` for `nest_many`.
32
+
33
+ ## [0.6.4][] (2017-02-27)
34
+
35
+ * Fix an issue when using `ActiveType.cast` "too early".
36
+
37
+ ## [0.6.3][] (2017-01-30)
38
+
39
+ * Fix a load error when using `ActiveType::Object` before using `ActiveRecord::Base` within a Rails app.
40
+
41
+ ## [0.6.2][] (2017-01-30)
42
+
43
+ * When used with Rails, defer loading to not interfere with `ActiveRecord` configuration in initializers.
44
+
45
+ ## [0.6.1][] (2016-12-05)
46
+
47
+ * Remove spec folder from packaged gem.
48
+
49
+ ## [0.6.0][] (2016-07-05)
50
+
51
+ * Drop support for 1.8.7.
52
+ * Rails 5 compatibility.
53
+
54
+ ## [0.5.1][] (2016-05-09)
55
+
56
+ * Fix an issue with incorrectly copied errors on Util.cast.
57
+
58
+ ## [0.5.0][] (2016-04-08)
59
+
60
+ * Nicer `#inspect` method.
61
+
62
+ ## [0.4.5][] (2016-02-01)
63
+
64
+ * Fixed issue `#dup`ing `ActiveType::Object`
65
+
66
+ ## [0.4.4][] (2016-01-18)
67
+
68
+ * Call `#after_commit` for `ActiveType::Object`
69
+
70
+ ## [0.4.3][] (2015-11-11)
71
+
72
+ * Fix issue with Booleans on mysql.
73
+
74
+ ## [0.4.2][] (2015-09-24)
75
+
76
+ * Add `attribute_will_change!` for virtual attributes.
77
+
78
+ ## [0.4.1][] (2015-09-24)
79
+
80
+ * Add `attribute_was` for virtual attributes.
10
81
 
11
82
  ## [0.4.0][] (2015-06-12)
12
83
 
data/README.md CHANGED
@@ -50,6 +50,23 @@ class SignUp < ActiveType::Record[User]
50
50
  end
51
51
  ```
52
52
 
53
+
54
+ ### A note on Rails 5
55
+
56
+ Rails 5 comes with its own implementation of `.attribute`. This implementation is functionally very
57
+ similar, but not identical to ActiveType's.
58
+
59
+ We have decided to continue to use our own implementation. This means that if you use ActiveType, `ActiveRecord::Base.attribute` will be overriden.
60
+
61
+ The following behaviours are different than in vanilla Rails 5:
62
+
63
+ - Defaults `proc`s are evaluated in instance context, not class context.
64
+ - Defaults are evaluated lazily.
65
+ - You can override attributes with custom methods and use `super`.
66
+ - Attributes will work on records retrieved via `.find`.
67
+ - Attributes will be duped if you dup the record.
68
+
69
+
53
70
  ### ActiveType::Object
54
71
 
55
72
 
@@ -112,13 +129,13 @@ end
112
129
  If you want to inherit from an ActiveType class, simply do
113
130
 
114
131
  ```ruby
115
- class SignUp < ActiveType::Record[User]
116
- # ...
117
- end
132
+ class SignUp < ActiveType::Record[User]
133
+ # ...
134
+ end
118
135
 
119
- class SpecialSignUp < SignUp
120
- # ...
121
- end
136
+ class SpecialSignUp < SignUp
137
+ # ...
138
+ end
122
139
  ```
123
140
 
124
141
  ### Defaults ####
@@ -147,6 +164,27 @@ SignIn.new(email: "tobias@example.org").nickname # "tobias"
147
164
  SignIn.new(email: "tobias@example.org", :nickname => "kratob").nickname # "kratob"
148
165
  ```
149
166
 
167
+ ### Overriding accessors
168
+
169
+ You can override attribute getters and setters using `super`:
170
+
171
+ ```ruby
172
+ class SignIn < ActiveType::Object
173
+
174
+ attribute :email, :string
175
+ attribute :nickname, :string
176
+
177
+ def email
178
+ super.downcase
179
+ end
180
+
181
+ def nickname=(value)
182
+ super(value.titleize)
183
+ end
184
+
185
+ end
186
+ ```
187
+
150
188
  ### Nested attributes
151
189
 
152
190
  ActiveType supports its own variant of nested attributes via the `nests_one` /
@@ -270,6 +308,13 @@ Supported options for `nests_many` / `nests_one` are:
270
308
  nests_many :documents, default: proc { Documents.all }
271
309
  ```
272
310
 
311
+ Options supported exclusively by `nests_many` are:
312
+
313
+ - `index_errors`
314
+
315
+ Use a boolean to get indexed errors on related records. In Rails 5 you can make it global with
316
+ `config.active_record.index_nested_attribute_errors = true`.
317
+
273
318
 
274
319
  Casting records or relations
275
320
  ----------------------------
@@ -278,7 +323,7 @@ When working with ActiveType you will often find it useful to cast an ActiveReco
278
323
 
279
324
  Use `ActiveType.cast` for this:
280
325
 
281
- ```
326
+ ```ruby
282
327
  class User < ActiveRecord::Base
283
328
  ...
284
329
  end
@@ -296,7 +341,7 @@ This is basically like [`ActiveRecord#becomes`](http://apidock.com/rails/v4.2.1/
296
341
 
297
342
  You can also cast an entire relation (scope) to a relation of an `ActiveType::Record`:
298
343
 
299
- ```
344
+ ```ruby
300
345
  adult_users = User.where('age >= 18')
301
346
  adult_sign_ups = ActiveType.cast(adult_users, SignUp)
302
347
  sign_up = adult_sign_ups.find(1)
@@ -307,14 +352,14 @@ sign_up.is_a?(SignUp) # => true
307
352
  Supported Rails versions
308
353
  ------------------------
309
354
 
310
- ActiveType is tested against ActiveRecord 3.2, 4.0, 4.1 and 4.2.
355
+ ActiveType is tested against ActiveRecord 3.2, 4.0, 4.1, 4.2, 5.0, and 5.1.
311
356
 
312
357
  Later versions might work, earlier will not.
313
358
 
314
359
  Supported Ruby versions
315
360
  ------------------------
316
361
 
317
- ActiveType is tested against MRI 1.8.7 (for 3.2 only), 1.9.3, 2.0.0, 2.1.2.
362
+ ActiveType is tested against 2.1.7 (for 3.2, 4.x only), 2.2.4 and 2.3.1.
318
363
 
319
364
 
320
365
  Installation
@@ -333,7 +378,7 @@ Development
333
378
  - We run tests against several ActiveRecord versions.
334
379
  - You can bundle all versions with `rake all:install`.
335
380
  - You can run specs against all versions with `rake all:spec`.
336
- - You can run specs against a single version with `VERSION=4.0 rake`.
381
+ - You can run specs against a single version with `VERSION=4.2.1.pg rake` or `VERSION="4.2.1.*" rake`.
337
382
 
338
383
  If you are getting testing failures due to Mysql trying to connect as `root` user, you can put your Mysql credentials into `spec/support/database.yml`.
339
384
  See `spec/support/database.sample.yml` for an example.
data/Rakefile CHANGED
@@ -4,13 +4,20 @@ require 'bundler/gem_tasks'
4
4
  desc 'Default: Run all specs.'
5
5
  task :default => 'all:spec'
6
6
 
7
+
8
+ desc "Run specs and isolated specs"
9
+ task :spec do
10
+ success = run_specs
11
+ fail "Tests failed" unless success
12
+ end
13
+
7
14
  namespace :all do
8
15
 
9
16
  desc "Run specs on all versions"
10
17
  task :spec do
11
18
  success = true
12
19
  for_each_gemfile do
13
- success &= system("bundle exec rspec spec")
20
+ success &= run_specs
14
21
  end
15
22
  fail "Tests failed" unless success
16
23
  end
@@ -40,3 +47,17 @@ def for_each_gemfile
40
47
  yield
41
48
  end
42
49
  end
50
+
51
+ def for_each_isolated_spec
52
+ Dir["spec/isolated/**/*_spec.rb"].sort.each do |isolated_spec|
53
+ yield(isolated_spec)
54
+ end
55
+ end
56
+
57
+ def run_specs
58
+ success = system("bundle exec rspec spec --exclude-pattern '**/isolated/**'")
59
+ for_each_isolated_spec do |isolated_spec|
60
+ success &= system("bundle exec rspec #{isolated_spec}")
61
+ end
62
+ success
63
+ end
data/active_type.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.description = s.summary
12
12
  s.license = 'MIT'
13
13
 
14
- s.files = `git ls-files -z`.split("\x0")
14
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
15
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
16
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
17
17
  s.require_paths = ["lib"]
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_runtime_dependency('activerecord', '>= 3.2')
23
23
 
24
+ s.required_ruby_version = '>= 1.9.3'
24
25
  end
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '=3.2.22'
4
4
  gem 'rspec', '~> 3.4'
5
5
  gem 'mysql2', '= 0.3.17'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
8
9
  gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -24,6 +24,7 @@ GEM
24
24
  i18n (0.6.11)
25
25
  multi_json (1.11.2)
26
26
  mysql2 (0.3.17)
27
+ rake (10.4.2)
27
28
  rspec (3.4.0)
28
29
  rspec-core (~> 3.4.0)
29
30
  rspec-expectations (~> 3.4.0)
@@ -47,7 +48,8 @@ DEPENDENCIES
47
48
  activerecord (= 3.2.22)
48
49
  i18n (= 0.6.11)
49
50
  mysql2 (= 0.3.17)
51
+ rake
50
52
  rspec (~> 3.4)
51
53
 
52
54
  BUNDLED WITH
53
- 1.11.2
55
+ 1.15.4
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '=3.2.22'
4
4
  gem 'rspec', '~>3.4'
5
5
  gem 'sqlite3'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
8
9
  gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -23,6 +23,7 @@ GEM
23
23
  diff-lcs (1.2.5)
24
24
  i18n (0.6.11)
25
25
  multi_json (1.11.2)
26
+ rake (10.4.2)
26
27
  rspec (3.4.0)
27
28
  rspec-core (~> 3.4.0)
28
29
  rspec-expectations (~> 3.4.0)
@@ -46,8 +47,9 @@ DEPENDENCIES
46
47
  active_type!
47
48
  activerecord (= 3.2.22)
48
49
  i18n (= 0.6.11)
50
+ rake
49
51
  rspec (~> 3.4)
50
52
  sqlite3
51
53
 
52
54
  BUNDLED WITH
53
- 1.11.2
55
+ 1.15.4
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '~>4.0.0'
4
4
  gem 'rspec', '~>3.4'
5
5
  gem 'sqlite3'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -28,6 +28,7 @@ GEM
28
28
  i18n (0.7.0)
29
29
  minitest (4.7.5)
30
30
  multi_json (1.11.2)
31
+ rake (10.4.2)
31
32
  rspec (3.4.0)
32
33
  rspec-core (~> 3.4.0)
33
34
  rspec-expectations (~> 3.4.0)
@@ -51,8 +52,9 @@ PLATFORMS
51
52
  DEPENDENCIES
52
53
  active_type!
53
54
  activerecord (~> 4.0.0)
55
+ rake
54
56
  rspec (~> 3.4)
55
57
  sqlite3
56
58
 
57
59
  BUNDLED WITH
58
- 1.11.2
60
+ 1.15.4
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '~>4.1.0'
4
4
  gem 'rspec', '~>3.4'
5
5
  gem 'sqlite3'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -26,6 +26,7 @@ GEM
26
26
  i18n (0.7.0)
27
27
  json (1.8.3)
28
28
  minitest (5.8.3)
29
+ rake (10.4.2)
29
30
  rspec (3.4.0)
30
31
  rspec-core (~> 3.4.0)
31
32
  rspec-expectations (~> 3.4.0)
@@ -50,8 +51,9 @@ PLATFORMS
50
51
  DEPENDENCIES
51
52
  active_type!
52
53
  activerecord (~> 4.1.0)
54
+ rake
53
55
  rspec (~> 3.4)
54
56
  sqlite3
55
57
 
56
58
  BUNDLED WITH
57
- 1.11.2
59
+ 1.15.4
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '~>4.2.1'
4
4
  gem 'rspec', '~>3.4'
5
5
  gem 'mysql2', '~> 0.3.17'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -27,6 +27,7 @@ GEM
27
27
  json (1.8.3)
28
28
  minitest (5.8.3)
29
29
  mysql2 (0.3.20)
30
+ rake (10.4.2)
30
31
  rspec (3.4.0)
31
32
  rspec-core (~> 3.4.0)
32
33
  rspec-expectations (~> 3.4.0)
@@ -51,7 +52,8 @@ DEPENDENCIES
51
52
  active_type!
52
53
  activerecord (~> 4.2.1)
53
54
  mysql2 (~> 0.3.17)
55
+ rake
54
56
  rspec (~> 3.4)
55
57
 
56
58
  BUNDLED WITH
57
- 1.11.2
59
+ 1.15.4
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '~>4.2.1'
4
4
  gem 'rspec', '~>3.4'
5
5
  gem 'pg'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -27,6 +27,7 @@ GEM
27
27
  json (1.8.3)
28
28
  minitest (5.8.3)
29
29
  pg (0.18.4)
30
+ rake (10.4.2)
30
31
  rspec (3.4.0)
31
32
  rspec-core (~> 3.4.0)
32
33
  rspec-expectations (~> 3.4.0)
@@ -51,7 +52,8 @@ DEPENDENCIES
51
52
  active_type!
52
53
  activerecord (~> 4.2.1)
53
54
  pg
55
+ rake
54
56
  rspec (~> 3.4)
55
57
 
56
58
  BUNDLED WITH
57
- 1.11.2
59
+ 1.15.4
@@ -3,5 +3,6 @@ source 'https://rubygems.org'
3
3
  gem 'activerecord', '~>4.2.1'
4
4
  gem 'rspec', '~> 3.4'
5
5
  gem 'sqlite3'
6
+ gem 'rake'
6
7
 
7
8
  gem 'active_type', :path => '..'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.4.5)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -26,6 +26,7 @@ GEM
26
26
  i18n (0.7.0)
27
27
  json (1.8.3)
28
28
  minitest (5.8.3)
29
+ rake (10.4.2)
29
30
  rspec (3.4.0)
30
31
  rspec-core (~> 3.4.0)
31
32
  rspec-expectations (~> 3.4.0)
@@ -50,8 +51,9 @@ PLATFORMS
50
51
  DEPENDENCIES
51
52
  active_type!
52
53
  activerecord (~> 4.2.1)
54
+ rake
53
55
  rspec (~> 3.4)
54
56
  sqlite3
55
57
 
56
58
  BUNDLED WITH
57
- 1.11.2
59
+ 1.15.4
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ active_type (0.7.0)
5
+ activerecord (>= 3.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (5.0.0)
11
+ activesupport (= 5.0.0)
12
+ activerecord (5.0.0)
13
+ activemodel (= 5.0.0)
14
+ activesupport (= 5.0.0)
15
+ arel (~> 7.0)
16
+ activesupport (5.0.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (~> 0.7)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ arel (7.0.0)
22
+ concurrent-ruby (1.0.2)
23
+ diff-lcs (1.2.5)
24
+ i18n (0.7.0)
25
+ minitest (5.9.0)
26
+ mysql2 (0.3.21)
27
+ rake (10.4.2)
28
+ rspec (3.5.0)
29
+ rspec-core (~> 3.5.0)
30
+ rspec-expectations (~> 3.5.0)
31
+ rspec-mocks (~> 3.5.0)
32
+ rspec-core (3.5.0)
33
+ rspec-support (~> 3.5.0)
34
+ rspec-expectations (3.5.0)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.5.0)
37
+ rspec-mocks (3.5.0)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.5.0)
40
+ rspec-support (3.5.0)
41
+ thread_safe (0.3.5)
42
+ tzinfo (1.2.2)
43
+ thread_safe (~> 0.1)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ active_type!
50
+ activerecord (~> 5.0.0)
51
+ mysql2 (~> 0.3.17)
52
+ rake
53
+ rspec (~> 3.4)
54
+
55
+ BUNDLED WITH
56
+ 1.12.1