assignable_values 1.1.1 → 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 +40 -39
- data/.ruby-version +1 -1
- data/CHANGELOG.md +8 -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.8.0.pg.lock +2 -2
- data/Gemfile.8.1.mysql2 +16 -0
- data/Gemfile.8.1.mysql2.lock +91 -0
- data/{Gemfile.5.1.pg → Gemfile.8.1.pg} +3 -3
- 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 -52
- data/spec/support/database.rb +5 -1
- metadata +15 -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.6.1.pg.lock
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
assignable_values (1.1.1)
|
|
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.new.warn("assignable_<value>.humanized is deprecated, use humanized_assignable_<value>s.humanized instead", caller)
|
|
12
|
-
@humanization
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
end
|