assignable_values 1.1.0 → 2.0.0
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/.github/workflows/test.yml +43 -39
- data/.ruby-version +1 -1
- data/CHANGELOG.md +14 -0
- data/Gemfile +1 -1
- data/{Gemfile.5.0 → Gemfile.7.1.mysql2} +2 -2
- data/Gemfile.7.1.mysql2.lock +88 -0
- data/Gemfile.7.1.pg.lock +2 -2
- data/{Gemfile.5.1 → Gemfile.7.2.mysql2} +2 -2
- data/Gemfile.7.2.mysql2.lock +90 -0
- data/{Gemfile.6.1.pg → Gemfile.7.2.pg} +1 -1
- data/Gemfile.7.2.pg.lock +89 -0
- data/Gemfile.8.0.mysql2 +16 -0
- data/Gemfile.8.0.mysql2.lock +92 -0
- data/{Gemfile.5.1.pg → Gemfile.8.0.pg} +3 -3
- data/Gemfile.8.0.pg.lock +89 -0
- data/Gemfile.8.1.mysql2 +16 -0
- data/Gemfile.8.1.mysql2.lock +91 -0
- data/Gemfile.8.1.pg +16 -0
- data/Gemfile.8.1.pg.lock +91 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/assignable_values/active_record/restriction/base.rb +0 -11
- data/lib/assignable_values/active_record/restriction/scalar_attribute.rb +0 -19
- data/lib/assignable_values/version.rb +1 -1
- data/lib/assignable_values.rb +0 -1
- data/spec/assignable_values/active_record_spec.rb +0 -36
- data/spec/support/database.rb +5 -1
- metadata +17 -15
- data/Gemfile.5.0.lock +0 -68
- data/Gemfile.5.1.lock +0 -68
- data/Gemfile.5.1.pg.lock +0 -68
- data/Gemfile.6.1.pg.lock +0 -67
- data/lib/assignable_values/humanizable_string.rb +0 -15
data/Gemfile.5.1.pg.lock
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
assignable_values (1.1.0)
|
|
5
|
-
activerecord (>= 2.3)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
activemodel (5.1.4)
|
|
11
|
-
activesupport (= 5.1.4)
|
|
12
|
-
activerecord (5.1.4)
|
|
13
|
-
activemodel (= 5.1.4)
|
|
14
|
-
activesupport (= 5.1.4)
|
|
15
|
-
arel (~> 8.0)
|
|
16
|
-
activesupport (5.1.4)
|
|
17
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
|
-
i18n (~> 0.7)
|
|
19
|
-
minitest (~> 5.1)
|
|
20
|
-
tzinfo (~> 1.1)
|
|
21
|
-
arel (8.0.0)
|
|
22
|
-
concurrent-ruby (1.0.5)
|
|
23
|
-
database_cleaner (1.6.1)
|
|
24
|
-
diff-lcs (1.3)
|
|
25
|
-
gemika (0.7.1)
|
|
26
|
-
i18n (0.9.0)
|
|
27
|
-
concurrent-ruby (~> 1.0)
|
|
28
|
-
minitest (5.10.3)
|
|
29
|
-
pg (0.21.0)
|
|
30
|
-
rake (12.1.0)
|
|
31
|
-
rspec (3.7.0)
|
|
32
|
-
rspec-core (~> 3.7.0)
|
|
33
|
-
rspec-expectations (~> 3.7.0)
|
|
34
|
-
rspec-mocks (~> 3.7.0)
|
|
35
|
-
rspec-core (3.7.0)
|
|
36
|
-
rspec-support (~> 3.7.0)
|
|
37
|
-
rspec-expectations (3.7.0)
|
|
38
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
39
|
-
rspec-support (~> 3.7.0)
|
|
40
|
-
rspec-mocks (3.7.0)
|
|
41
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
42
|
-
rspec-support (~> 3.7.0)
|
|
43
|
-
rspec-support (3.7.0)
|
|
44
|
-
rspec_candy (0.4.1)
|
|
45
|
-
rspec
|
|
46
|
-
sneaky-save
|
|
47
|
-
sneaky-save (0.1.2)
|
|
48
|
-
activerecord (>= 3.2.0)
|
|
49
|
-
thread_safe (0.3.6)
|
|
50
|
-
tzinfo (1.2.3)
|
|
51
|
-
thread_safe (~> 0.1)
|
|
52
|
-
|
|
53
|
-
PLATFORMS
|
|
54
|
-
ruby
|
|
55
|
-
|
|
56
|
-
DEPENDENCIES
|
|
57
|
-
activerecord (~> 5.1.0)
|
|
58
|
-
assignable_values!
|
|
59
|
-
database_cleaner
|
|
60
|
-
gemika
|
|
61
|
-
i18n
|
|
62
|
-
pg (< 1)
|
|
63
|
-
rake
|
|
64
|
-
rspec
|
|
65
|
-
rspec_candy
|
|
66
|
-
|
|
67
|
-
BUNDLED WITH
|
|
68
|
-
2.1.4
|
data/Gemfile.6.1.pg.lock
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
assignable_values (1.1.0)
|
|
5
|
-
activerecord (>= 2.3)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
activemodel (6.1.3.2)
|
|
11
|
-
activesupport (= 6.1.3.2)
|
|
12
|
-
activerecord (6.1.3.2)
|
|
13
|
-
activemodel (= 6.1.3.2)
|
|
14
|
-
activesupport (= 6.1.3.2)
|
|
15
|
-
activesupport (6.1.3.2)
|
|
16
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
17
|
-
i18n (>= 1.6, < 2)
|
|
18
|
-
minitest (>= 5.1)
|
|
19
|
-
tzinfo (~> 2.0)
|
|
20
|
-
zeitwerk (~> 2.3)
|
|
21
|
-
concurrent-ruby (1.1.5)
|
|
22
|
-
database_cleaner (1.7.0)
|
|
23
|
-
diff-lcs (1.3)
|
|
24
|
-
gemika (0.8.0)
|
|
25
|
-
i18n (1.6.0)
|
|
26
|
-
concurrent-ruby (~> 1.0)
|
|
27
|
-
minitest (5.14.4)
|
|
28
|
-
pg (1.3.5)
|
|
29
|
-
rake (12.3.2)
|
|
30
|
-
rspec (3.8.0)
|
|
31
|
-
rspec-core (~> 3.8.0)
|
|
32
|
-
rspec-expectations (~> 3.8.0)
|
|
33
|
-
rspec-mocks (~> 3.8.0)
|
|
34
|
-
rspec-core (3.8.0)
|
|
35
|
-
rspec-support (~> 3.8.0)
|
|
36
|
-
rspec-expectations (3.8.2)
|
|
37
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
38
|
-
rspec-support (~> 3.8.0)
|
|
39
|
-
rspec-mocks (3.8.0)
|
|
40
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
41
|
-
rspec-support (~> 3.8.0)
|
|
42
|
-
rspec-support (3.8.0)
|
|
43
|
-
rspec_candy (0.5.1)
|
|
44
|
-
rspec
|
|
45
|
-
sneaky-save
|
|
46
|
-
sneaky-save (0.1.3)
|
|
47
|
-
activerecord (>= 3.2.0)
|
|
48
|
-
tzinfo (2.0.4)
|
|
49
|
-
concurrent-ruby (~> 1.0)
|
|
50
|
-
zeitwerk (2.4.2)
|
|
51
|
-
|
|
52
|
-
PLATFORMS
|
|
53
|
-
ruby
|
|
54
|
-
|
|
55
|
-
DEPENDENCIES
|
|
56
|
-
activerecord (~> 6.1.3)
|
|
57
|
-
assignable_values!
|
|
58
|
-
database_cleaner
|
|
59
|
-
gemika (~> 0.8.0)
|
|
60
|
-
i18n
|
|
61
|
-
pg (~> 1.3.5)
|
|
62
|
-
rake
|
|
63
|
-
rspec
|
|
64
|
-
rspec_candy
|
|
65
|
-
|
|
66
|
-
BUNDLED WITH
|
|
67
|
-
2.2.15
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# A String that responds to #humanized.
|
|
2
|
-
# Earlier versions of assignable_values dependent on such an API.
|
|
3
|
-
class HumanizableString < String
|
|
4
|
-
|
|
5
|
-
def initialize(string, humanization)
|
|
6
|
-
super(string)
|
|
7
|
-
@humanization = humanization
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
def humanized
|
|
11
|
-
ActiveSupport::Deprecation.warn("assignable_<value>.humanized is deprecated, use humanized_assignable_<value>s.humanized instead", caller)
|
|
12
|
-
@humanization
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
end
|