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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66429d47723c86d46ad8206672d42d9c082cc337
4
- data.tar.gz: 0f11c8ceba00e27e856f38e04bf9e02ff84e30cf
3
+ metadata.gz: 36a9d94011bdc8c1f856f86a6e8727c486a5c913
4
+ data.tar.gz: 4519e88999647fdfa0010d316c93a74121e3e713
5
5
  SHA512:
6
- metadata.gz: 73276f4bded38cc46e7f4e92d707440f5cebefa2e84c9520577469dd4e9c55fbd6a30965525ec20cd657af5c7d4e12e3a601e2ee9087b397b253880d3a6904bd
7
- data.tar.gz: 16fd9adac6c2d729391db29a9535c47e7534dffbb5d2e9953d2ed190aa21ffbd06f016a8548e64ab17b46d0a3aff194a3929a0973630d326e7fed9114ccefde9
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:bundle`.
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 :bundle do
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
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.3.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.19)
11
- activesupport (= 3.2.19)
10
+ activemodel (3.2.21)
11
+ activesupport (= 3.2.21)
12
12
  builder (~> 3.0.0)
13
- activerecord (3.2.19)
14
- activemodel (= 3.2.19)
15
- activesupport (= 3.2.19)
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.19)
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.6.11)
25
- multi_json (1.10.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.9)
35
- tzinfo (0.3.40)
34
+ sqlite3 (1.3.10)
35
+ tzinfo (0.3.44)
36
36
 
37
37
  PLATFORMS
38
38
  ruby
@@ -1,22 +1,22 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.3.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.8)
11
- activesupport (= 4.0.8)
10
+ activemodel (4.0.13)
11
+ activesupport (= 4.0.13)
12
12
  builder (~> 3.1.0)
13
- activerecord (4.0.8)
14
- activemodel (= 4.0.8)
13
+ activerecord (4.0.13)
14
+ activemodel (= 4.0.13)
15
15
  activerecord-deprecated_finders (~> 1.0.2)
16
- activesupport (= 4.0.8)
16
+ activesupport (= 4.0.13)
17
17
  arel (~> 4.0.0)
18
- activerecord-deprecated_finders (1.0.3)
19
- activesupport (4.0.8)
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.6.11)
28
+ i18n (0.7.0)
29
29
  minitest (4.7.5)
30
- multi_json (1.10.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.9)
40
- thread_safe (0.3.4)
41
- tzinfo (0.3.40)
39
+ sqlite3 (1.3.10)
40
+ thread_safe (0.3.5)
41
+ tzinfo (0.3.44)
42
42
 
43
43
  PLATFORMS
44
44
  ruby
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.3.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.4)
11
- activesupport (= 4.1.4)
10
+ activemodel (4.1.10)
11
+ activesupport (= 4.1.10)
12
12
  builder (~> 3.1)
13
- activerecord (4.1.4)
14
- activemodel (= 4.1.4)
15
- activesupport (= 4.1.4)
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.4)
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.6.11)
27
- json (1.8.1)
28
- minitest (5.4.0)
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.9)
38
- thread_safe (0.3.4)
39
- tzinfo (1.2.1)
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
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~>4.2.1.rc4'
3
+ gem 'activerecord', '~>4.2.1'
4
4
  gem 'rspec', '<2.99'
5
5
  gem 'sqlite3'
6
6
 
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.3.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.rc4)
11
- activesupport (= 4.2.1.rc4)
10
+ activemodel (4.2.1)
11
+ activesupport (= 4.2.1)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.1.rc4)
14
- activemodel (= 4.2.1.rc4)
15
- activesupport (= 4.2.1.rc4)
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.rc4)
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.2)
28
- minitest (5.5.1)
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.rc4)
47
+ activerecord (~> 4.2.1)
48
48
  rspec (< 2.99)
49
49
  sqlite3
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~>4.2.0'
3
+ gem 'activerecord', '~>4.2.1'
4
4
  gem 'rspec', '<2.99'
5
5
  gem 'pg'
6
6
 
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.3.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.0)
11
- activesupport (= 4.2.0)
10
+ activemodel (4.2.1)
11
+ activesupport (= 4.2.1)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.0)
14
- activemodel (= 4.2.0)
15
- activesupport (= 4.2.0)
13
+ activerecord (4.2.1)
14
+ activemodel (= 4.2.1)
15
+ activesupport (= 4.2.1)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.0)
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.2)
28
- minitest (5.5.1)
29
- pg (0.18.1)
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.4)
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.0)
47
+ activerecord (~> 4.2.1)
48
48
  pg
49
49
  rspec (< 2.99)
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
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
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-03-14 00:00:00.000000000 Z
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.lock
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
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'activerecord', '~>4.2.0'
4
- gem 'rspec', '<2.99'
5
- gem 'sqlite3'
6
-
7
- gem 'active_type', :path => '..'
@@ -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