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 +4 -4
- data/.rubocop.yml +1 -0
- data/.tool-versions +1 -1
- data/calculated_attributes.gemspec +1 -1
- data/gemfiles/rails4_2.gemfile.lock +36 -36
- data/gemfiles/rails5_0.gemfile.lock +36 -35
- data/gemfiles/rails5_1.gemfile.lock +32 -31
- data/gemfiles/rails5_2.gemfile.lock +30 -30
- data/gemfiles/rails6_0.gemfile.lock +33 -33
- data/lib/calculated_attributes.rb +3 -2
- data/lib/calculated_attributes/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6961f9b8b68a8480f51186399da80941d548cb347b2656ede1838123e204b32b
|
4
|
+
data.tar.gz: 02a58ffaf9bd20f93b169a3a58a1b87726a8e6f7f0e9d02b1dd688f18e31d3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e55d64f5c56642083ec6615b7669d7451f7faee8c7e13ab959b90cd9f118676dc8156cc7f77d63fa114052195947f2b95d80b91162c47d476a3594c237888a
|
7
|
+
data.tar.gz: 0072bb2b8ca7cff6ddd8e3883e963f8029d71c6b16ac27bbd51c5673adc8efb5d5ec41603d2a3ed3fd1d7ff89ee5e0f44c5d9b01d13cbac753e15c6ba4b99e54
|
data/.rubocop.yml
CHANGED
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.5
|
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', '
|
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
|
+
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.
|
11
|
-
activesupport (= 4.2.
|
10
|
+
activemodel (4.2.11.1)
|
11
|
+
activesupport (= 4.2.11.1)
|
12
12
|
builder (~> 3.1)
|
13
|
-
activerecord (4.2.
|
14
|
-
activemodel (= 4.2.
|
15
|
-
activesupport (= 4.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.
|
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.
|
26
|
+
arel (6.0.4)
|
28
27
|
ast (2.4.0)
|
29
|
-
builder (3.2.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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 (
|
40
|
-
rspec (3.
|
41
|
-
rspec-core (~> 3.
|
42
|
-
rspec-expectations (~> 3.
|
43
|
-
rspec-mocks (~> 3.
|
44
|
-
rspec-core (3.
|
45
|
-
rspec-support (~> 3.3
|
46
|
-
rspec-expectations (3.
|
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.
|
49
|
-
rspec-mocks (3.
|
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.
|
52
|
-
rspec-support (3.3
|
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.
|
62
|
-
thor (0.
|
63
|
-
thread_safe (0.3.
|
64
|
-
tzinfo (1.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.
|
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 (
|
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.
|
82
|
+
1.17.3
|
@@ -1,52 +1,53 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
calculated_attributes (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.
|
11
|
-
activesupport (= 5.0.
|
12
|
-
activerecord (5.0.
|
13
|
-
activemodel (= 5.0.
|
14
|
-
activesupport (= 5.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.
|
16
|
+
activesupport (5.0.7.2)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (
|
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.
|
25
|
+
arel (7.1.4)
|
26
26
|
ast (2.4.0)
|
27
|
-
concurrent-ruby (1.
|
28
|
-
diff-lcs (1.
|
29
|
-
i18n (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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 (
|
37
|
-
rspec (3.
|
38
|
-
rspec-core (~> 3.
|
39
|
-
rspec-expectations (~> 3.
|
40
|
-
rspec-mocks (~> 3.
|
41
|
-
rspec-core (3.
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-expectations (3.
|
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.
|
46
|
-
rspec-mocks (3.
|
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.
|
49
|
-
rspec-support (3.
|
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.
|
59
|
-
thor (0.
|
60
|
-
thread_safe (0.3.
|
61
|
-
tzinfo (1.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.
|
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 (
|
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.
|
80
|
+
1.17.3
|
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
calculated_attributes (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.
|
11
|
-
activesupport (= 5.1.
|
12
|
-
activerecord (5.1.
|
13
|
-
activemodel (= 5.1.
|
14
|
-
activesupport (= 5.1.
|
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.
|
16
|
+
activesupport (5.1.7)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
|
-
i18n (
|
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.
|
27
|
+
concurrent-ruby (1.1.6)
|
28
28
|
diff-lcs (1.3)
|
29
|
-
i18n (
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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 (
|
37
|
-
rspec (3.
|
38
|
-
rspec-core (~> 3.
|
39
|
-
rspec-expectations (~> 3.
|
40
|
-
rspec-mocks (~> 3.
|
41
|
-
rspec-core (3.
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-expectations (3.
|
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.
|
46
|
-
rspec-mocks (3.
|
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.
|
49
|
-
rspec-support (3.
|
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.
|
60
|
+
thor (1.0.1)
|
60
61
|
thread_safe (0.3.6)
|
61
|
-
tzinfo (1.2.
|
62
|
+
tzinfo (1.2.7)
|
62
63
|
thread_safe (~> 0.1)
|
63
|
-
unicode-display_width (1.6.
|
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 (
|
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.
|
80
|
+
1.17.3
|
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
calculated_attributes (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.
|
11
|
-
activesupport (= 5.2.
|
12
|
-
activerecord (5.2.
|
13
|
-
activemodel (= 5.2.
|
14
|
-
activesupport (= 5.2.
|
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.
|
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.
|
27
|
+
concurrent-ruby (1.1.6)
|
28
28
|
diff-lcs (1.3)
|
29
|
-
i18n (1.
|
29
|
+
i18n (1.8.2)
|
30
30
|
concurrent-ruby (~> 1.0)
|
31
|
-
jaro_winkler (1.5.
|
32
|
-
minitest (5.
|
33
|
-
parallel (1.
|
34
|
-
parser (2.
|
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 (
|
38
|
-
rspec (3.
|
39
|
-
rspec-core (~> 3.
|
40
|
-
rspec-expectations (~> 3.
|
41
|
-
rspec-mocks (~> 3.
|
42
|
-
rspec-core (3.
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-expectations (3.
|
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.
|
47
|
-
rspec-mocks (3.
|
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.
|
50
|
-
rspec-support (3.
|
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.
|
60
|
+
thor (1.0.1)
|
61
61
|
thread_safe (0.3.6)
|
62
|
-
tzinfo (1.2.
|
62
|
+
tzinfo (1.2.7)
|
63
63
|
thread_safe (~> 0.1)
|
64
|
-
unicode-display_width (1.6.
|
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 (
|
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.
|
80
|
+
1.17.3
|
@@ -1,52 +1,52 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
calculated_attributes (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.
|
11
|
-
activesupport (= 6.0.
|
12
|
-
activerecord (6.0.
|
13
|
-
activemodel (= 6.0.
|
14
|
-
activesupport (= 6.0.
|
15
|
-
activesupport (6.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.
|
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.
|
26
|
+
concurrent-ruby (1.1.6)
|
27
27
|
diff-lcs (1.3)
|
28
|
-
i18n (1.
|
28
|
+
i18n (1.8.2)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
jaro_winkler (1.5.
|
31
|
-
minitest (5.
|
32
|
-
parallel (1.
|
33
|
-
parser (2.
|
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 (
|
37
|
-
rspec (3.
|
38
|
-
rspec-core (~> 3.
|
39
|
-
rspec-expectations (~> 3.
|
40
|
-
rspec-mocks (~> 3.
|
41
|
-
rspec-core (3.
|
42
|
-
rspec-support (~> 3.
|
43
|
-
rspec-expectations (3.
|
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.
|
46
|
-
rspec-mocks (3.
|
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.
|
49
|
-
rspec-support (3.
|
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.
|
59
|
-
thor (0.
|
58
|
+
sqlite3 (1.4.2)
|
59
|
+
thor (1.0.1)
|
60
60
|
thread_safe (0.3.6)
|
61
|
-
tzinfo (1.2.
|
61
|
+
tzinfo (1.2.7)
|
62
62
|
thread_safe (~> 0.1)
|
63
|
-
unicode-display_width (1.6.
|
64
|
-
zeitwerk (2.
|
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 (
|
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.
|
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
|
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
|
-
|
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"
|
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
|
+
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:
|
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:
|
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:
|
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
|
-
|
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.
|