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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/.travis.yml +30 -24
- data/CHANGELOG.md +73 -2
- data/README.md +56 -11
- data/Rakefile +22 -1
- data/active_type.gemspec +2 -1
- data/gemfiles/Gemfile.3.2.mysql2 +1 -0
- data/gemfiles/Gemfile.3.2.mysql2.lock +4 -2
- data/gemfiles/Gemfile.3.2.sqlite3 +1 -0
- data/gemfiles/Gemfile.3.2.sqlite3.lock +4 -2
- data/gemfiles/Gemfile.4.0.sqlite3 +1 -0
- data/gemfiles/Gemfile.4.0.sqlite3.lock +4 -2
- data/gemfiles/Gemfile.4.1.sqlite3 +1 -0
- data/gemfiles/Gemfile.4.1.sqlite3.lock +4 -2
- data/gemfiles/Gemfile.4.2.1.mysql2 +1 -0
- data/gemfiles/Gemfile.4.2.1.mysql2.lock +4 -2
- data/gemfiles/Gemfile.4.2.1.pg +1 -0
- data/gemfiles/Gemfile.4.2.1.pg.lock +4 -2
- data/gemfiles/Gemfile.4.2.1.sqlite3 +1 -0
- data/gemfiles/Gemfile.4.2.1.sqlite3.lock +4 -2
- data/gemfiles/Gemfile.5.0.0.mysql2.lock +56 -0
- data/gemfiles/Gemfile.5.0.0.pg.lock +56 -0
- data/gemfiles/Gemfile.5.0.0.sqlite3 +8 -0
- data/gemfiles/Gemfile.5.0.0.sqlite3.lock +56 -0
- data/gemfiles/Gemfile.5.1.0.mysql2 +8 -0
- data/gemfiles/Gemfile.5.1.0.mysql2.lock +56 -0
- data/gemfiles/Gemfile.5.1.0.pg +8 -0
- data/gemfiles/Gemfile.5.1.0.pg.lock +56 -0
- data/gemfiles/Gemfile.5.1.0.sqlite3 +8 -0
- data/gemfiles/Gemfile.5.1.0.sqlite3.lock +56 -0
- data/lib/active_type/extended_record/inheritance.rb +41 -6
- data/lib/active_type/nested_attributes/association.rb +13 -4
- data/lib/active_type/nested_attributes/builder.rb +3 -3
- data/lib/active_type/nested_attributes/nests_many_association.rb +5 -1
- data/lib/active_type/nested_attributes/nests_one_association.rb +3 -2
- data/lib/active_type/no_table.rb +129 -42
- data/lib/active_type/type_caster.rb +66 -25
- data/lib/active_type/util.rb +21 -6
- data/lib/active_type/version.rb +1 -1
- data/lib/active_type/virtual_attributes.rb +23 -1
- data/lib/active_type.rb +13 -3
- metadata +16 -55
- data/spec/active_type/extended_record/single_table_inheritance_spec.rb +0 -62
- data/spec/active_type/extended_record_spec.rb +0 -233
- data/spec/active_type/nested_attributes_spec.rb +0 -700
- data/spec/active_type/object_spec.rb +0 -400
- data/spec/active_type/record_spec.rb +0 -236
- data/spec/active_type/util_spec.rb +0 -128
- data/spec/integration/holidays_spec.rb +0 -102
- data/spec/integration/shape_spec.rb +0 -110
- data/spec/integration/sign_in_spec.rb +0 -101
- data/spec/integration/sign_up_spec.rb +0 -102
- data/spec/shared_examples/accessors.rb +0 -41
- data/spec/shared_examples/belongs_to.rb +0 -17
- data/spec/shared_examples/coercible_columns.rb +0 -228
- data/spec/shared_examples/constructor.rb +0 -30
- data/spec/shared_examples/defaults.rb +0 -60
- data/spec/shared_examples/dirty_tracking.rb +0 -40
- data/spec/shared_examples/dupable.rb +0 -31
- data/spec/shared_examples/mass_assignment.rb +0 -26
- data/spec/spec_helper.rb +0 -27
- data/spec/support/database.rb +0 -55
- data/spec/support/database.sample.yml +0 -3
- data/spec/support/error_on.rb +0 -12
- data/spec/support/i18n.rb +0 -1
- data/spec/support/protected_params.rb +0 -20
- data/spec/support/time_zone.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8e40c656b761439f7db54101905ac350792d30f
|
4
|
+
data.tar.gz: e986dc29174d96c5d7da9b611e123d885bc1954f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3565ee831f0c113f398cb341fff3d439081ab9c4ff23ec60d2ddd38601d3d93885d082be331cadda22b6b32ebc13140d6ac3ff01750883beea5d0a89e60f883f
|
7
|
+
data.tar.gz: 6ae73d04f66d3634933a158cb5e808f7e7bee0df5894d46242a68fea2a5967a5dea464b56616f34b0c893917fba000f13e3fc15ac1bb857b1d70d20ea1b794e2
|
data/.gitignore
CHANGED
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
|
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.
|
32
|
+
- rvm: "2.1.7"
|
31
33
|
gemfile: gemfiles/Gemfile.4.0.sqlite3
|
32
|
-
- rvm: "1.
|
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.
|
36
|
+
- rvm: "2.1.7"
|
43
37
|
gemfile: gemfiles/Gemfile.4.2.1.pg
|
44
|
-
- rvm: "2.
|
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.
|
54
|
+
- rvm: "2.2.4"
|
47
55
|
gemfile: gemfiles/Gemfile.4.2.1.pg
|
48
|
-
- rvm: "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.
|
55
|
-
gemfile: gemfiles/Gemfile.4.
|
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
|
-
## [
|
7
|
+
## [0.7.5][] (2017-12-04)
|
8
8
|
|
9
|
-
*
|
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
|
-
|
116
|
-
|
117
|
-
|
132
|
+
class SignUp < ActiveType::Record[User]
|
133
|
+
# ...
|
134
|
+
end
|
118
135
|
|
119
|
-
|
120
|
-
|
121
|
-
|
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
|
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
|
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.
|
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 &=
|
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
|
data/gemfiles/Gemfile.3.2.mysql2
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
55
|
+
1.15.4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
55
|
+
1.15.4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
60
|
+
1.15.4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
59
|
+
1.15.4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
59
|
+
1.15.4
|
data/gemfiles/Gemfile.4.2.1.pg
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
59
|
+
1.15.4
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.
|
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.
|
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
|