calculated_attributes 0.4.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: 75294a4fd8a1504df08bc397beaab706bb9095c6bd81ad96afac8e1dc0c69a12
4
- data.tar.gz: 781fdbe8798f790f43e41872f92afe74601178f6b8c9648a9d8d7a0c27a1cccf
3
+ metadata.gz: 6961f9b8b68a8480f51186399da80941d548cb347b2656ede1838123e204b32b
4
+ data.tar.gz: 02a58ffaf9bd20f93b169a3a58a1b87726a8e6f7f0e9d02b1dd688f18e31d3fb
5
5
  SHA512:
6
- metadata.gz: 36ffdd30ac91c3c4b715a4d634d8b08a62dd1a2b629f642efa8acc5bc6d444f76e9a71b59f3cdd2af754db4631d76af6c6024e3a4ec3550411f60718b7819ec8
7
- data.tar.gz: 9b40258eba9fa9002963fc1defe93b3ede2b255d351becbb50421f10a652a890597bbf4d110f4d25f3d34fe91c2b5f17aacb52f37c474600ae0c6d149943f95e
6
+ metadata.gz: f8e55d64f5c56642083ec6615b7669d7451f7faee8c7e13ab959b90cd9f118676dc8156cc7f77d63fa114052195947f2b95d80b91162c47d476a3594c237888a
7
+ data.tar.gz: 0072bb2b8ca7cff6ddd8e3883e963f8029d71c6b16ac27bbd51c5673adc8efb5d5ec41603d2a3ed3fd1d7ff89ee5e0f44c5d9b01d13cbac753e15c6ba4b99e54
@@ -3,6 +3,7 @@ AllCops:
3
3
  DisplayCopNames: true
4
4
  Exclude:
5
5
  - lib/calculated_attributes/rails_*_patches.rb
6
+ - vendor/**/*
6
7
 
7
8
  Metrics/AbcSize:
8
9
  Enabled: false
@@ -1 +1 @@
1
- ruby 2.5.3
1
+ ruby 2.6.5
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.add_development_dependency 'appraisal', '~> 2.2.0'
20
20
  spec.add_development_dependency 'bundler', '~> 1.15'
21
- spec.add_development_dependency 'rake', '~> 10.0'
21
+ spec.add_development_dependency 'rake', '>= 12.3.3'
22
22
  spec.add_development_dependency 'rspec', '~> 3.1'
23
23
  spec.add_development_dependency 'rubocop', '~> 0.74.0'
24
24
  spec.add_development_dependency 'sqlite3', '~> 1.3.10'
@@ -1,22 +1,21 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- calculated_attributes (0.4.0)
4
+ calculated_attributes (0.5.0)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (4.2.2)
11
- activesupport (= 4.2.2)
10
+ activemodel (4.2.11.1)
11
+ activesupport (= 4.2.11.1)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.2)
14
- activemodel (= 4.2.2)
15
- activesupport (= 4.2.2)
13
+ activerecord (4.2.11.1)
14
+ activemodel (= 4.2.11.1)
15
+ activesupport (= 4.2.11.1)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.2)
17
+ activesupport (4.2.11.1)
18
18
  i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
19
  minitest (~> 5.1)
21
20
  thread_safe (~> 0.3, >= 0.3.4)
22
21
  tzinfo (~> 1.1)
@@ -24,32 +23,33 @@ GEM
24
23
  bundler
25
24
  rake
26
25
  thor (>= 0.14.0)
27
- arel (6.0.0)
26
+ arel (6.0.4)
28
27
  ast (2.4.0)
29
- builder (3.2.2)
30
- diff-lcs (1.2.5)
31
- i18n (0.7.0)
32
- jaro_winkler (1.5.3)
33
- json (1.8.5)
34
- minitest (5.7.0)
35
- parallel (1.17.0)
36
- parser (2.6.4.0)
28
+ builder (3.2.4)
29
+ concurrent-ruby (1.1.6)
30
+ diff-lcs (1.3)
31
+ i18n (0.9.5)
32
+ concurrent-ruby (~> 1.0)
33
+ jaro_winkler (1.5.4)
34
+ minitest (5.14.0)
35
+ parallel (1.19.1)
36
+ parser (2.7.1.2)
37
37
  ast (~> 2.4.0)
38
38
  rainbow (3.0.0)
39
- rake (10.4.2)
40
- rspec (3.3.0)
41
- rspec-core (~> 3.3.0)
42
- rspec-expectations (~> 3.3.0)
43
- rspec-mocks (~> 3.3.0)
44
- rspec-core (3.3.1)
45
- rspec-support (~> 3.3.0)
46
- rspec-expectations (3.3.0)
39
+ rake (13.0.1)
40
+ rspec (3.9.0)
41
+ rspec-core (~> 3.9.0)
42
+ rspec-expectations (~> 3.9.0)
43
+ rspec-mocks (~> 3.9.0)
44
+ rspec-core (3.9.2)
45
+ rspec-support (~> 3.9.3)
46
+ rspec-expectations (3.9.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.3.0)
49
- rspec-mocks (3.3.0)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-mocks (3.9.1)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.3.0)
52
- rspec-support (3.3.0)
51
+ rspec-support (~> 3.9.0)
52
+ rspec-support (3.9.3)
53
53
  rubocop (0.74.0)
54
54
  jaro_winkler (~> 1.5.1)
55
55
  parallel (~> 1.10)
@@ -58,12 +58,12 @@ GEM
58
58
  ruby-progressbar (~> 1.7)
59
59
  unicode-display_width (>= 1.4.0, < 1.7)
60
60
  ruby-progressbar (1.10.1)
61
- sqlite3 (1.3.10)
62
- thor (0.19.4)
63
- thread_safe (0.3.5)
64
- tzinfo (1.2.2)
61
+ sqlite3 (1.3.13)
62
+ thor (1.0.1)
63
+ thread_safe (0.3.6)
64
+ tzinfo (1.2.7)
65
65
  thread_safe (~> 0.1)
66
- unicode-display_width (1.6.0)
66
+ unicode-display_width (1.6.1)
67
67
 
68
68
  PLATFORMS
69
69
  ruby
@@ -73,10 +73,10 @@ DEPENDENCIES
73
73
  appraisal (~> 2.2.0)
74
74
  bundler (~> 1.15)
75
75
  calculated_attributes!
76
- rake (~> 10.0)
76
+ rake (>= 12.3.3)
77
77
  rspec (~> 3.1)
78
78
  rubocop (~> 0.74.0)
79
79
  sqlite3 (~> 1.3.10)
80
80
 
81
81
  BUNDLED WITH
82
- 1.17.0
82
+ 1.17.3
@@ -1,52 +1,53 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- calculated_attributes (0.4.0)
4
+ calculated_attributes (0.5.0)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
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)
10
+ activemodel (5.0.7.2)
11
+ activesupport (= 5.0.7.2)
12
+ activerecord (5.0.7.2)
13
+ activemodel (= 5.0.7.2)
14
+ activesupport (= 5.0.7.2)
15
15
  arel (~> 7.0)
16
- activesupport (5.0.0)
16
+ activesupport (5.0.7.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (~> 0.7)
18
+ i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
21
  appraisal (2.2.0)
22
22
  bundler
23
23
  rake
24
24
  thor (>= 0.14.0)
25
- arel (7.1.1)
25
+ arel (7.1.4)
26
26
  ast (2.4.0)
27
- concurrent-ruby (1.0.2)
28
- diff-lcs (1.2.5)
29
- i18n (0.7.0)
30
- jaro_winkler (1.5.3)
31
- minitest (5.9.0)
32
- parallel (1.17.0)
33
- parser (2.6.4.0)
27
+ concurrent-ruby (1.1.6)
28
+ diff-lcs (1.3)
29
+ i18n (1.8.2)
30
+ concurrent-ruby (~> 1.0)
31
+ jaro_winkler (1.5.4)
32
+ minitest (5.14.0)
33
+ parallel (1.19.1)
34
+ parser (2.7.1.2)
34
35
  ast (~> 2.4.0)
35
36
  rainbow (3.0.0)
36
- rake (10.5.0)
37
- rspec (3.5.0)
38
- rspec-core (~> 3.5.0)
39
- rspec-expectations (~> 3.5.0)
40
- rspec-mocks (~> 3.5.0)
41
- rspec-core (3.5.3)
42
- rspec-support (~> 3.5.0)
43
- rspec-expectations (3.5.0)
37
+ rake (13.0.1)
38
+ rspec (3.9.0)
39
+ rspec-core (~> 3.9.0)
40
+ rspec-expectations (~> 3.9.0)
41
+ rspec-mocks (~> 3.9.0)
42
+ rspec-core (3.9.2)
43
+ rspec-support (~> 3.9.3)
44
+ rspec-expectations (3.9.1)
44
45
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.5.0)
46
- rspec-mocks (3.5.0)
46
+ rspec-support (~> 3.9.0)
47
+ rspec-mocks (3.9.1)
47
48
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.5.0)
49
- rspec-support (3.5.0)
49
+ rspec-support (~> 3.9.0)
50
+ rspec-support (3.9.3)
50
51
  rubocop (0.74.0)
51
52
  jaro_winkler (~> 1.5.1)
52
53
  parallel (~> 1.10)
@@ -55,12 +56,12 @@ GEM
55
56
  ruby-progressbar (~> 1.7)
56
57
  unicode-display_width (>= 1.4.0, < 1.7)
57
58
  ruby-progressbar (1.10.1)
58
- sqlite3 (1.3.11)
59
- thor (0.19.4)
60
- thread_safe (0.3.5)
61
- tzinfo (1.2.2)
59
+ sqlite3 (1.3.13)
60
+ thor (1.0.1)
61
+ thread_safe (0.3.6)
62
+ tzinfo (1.2.7)
62
63
  thread_safe (~> 0.1)
63
- unicode-display_width (1.6.0)
64
+ unicode-display_width (1.6.1)
64
65
 
65
66
  PLATFORMS
66
67
  ruby
@@ -70,10 +71,10 @@ DEPENDENCIES
70
71
  appraisal (~> 2.2.0)
71
72
  bundler (~> 1.15)
72
73
  calculated_attributes!
73
- rake (~> 10.0)
74
+ rake (>= 12.3.3)
74
75
  rspec (~> 3.1)
75
76
  rubocop (~> 0.74.0)
76
77
  sqlite3 (~> 1.3.10)
77
78
 
78
79
  BUNDLED WITH
79
- 1.17.0
80
+ 1.17.3
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- calculated_attributes (0.4.0)
4
+ calculated_attributes (0.5.0)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (5.1.2)
11
- activesupport (= 5.1.2)
12
- activerecord (5.1.2)
13
- activemodel (= 5.1.2)
14
- activesupport (= 5.1.2)
10
+ activemodel (5.1.7)
11
+ activesupport (= 5.1.7)
12
+ activerecord (5.1.7)
13
+ activemodel (= 5.1.7)
14
+ activesupport (= 5.1.7)
15
15
  arel (~> 8.0)
16
- activesupport (5.1.2)
16
+ activesupport (5.1.7)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (~> 0.7)
18
+ i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
21
  appraisal (2.2.0)
@@ -24,29 +24,30 @@ GEM
24
24
  thor (>= 0.14.0)
25
25
  arel (8.0.0)
26
26
  ast (2.4.0)
27
- concurrent-ruby (1.0.5)
27
+ concurrent-ruby (1.1.6)
28
28
  diff-lcs (1.3)
29
- i18n (0.8.6)
30
- jaro_winkler (1.5.3)
31
- minitest (5.10.2)
32
- parallel (1.17.0)
33
- parser (2.6.4.0)
29
+ i18n (1.8.2)
30
+ concurrent-ruby (~> 1.0)
31
+ jaro_winkler (1.5.4)
32
+ minitest (5.14.0)
33
+ parallel (1.19.1)
34
+ parser (2.7.1.2)
34
35
  ast (~> 2.4.0)
35
36
  rainbow (3.0.0)
36
- rake (10.5.0)
37
- rspec (3.6.0)
38
- rspec-core (~> 3.6.0)
39
- rspec-expectations (~> 3.6.0)
40
- rspec-mocks (~> 3.6.0)
41
- rspec-core (3.6.0)
42
- rspec-support (~> 3.6.0)
43
- rspec-expectations (3.6.0)
37
+ rake (13.0.1)
38
+ rspec (3.9.0)
39
+ rspec-core (~> 3.9.0)
40
+ rspec-expectations (~> 3.9.0)
41
+ rspec-mocks (~> 3.9.0)
42
+ rspec-core (3.9.2)
43
+ rspec-support (~> 3.9.3)
44
+ rspec-expectations (3.9.1)
44
45
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.6.0)
46
- rspec-mocks (3.6.0)
46
+ rspec-support (~> 3.9.0)
47
+ rspec-mocks (3.9.1)
47
48
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.6.0)
49
- rspec-support (3.6.0)
49
+ rspec-support (~> 3.9.0)
50
+ rspec-support (3.9.3)
50
51
  rubocop (0.74.0)
51
52
  jaro_winkler (~> 1.5.1)
52
53
  parallel (~> 1.10)
@@ -56,11 +57,11 @@ GEM
56
57
  unicode-display_width (>= 1.4.0, < 1.7)
57
58
  ruby-progressbar (1.10.1)
58
59
  sqlite3 (1.3.13)
59
- thor (0.19.4)
60
+ thor (1.0.1)
60
61
  thread_safe (0.3.6)
61
- tzinfo (1.2.3)
62
+ tzinfo (1.2.7)
62
63
  thread_safe (~> 0.1)
63
- unicode-display_width (1.6.0)
64
+ unicode-display_width (1.6.1)
64
65
 
65
66
  PLATFORMS
66
67
  ruby
@@ -70,10 +71,10 @@ DEPENDENCIES
70
71
  appraisal (~> 2.2.0)
71
72
  bundler (~> 1.15)
72
73
  calculated_attributes!
73
- rake (~> 10.0)
74
+ rake (>= 12.3.3)
74
75
  rspec (~> 3.1)
75
76
  rubocop (~> 0.74.0)
76
77
  sqlite3 (~> 1.3.10)
77
78
 
78
79
  BUNDLED WITH
79
- 1.17.0
80
+ 1.17.3
@@ -1,19 +1,19 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- calculated_attributes (0.4.0)
4
+ calculated_attributes (0.5.0)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (5.2.3)
11
- activesupport (= 5.2.3)
12
- activerecord (5.2.3)
13
- activemodel (= 5.2.3)
14
- activesupport (= 5.2.3)
10
+ activemodel (5.2.4.2)
11
+ activesupport (= 5.2.4.2)
12
+ activerecord (5.2.4.2)
13
+ activemodel (= 5.2.4.2)
14
+ activesupport (= 5.2.4.2)
15
15
  arel (>= 9.0)
16
- activesupport (5.2.3)
16
+ activesupport (5.2.4.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
@@ -24,30 +24,30 @@ GEM
24
24
  thor (>= 0.14.0)
25
25
  arel (9.0.0)
26
26
  ast (2.4.0)
27
- concurrent-ruby (1.1.5)
27
+ concurrent-ruby (1.1.6)
28
28
  diff-lcs (1.3)
29
- i18n (1.6.0)
29
+ i18n (1.8.2)
30
30
  concurrent-ruby (~> 1.0)
31
- jaro_winkler (1.5.3)
32
- minitest (5.11.3)
33
- parallel (1.17.0)
34
- parser (2.6.4.0)
31
+ jaro_winkler (1.5.4)
32
+ minitest (5.14.0)
33
+ parallel (1.19.1)
34
+ parser (2.7.1.2)
35
35
  ast (~> 2.4.0)
36
36
  rainbow (3.0.0)
37
- rake (10.5.0)
38
- rspec (3.8.0)
39
- rspec-core (~> 3.8.0)
40
- rspec-expectations (~> 3.8.0)
41
- rspec-mocks (~> 3.8.0)
42
- rspec-core (3.8.2)
43
- rspec-support (~> 3.8.0)
44
- rspec-expectations (3.8.4)
37
+ rake (13.0.1)
38
+ rspec (3.9.0)
39
+ rspec-core (~> 3.9.0)
40
+ rspec-expectations (~> 3.9.0)
41
+ rspec-mocks (~> 3.9.0)
42
+ rspec-core (3.9.2)
43
+ rspec-support (~> 3.9.3)
44
+ rspec-expectations (3.9.1)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.8.0)
47
- rspec-mocks (3.8.1)
46
+ rspec-support (~> 3.9.0)
47
+ rspec-mocks (3.9.1)
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-support (3.8.2)
49
+ rspec-support (~> 3.9.0)
50
+ rspec-support (3.9.3)
51
51
  rubocop (0.74.0)
52
52
  jaro_winkler (~> 1.5.1)
53
53
  parallel (~> 1.10)
@@ -57,11 +57,11 @@ GEM
57
57
  unicode-display_width (>= 1.4.0, < 1.7)
58
58
  ruby-progressbar (1.10.1)
59
59
  sqlite3 (1.3.13)
60
- thor (0.20.3)
60
+ thor (1.0.1)
61
61
  thread_safe (0.3.6)
62
- tzinfo (1.2.5)
62
+ tzinfo (1.2.7)
63
63
  thread_safe (~> 0.1)
64
- unicode-display_width (1.6.0)
64
+ unicode-display_width (1.6.1)
65
65
 
66
66
  PLATFORMS
67
67
  ruby
@@ -71,10 +71,10 @@ DEPENDENCIES
71
71
  appraisal (~> 2.2.0)
72
72
  bundler (~> 1.15)
73
73
  calculated_attributes!
74
- rake (~> 10.0)
74
+ rake (>= 12.3.3)
75
75
  rspec (~> 3.1)
76
76
  rubocop (~> 0.74.0)
77
77
  sqlite3 (~> 1.3.10)
78
78
 
79
79
  BUNDLED WITH
80
- 1.17.0
80
+ 1.17.3
@@ -1,52 +1,52 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- calculated_attributes (0.4.0)
4
+ calculated_attributes (0.5.0)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (6.0.0)
11
- activesupport (= 6.0.0)
12
- activerecord (6.0.0)
13
- activemodel (= 6.0.0)
14
- activesupport (= 6.0.0)
15
- activesupport (6.0.0)
10
+ activemodel (6.0.2.2)
11
+ activesupport (= 6.0.2.2)
12
+ activerecord (6.0.2.2)
13
+ activemodel (= 6.0.2.2)
14
+ activesupport (= 6.0.2.2)
15
+ activesupport (6.0.2.2)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
19
19
  tzinfo (~> 1.1)
20
- zeitwerk (~> 2.1, >= 2.1.8)
20
+ zeitwerk (~> 2.2)
21
21
  appraisal (2.2.0)
22
22
  bundler
23
23
  rake
24
24
  thor (>= 0.14.0)
25
25
  ast (2.4.0)
26
- concurrent-ruby (1.1.5)
26
+ concurrent-ruby (1.1.6)
27
27
  diff-lcs (1.3)
28
- i18n (1.6.0)
28
+ i18n (1.8.2)
29
29
  concurrent-ruby (~> 1.0)
30
- jaro_winkler (1.5.3)
31
- minitest (5.11.3)
32
- parallel (1.17.0)
33
- parser (2.6.4.0)
30
+ jaro_winkler (1.5.4)
31
+ minitest (5.14.0)
32
+ parallel (1.19.1)
33
+ parser (2.7.1.2)
34
34
  ast (~> 2.4.0)
35
35
  rainbow (3.0.0)
36
- rake (10.5.0)
37
- rspec (3.8.0)
38
- rspec-core (~> 3.8.0)
39
- rspec-expectations (~> 3.8.0)
40
- rspec-mocks (~> 3.8.0)
41
- rspec-core (3.8.2)
42
- rspec-support (~> 3.8.0)
43
- rspec-expectations (3.8.4)
36
+ rake (13.0.1)
37
+ rspec (3.9.0)
38
+ rspec-core (~> 3.9.0)
39
+ rspec-expectations (~> 3.9.0)
40
+ rspec-mocks (~> 3.9.0)
41
+ rspec-core (3.9.2)
42
+ rspec-support (~> 3.9.3)
43
+ rspec-expectations (3.9.1)
44
44
  diff-lcs (>= 1.2.0, < 2.0)
45
- rspec-support (~> 3.8.0)
46
- rspec-mocks (3.8.1)
45
+ rspec-support (~> 3.9.0)
46
+ rspec-mocks (3.9.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.8.0)
49
- rspec-support (3.8.2)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-support (3.9.3)
50
50
  rubocop (0.74.0)
51
51
  jaro_winkler (~> 1.5.1)
52
52
  parallel (~> 1.10)
@@ -55,13 +55,13 @@ GEM
55
55
  ruby-progressbar (~> 1.7)
56
56
  unicode-display_width (>= 1.4.0, < 1.7)
57
57
  ruby-progressbar (1.10.1)
58
- sqlite3 (1.4.1)
59
- thor (0.20.3)
58
+ sqlite3 (1.4.2)
59
+ thor (1.0.1)
60
60
  thread_safe (0.3.6)
61
- tzinfo (1.2.5)
61
+ tzinfo (1.2.7)
62
62
  thread_safe (~> 0.1)
63
- unicode-display_width (1.6.0)
64
- zeitwerk (2.1.10)
63
+ unicode-display_width (1.6.1)
64
+ zeitwerk (2.3.0)
65
65
 
66
66
  PLATFORMS
67
67
  ruby
@@ -71,10 +71,10 @@ DEPENDENCIES
71
71
  appraisal (~> 2.2.0)
72
72
  bundler (~> 1.15)
73
73
  calculated_attributes!
74
- rake (~> 10.0)
74
+ rake (>= 12.3.3)
75
75
  rspec (~> 3.1)
76
76
  rubocop (~> 0.74.0)
77
77
  sqlite3 (~> 1.4)
78
78
 
79
79
  BUNDLED WITH
80
- 1.17.0
80
+ 1.17.3
@@ -6,9 +6,10 @@ require 'calculated_attributes/rails_patches'
6
6
  require 'calculated_attributes/arel_patches'
7
7
  raise "Unsupported ActiveRecord version: #{ActiveRecord::VERSION::MAJOR}" unless [3, 4, 5, 6].include? ActiveRecord::VERSION::MAJOR
8
8
 
9
- # Rails 5.2 has its own patches which are different from 5.0/5.1. In every other
9
+ # Rails 5.2 has its own patches which are different from 5.0. In every other
10
10
  # case, just require the patch file for the major version.
11
- if Gem::Version.new(ActiveRecord::VERSION::STRING).canonical_segments.take(2) == [5, 2]
11
+ versions = Gem::Version.new(ActiveRecord::VERSION::STRING).canonical_segments.take(2)
12
+ if [[5, 2], [5, 1]].include?(versions)
12
13
  require 'calculated_attributes/rails_5_2_patches'
13
14
  else
14
15
  require "calculated_attributes/rails_#{ActiveRecord::VERSION::MAJOR}_patches"
@@ -1,3 +1,3 @@
1
1
  module CalculatedAttributes
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calculated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Schneider
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: 12.3.3
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: 12.3.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -171,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubyforge_project:
175
- rubygems_version: 2.7.6
174
+ rubygems_version: 3.0.3
176
175
  signing_key:
177
176
  specification_version: 4
178
177
  summary: Automatically add calculated attributes to ActiveRecord models.