active_type 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +8 -1
- data/gemfiles/Gemfile.3.2.lock +11 -11
- data/gemfiles/Gemfile.4.0.lock +13 -13
- data/gemfiles/Gemfile.4.1.lock +13 -13
- data/gemfiles/Gemfile.4.2.1 +1 -1
- data/gemfiles/Gemfile.4.2.1.lock +10 -10
- data/gemfiles/{Gemfile.4.2.pg → Gemfile.4.2.1.pg} +1 -1
- data/gemfiles/{Gemfile.4.2.pg.lock → Gemfile.4.2.1.pg.lock} +12 -12
- data/lib/active_type/version.rb +1 -1
- data/lib/active_type.rb +7 -2
- metadata +4 -6
- data/gemfiles/Gemfile.4.2 +0 -7
- data/gemfiles/Gemfile.4.2.lock +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a9d94011bdc8c1f856f86a6e8727c486a5c913
|
4
|
+
data.tar.gz: 4519e88999647fdfa0010d316c93a74121e3e713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73db269866a0b4cfc512636679733ea14e9c4d5b1130804b305eec33a771dace04ef08a31c91637c9e0a97a79b8b878a8d8be519eceded9a1b43492d49b7bfd9
|
7
|
+
data.tar.gz: daacc8590bd0afd465eafdb0cca1967c4a8612a34180587d9e20cc65831b39456753ddba149c3e42d2d92708f047f6b2e4d1edf2d7c588ec7c98a0252e2f77a2
|
data/README.md
CHANGED
@@ -298,8 +298,8 @@ Development
|
|
298
298
|
-----------
|
299
299
|
|
300
300
|
- We run tests against several ActiveRecord versions.
|
301
|
-
- You can bundle all versions with `rake all:
|
302
|
-
- You can run specs against all versions with `rake`.
|
301
|
+
- You can bundle all versions with `rake all:install`.
|
302
|
+
- You can run specs against all versions with `rake all:spec`.
|
303
303
|
- You can run specs against a single version with `VERSION=4.0 rake`.
|
304
304
|
|
305
305
|
If you would like to contribute:
|
data/Rakefile
CHANGED
@@ -17,12 +17,19 @@ namespace :all do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
desc "Bundle all versions"
|
20
|
-
task :
|
20
|
+
task :install do
|
21
21
|
for_each_gemfile do
|
22
22
|
system('bundle install')
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
desc "Update all versions"
|
27
|
+
task :update do
|
28
|
+
for_each_gemfile do
|
29
|
+
system('bundle update')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
26
33
|
end
|
27
34
|
|
28
35
|
def for_each_gemfile
|
data/gemfiles/Gemfile.3.2.lock
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.3.
|
4
|
+
active_type (0.3.4)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (3.2.
|
11
|
-
activesupport (= 3.2.
|
10
|
+
activemodel (3.2.21)
|
11
|
+
activesupport (= 3.2.21)
|
12
12
|
builder (~> 3.0.0)
|
13
|
-
activerecord (3.2.
|
14
|
-
activemodel (= 3.2.
|
15
|
-
activesupport (= 3.2.
|
13
|
+
activerecord (3.2.21)
|
14
|
+
activemodel (= 3.2.21)
|
15
|
+
activesupport (= 3.2.21)
|
16
16
|
arel (~> 3.0.2)
|
17
17
|
tzinfo (~> 0.3.29)
|
18
|
-
activesupport (3.2.
|
18
|
+
activesupport (3.2.21)
|
19
19
|
i18n (~> 0.6, >= 0.6.4)
|
20
20
|
multi_json (~> 1.0)
|
21
21
|
arel (3.0.3)
|
22
22
|
builder (3.0.4)
|
23
23
|
diff-lcs (1.2.5)
|
24
|
-
i18n (0.
|
25
|
-
multi_json (1.
|
24
|
+
i18n (0.7.0)
|
25
|
+
multi_json (1.11.1)
|
26
26
|
rspec (2.14.1)
|
27
27
|
rspec-core (~> 2.14.0)
|
28
28
|
rspec-expectations (~> 2.14.0)
|
@@ -31,8 +31,8 @@ GEM
|
|
31
31
|
rspec-expectations (2.14.5)
|
32
32
|
diff-lcs (>= 1.1.3, < 2.0)
|
33
33
|
rspec-mocks (2.14.6)
|
34
|
-
sqlite3 (1.3.
|
35
|
-
tzinfo (0.3.
|
34
|
+
sqlite3 (1.3.10)
|
35
|
+
tzinfo (0.3.44)
|
36
36
|
|
37
37
|
PLATFORMS
|
38
38
|
ruby
|
data/gemfiles/Gemfile.4.0.lock
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.3.
|
4
|
+
active_type (0.3.4)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (4.0.
|
11
|
-
activesupport (= 4.0.
|
10
|
+
activemodel (4.0.13)
|
11
|
+
activesupport (= 4.0.13)
|
12
12
|
builder (~> 3.1.0)
|
13
|
-
activerecord (4.0.
|
14
|
-
activemodel (= 4.0.
|
13
|
+
activerecord (4.0.13)
|
14
|
+
activemodel (= 4.0.13)
|
15
15
|
activerecord-deprecated_finders (~> 1.0.2)
|
16
|
-
activesupport (= 4.0.
|
16
|
+
activesupport (= 4.0.13)
|
17
17
|
arel (~> 4.0.0)
|
18
|
-
activerecord-deprecated_finders (1.0.
|
19
|
-
activesupport (4.0.
|
18
|
+
activerecord-deprecated_finders (1.0.4)
|
19
|
+
activesupport (4.0.13)
|
20
20
|
i18n (~> 0.6, >= 0.6.9)
|
21
21
|
minitest (~> 4.2)
|
22
22
|
multi_json (~> 1.3)
|
@@ -25,9 +25,9 @@ GEM
|
|
25
25
|
arel (4.0.2)
|
26
26
|
builder (3.1.4)
|
27
27
|
diff-lcs (1.2.5)
|
28
|
-
i18n (0.
|
28
|
+
i18n (0.7.0)
|
29
29
|
minitest (4.7.5)
|
30
|
-
multi_json (1.
|
30
|
+
multi_json (1.11.1)
|
31
31
|
rspec (2.14.1)
|
32
32
|
rspec-core (~> 2.14.0)
|
33
33
|
rspec-expectations (~> 2.14.0)
|
@@ -36,9 +36,9 @@ GEM
|
|
36
36
|
rspec-expectations (2.14.5)
|
37
37
|
diff-lcs (>= 1.1.3, < 2.0)
|
38
38
|
rspec-mocks (2.14.6)
|
39
|
-
sqlite3 (1.3.
|
40
|
-
thread_safe (0.3.
|
41
|
-
tzinfo (0.3.
|
39
|
+
sqlite3 (1.3.10)
|
40
|
+
thread_safe (0.3.5)
|
41
|
+
tzinfo (0.3.44)
|
42
42
|
|
43
43
|
PLATFORMS
|
44
44
|
ruby
|
data/gemfiles/Gemfile.4.1.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.3.
|
4
|
+
active_type (0.3.4)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (4.1.
|
11
|
-
activesupport (= 4.1.
|
10
|
+
activemodel (4.1.10)
|
11
|
+
activesupport (= 4.1.10)
|
12
12
|
builder (~> 3.1)
|
13
|
-
activerecord (4.1.
|
14
|
-
activemodel (= 4.1.
|
15
|
-
activesupport (= 4.1.
|
13
|
+
activerecord (4.1.10)
|
14
|
+
activemodel (= 4.1.10)
|
15
|
+
activesupport (= 4.1.10)
|
16
16
|
arel (~> 5.0.0)
|
17
|
-
activesupport (4.1.
|
17
|
+
activesupport (4.1.10)
|
18
18
|
i18n (~> 0.6, >= 0.6.9)
|
19
19
|
json (~> 1.7, >= 1.7.7)
|
20
20
|
minitest (~> 5.1)
|
@@ -23,9 +23,9 @@ GEM
|
|
23
23
|
arel (5.0.1.20140414130214)
|
24
24
|
builder (3.2.2)
|
25
25
|
diff-lcs (1.2.5)
|
26
|
-
i18n (0.
|
27
|
-
json (1.8.
|
28
|
-
minitest (5.
|
26
|
+
i18n (0.7.0)
|
27
|
+
json (1.8.3)
|
28
|
+
minitest (5.7.0)
|
29
29
|
rspec (2.14.1)
|
30
30
|
rspec-core (~> 2.14.0)
|
31
31
|
rspec-expectations (~> 2.14.0)
|
@@ -34,9 +34,9 @@ GEM
|
|
34
34
|
rspec-expectations (2.14.5)
|
35
35
|
diff-lcs (>= 1.1.3, < 2.0)
|
36
36
|
rspec-mocks (2.14.6)
|
37
|
-
sqlite3 (1.3.
|
38
|
-
thread_safe (0.3.
|
39
|
-
tzinfo (1.2.
|
37
|
+
sqlite3 (1.3.10)
|
38
|
+
thread_safe (0.3.5)
|
39
|
+
tzinfo (1.2.2)
|
40
40
|
thread_safe (~> 0.1)
|
41
41
|
|
42
42
|
PLATFORMS
|
data/gemfiles/Gemfile.4.2.1
CHANGED
data/gemfiles/Gemfile.4.2.1.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.3.
|
4
|
+
active_type (0.3.4)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (4.2.1
|
11
|
-
activesupport (= 4.2.1
|
10
|
+
activemodel (4.2.1)
|
11
|
+
activesupport (= 4.2.1)
|
12
12
|
builder (~> 3.1)
|
13
|
-
activerecord (4.2.1
|
14
|
-
activemodel (= 4.2.1
|
15
|
-
activesupport (= 4.2.1
|
13
|
+
activerecord (4.2.1)
|
14
|
+
activemodel (= 4.2.1)
|
15
|
+
activesupport (= 4.2.1)
|
16
16
|
arel (~> 6.0)
|
17
|
-
activesupport (4.2.1
|
17
|
+
activesupport (4.2.1)
|
18
18
|
i18n (~> 0.7)
|
19
19
|
json (~> 1.7, >= 1.7.7)
|
20
20
|
minitest (~> 5.1)
|
@@ -24,8 +24,8 @@ GEM
|
|
24
24
|
builder (3.2.2)
|
25
25
|
diff-lcs (1.2.5)
|
26
26
|
i18n (0.7.0)
|
27
|
-
json (1.8.
|
28
|
-
minitest (5.
|
27
|
+
json (1.8.3)
|
28
|
+
minitest (5.7.0)
|
29
29
|
rspec (2.14.1)
|
30
30
|
rspec-core (~> 2.14.0)
|
31
31
|
rspec-expectations (~> 2.14.0)
|
@@ -44,6 +44,6 @@ PLATFORMS
|
|
44
44
|
|
45
45
|
DEPENDENCIES
|
46
46
|
active_type!
|
47
|
-
activerecord (~> 4.2.1
|
47
|
+
activerecord (~> 4.2.1)
|
48
48
|
rspec (< 2.99)
|
49
49
|
sqlite3
|
@@ -1,20 +1,20 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
active_type (0.3.
|
4
|
+
active_type (0.3.4)
|
5
5
|
activerecord (>= 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (4.2.
|
11
|
-
activesupport (= 4.2.
|
10
|
+
activemodel (4.2.1)
|
11
|
+
activesupport (= 4.2.1)
|
12
12
|
builder (~> 3.1)
|
13
|
-
activerecord (4.2.
|
14
|
-
activemodel (= 4.2.
|
15
|
-
activesupport (= 4.2.
|
13
|
+
activerecord (4.2.1)
|
14
|
+
activemodel (= 4.2.1)
|
15
|
+
activesupport (= 4.2.1)
|
16
16
|
arel (~> 6.0)
|
17
|
-
activesupport (4.2.
|
17
|
+
activesupport (4.2.1)
|
18
18
|
i18n (~> 0.7)
|
19
19
|
json (~> 1.7, >= 1.7.7)
|
20
20
|
minitest (~> 5.1)
|
@@ -24,9 +24,9 @@ GEM
|
|
24
24
|
builder (3.2.2)
|
25
25
|
diff-lcs (1.2.5)
|
26
26
|
i18n (0.7.0)
|
27
|
-
json (1.8.
|
28
|
-
minitest (5.
|
29
|
-
pg (0.18.
|
27
|
+
json (1.8.3)
|
28
|
+
minitest (5.7.0)
|
29
|
+
pg (0.18.2)
|
30
30
|
rspec (2.14.1)
|
31
31
|
rspec-core (~> 2.14.0)
|
32
32
|
rspec-expectations (~> 2.14.0)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
rspec-expectations (2.14.5)
|
36
36
|
diff-lcs (>= 1.1.3, < 2.0)
|
37
37
|
rspec-mocks (2.14.6)
|
38
|
-
thread_safe (0.3.
|
38
|
+
thread_safe (0.3.5)
|
39
39
|
tzinfo (1.2.2)
|
40
40
|
thread_safe (~> 0.1)
|
41
41
|
|
@@ -44,6 +44,6 @@ PLATFORMS
|
|
44
44
|
|
45
45
|
DEPENDENCIES
|
46
46
|
active_type!
|
47
|
-
activerecord (~> 4.2.
|
47
|
+
activerecord (~> 4.2.1)
|
48
48
|
pg
|
49
49
|
rspec (< 2.99)
|
data/lib/active_type/version.rb
CHANGED
data/lib/active_type.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'active_type/version'
|
4
|
-
|
5
4
|
require 'active_record'
|
6
|
-
|
7
5
|
require 'active_type/record'
|
8
6
|
require 'active_type/object'
|
7
|
+
|
8
|
+
if ActiveRecord::VERSION::STRING == '4.2.0'
|
9
|
+
raise(<<-MESSAGE.strip_heredoc)
|
10
|
+
ActiveType is not compatible with ActiveRecord 4.2.0. Please upgrade to 4.2.1
|
11
|
+
For details see https://github.com/makandra/active_type/issues/31
|
12
|
+
MESSAGE
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -72,12 +72,10 @@ files:
|
|
72
72
|
- gemfiles/Gemfile.4.0.lock
|
73
73
|
- gemfiles/Gemfile.4.1
|
74
74
|
- gemfiles/Gemfile.4.1.lock
|
75
|
-
- gemfiles/Gemfile.4.2
|
76
75
|
- gemfiles/Gemfile.4.2.1
|
77
76
|
- gemfiles/Gemfile.4.2.1.lock
|
78
|
-
- gemfiles/Gemfile.4.2.
|
79
|
-
- gemfiles/Gemfile.4.2.pg
|
80
|
-
- gemfiles/Gemfile.4.2.pg.lock
|
77
|
+
- gemfiles/Gemfile.4.2.1.pg
|
78
|
+
- gemfiles/Gemfile.4.2.1.pg.lock
|
81
79
|
- lib/active_type.rb
|
82
80
|
- lib/active_type/extended_record.rb
|
83
81
|
- lib/active_type/extended_record/inheritance.rb
|
data/gemfiles/Gemfile.4.2
DELETED
data/gemfiles/Gemfile.4.2.lock
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
active_type (0.3.3)
|
5
|
-
activerecord (>= 3.2)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
activemodel (4.2.0)
|
11
|
-
activesupport (= 4.2.0)
|
12
|
-
builder (~> 3.1)
|
13
|
-
activerecord (4.2.0)
|
14
|
-
activemodel (= 4.2.0)
|
15
|
-
activesupport (= 4.2.0)
|
16
|
-
arel (~> 6.0)
|
17
|
-
activesupport (4.2.0)
|
18
|
-
i18n (~> 0.7)
|
19
|
-
json (~> 1.7, >= 1.7.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
22
|
-
tzinfo (~> 1.1)
|
23
|
-
arel (6.0.0)
|
24
|
-
builder (3.2.2)
|
25
|
-
diff-lcs (1.2.5)
|
26
|
-
i18n (0.7.0)
|
27
|
-
json (1.8.2)
|
28
|
-
minitest (5.5.1)
|
29
|
-
rspec (2.14.1)
|
30
|
-
rspec-core (~> 2.14.0)
|
31
|
-
rspec-expectations (~> 2.14.0)
|
32
|
-
rspec-mocks (~> 2.14.0)
|
33
|
-
rspec-core (2.14.8)
|
34
|
-
rspec-expectations (2.14.5)
|
35
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
36
|
-
rspec-mocks (2.14.6)
|
37
|
-
sqlite3 (1.3.9)
|
38
|
-
thread_safe (0.3.4)
|
39
|
-
tzinfo (1.2.2)
|
40
|
-
thread_safe (~> 0.1)
|
41
|
-
|
42
|
-
PLATFORMS
|
43
|
-
ruby
|
44
|
-
|
45
|
-
DEPENDENCIES
|
46
|
-
active_type!
|
47
|
-
activerecord (~> 4.2.0)
|
48
|
-
rspec (< 2.99)
|
49
|
-
sqlite3
|