enum_machine 2.1.0 → 2.2.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/Gemfile +1 -1
- data/Gemfile.lock +88 -67
- data/README.md +2 -0
- data/lib/enum_machine/build_enum_class.rb +1 -1
- data/lib/enum_machine/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22866d6d5f37dd78718e7e5eb27dd0066450d8730b821ffb13977888009b6ddd
|
|
4
|
+
data.tar.gz: fc4c40aa5ea99a6d14143ebec78d2a40b2c8bce58d21ff5507b4d3d2ee67bcf1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 247ea0d77022905062d7688dd1153037517fa71521c15f51477f66e4f8d368cf008262c0095a1465b068b24da3262ed01334f787504dce9a65265839bffa2726
|
|
7
|
+
data.tar.gz: 969db73142c57fcf94f82fa6c1eca59c79310a6c6e0399961fbee835c5da8596802039d699657f306f07ac0f0e64ba5692cb4d3dee0f3d02359313cd61b07bc5
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -8,7 +8,7 @@ GIT
|
|
|
8
8
|
|
|
9
9
|
GIT
|
|
10
10
|
remote: https://github.com/corp-gp/rubocop-gp.git
|
|
11
|
-
revision:
|
|
11
|
+
revision: e3d33016bb3b9945ce9d8d22e77825a223de1a5c
|
|
12
12
|
specs:
|
|
13
13
|
rubocop-gp (0.0.4)
|
|
14
14
|
rubocop
|
|
@@ -22,7 +22,7 @@ GIT
|
|
|
22
22
|
PATH
|
|
23
23
|
remote: .
|
|
24
24
|
specs:
|
|
25
|
-
enum_machine (2.0
|
|
25
|
+
enum_machine (2.2.0)
|
|
26
26
|
activemodel
|
|
27
27
|
activerecord
|
|
28
28
|
activesupport
|
|
@@ -30,125 +30,146 @@ PATH
|
|
|
30
30
|
GEM
|
|
31
31
|
remote: https://rubygems.org/
|
|
32
32
|
specs:
|
|
33
|
-
activemodel (
|
|
34
|
-
activesupport (=
|
|
35
|
-
activerecord (
|
|
36
|
-
activemodel (=
|
|
37
|
-
activesupport (=
|
|
33
|
+
activemodel (8.1.2)
|
|
34
|
+
activesupport (= 8.1.2)
|
|
35
|
+
activerecord (8.1.2)
|
|
36
|
+
activemodel (= 8.1.2)
|
|
37
|
+
activesupport (= 8.1.2)
|
|
38
38
|
timeout (>= 0.4.0)
|
|
39
|
-
activesupport (
|
|
39
|
+
activesupport (8.1.2)
|
|
40
40
|
base64
|
|
41
41
|
bigdecimal
|
|
42
42
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
43
43
|
connection_pool (>= 2.2.5)
|
|
44
44
|
drb
|
|
45
45
|
i18n (>= 1.6, < 2)
|
|
46
|
+
json
|
|
46
47
|
logger (>= 1.4.2)
|
|
47
48
|
minitest (>= 5.1)
|
|
48
49
|
securerandom (>= 0.3)
|
|
49
50
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
uri (>= 0.13.1)
|
|
52
|
+
ast (2.4.3)
|
|
53
|
+
base64 (0.3.0)
|
|
54
|
+
bigdecimal (4.0.1)
|
|
53
55
|
coderay (1.1.3)
|
|
54
56
|
colorize (0.8.1)
|
|
55
|
-
concurrent-ruby (1.3.
|
|
56
|
-
connection_pool (
|
|
57
|
-
diff-lcs (1.
|
|
58
|
-
drb (2.2.
|
|
59
|
-
dry-core (1.0
|
|
57
|
+
concurrent-ruby (1.3.6)
|
|
58
|
+
connection_pool (3.0.2)
|
|
59
|
+
diff-lcs (1.6.2)
|
|
60
|
+
drb (2.2.3)
|
|
61
|
+
dry-core (1.2.0)
|
|
60
62
|
concurrent-ruby (~> 1.0)
|
|
63
|
+
logger
|
|
61
64
|
zeitwerk (~> 2.6)
|
|
62
|
-
dry-inflector (1.
|
|
63
|
-
dry-logic (1.
|
|
65
|
+
dry-inflector (1.3.0)
|
|
66
|
+
dry-logic (1.6.0)
|
|
67
|
+
bigdecimal
|
|
64
68
|
concurrent-ruby (~> 1.0)
|
|
65
|
-
dry-core (~> 1.
|
|
69
|
+
dry-core (~> 1.1)
|
|
66
70
|
zeitwerk (~> 2.6)
|
|
67
|
-
dry-types (1.
|
|
68
|
-
bigdecimal (
|
|
71
|
+
dry-types (1.9.0)
|
|
72
|
+
bigdecimal (>= 3.0)
|
|
69
73
|
concurrent-ruby (~> 1.0)
|
|
70
74
|
dry-core (~> 1.0)
|
|
71
75
|
dry-inflector (~> 1.0)
|
|
72
76
|
dry-logic (~> 1.4)
|
|
73
77
|
zeitwerk (~> 2.6)
|
|
74
|
-
i18n (1.14.
|
|
78
|
+
i18n (1.14.8)
|
|
75
79
|
concurrent-ruby (~> 1.0)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
io-console (0.8.2)
|
|
81
|
+
json (2.18.0)
|
|
82
|
+
language_server-protocol (3.17.0.5)
|
|
83
|
+
lint_roller (1.1.0)
|
|
84
|
+
logger (1.7.0)
|
|
79
85
|
method_source (1.1.0)
|
|
80
|
-
minitest (
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
minitest (6.0.1)
|
|
87
|
+
prism (~> 1.5)
|
|
88
|
+
parallel (1.27.0)
|
|
89
|
+
parser (3.3.10.0)
|
|
83
90
|
ast (~> 2.4.1)
|
|
84
91
|
racc
|
|
85
|
-
|
|
92
|
+
prism (1.7.0)
|
|
93
|
+
pry (0.16.0)
|
|
86
94
|
coderay (~> 1.1)
|
|
87
95
|
method_source (~> 1.0)
|
|
96
|
+
reline (>= 0.6.0)
|
|
88
97
|
racc (1.8.1)
|
|
89
|
-
rack (3.
|
|
98
|
+
rack (3.2.4)
|
|
90
99
|
rainbow (3.1.1)
|
|
91
|
-
rake (13.
|
|
92
|
-
regexp_parser (2.
|
|
93
|
-
|
|
100
|
+
rake (13.3.1)
|
|
101
|
+
regexp_parser (2.11.3)
|
|
102
|
+
reline (0.6.3)
|
|
103
|
+
io-console (~> 0.5)
|
|
104
|
+
rspec (3.13.2)
|
|
94
105
|
rspec-core (~> 3.13.0)
|
|
95
106
|
rspec-expectations (~> 3.13.0)
|
|
96
107
|
rspec-mocks (~> 3.13.0)
|
|
97
|
-
rspec-core (3.13.
|
|
108
|
+
rspec-core (3.13.6)
|
|
98
109
|
rspec-support (~> 3.13.0)
|
|
99
|
-
rspec-expectations (3.13.
|
|
110
|
+
rspec-expectations (3.13.5)
|
|
100
111
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
101
112
|
rspec-support (~> 3.13.0)
|
|
102
|
-
rspec-mocks (3.13.
|
|
113
|
+
rspec-mocks (3.13.7)
|
|
103
114
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
104
115
|
rspec-support (~> 3.13.0)
|
|
105
|
-
rspec-support (3.13.
|
|
106
|
-
rubocop (1.
|
|
116
|
+
rspec-support (3.13.6)
|
|
117
|
+
rubocop (1.82.1)
|
|
107
118
|
json (~> 2.3)
|
|
108
|
-
language_server-protocol (
|
|
119
|
+
language_server-protocol (~> 3.17.0.2)
|
|
120
|
+
lint_roller (~> 1.1.0)
|
|
109
121
|
parallel (~> 1.10)
|
|
110
122
|
parser (>= 3.3.0.2)
|
|
111
123
|
rainbow (>= 2.2.2, < 4.0)
|
|
112
124
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
113
|
-
rubocop-ast (>= 1.
|
|
125
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
114
126
|
ruby-progressbar (~> 1.7)
|
|
115
127
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
116
|
-
rubocop-ast (1.
|
|
117
|
-
parser (>= 3.3.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
rubocop (~> 1.
|
|
122
|
-
rubocop-
|
|
123
|
-
|
|
124
|
-
rubocop
|
|
125
|
-
rubocop-
|
|
128
|
+
rubocop-ast (1.49.0)
|
|
129
|
+
parser (>= 3.3.7.2)
|
|
130
|
+
prism (~> 1.7)
|
|
131
|
+
rubocop-capybara (2.22.1)
|
|
132
|
+
lint_roller (~> 1.1)
|
|
133
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
134
|
+
rubocop-factory_bot (2.28.0)
|
|
135
|
+
lint_roller (~> 1.1)
|
|
136
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
137
|
+
rubocop-performance (1.26.1)
|
|
138
|
+
lint_roller (~> 1.1)
|
|
139
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
140
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
141
|
+
rubocop-rails (2.34.3)
|
|
126
142
|
activesupport (>= 4.2.0)
|
|
143
|
+
lint_roller (~> 1.1)
|
|
127
144
|
rack (>= 1.1)
|
|
128
|
-
rubocop (>= 1.
|
|
129
|
-
rubocop-ast (>= 1.
|
|
130
|
-
rubocop-rspec (3.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
145
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
146
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
147
|
+
rubocop-rspec (3.9.0)
|
|
148
|
+
lint_roller (~> 1.1)
|
|
149
|
+
rubocop (~> 1.81)
|
|
150
|
+
rubocop-rspec_rails (2.32.0)
|
|
151
|
+
lint_roller (~> 1.1)
|
|
152
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
153
|
+
rubocop-rspec (~> 3.5)
|
|
135
154
|
ruby-progressbar (1.13.0)
|
|
136
155
|
rumoji (0.5.0)
|
|
137
|
-
securerandom (0.
|
|
138
|
-
sqlite3 (
|
|
139
|
-
sqlite3 (
|
|
140
|
-
sqlite3 (
|
|
141
|
-
timeout (0.
|
|
156
|
+
securerandom (0.4.1)
|
|
157
|
+
sqlite3 (2.9.0-arm64-darwin)
|
|
158
|
+
sqlite3 (2.9.0-x86_64-darwin)
|
|
159
|
+
sqlite3 (2.9.0-x86_64-linux-gnu)
|
|
160
|
+
timeout (0.6.0)
|
|
142
161
|
tzinfo (2.0.6)
|
|
143
162
|
concurrent-ruby (~> 1.0)
|
|
144
|
-
unicode-display_width (3.
|
|
145
|
-
unicode-emoji (~> 4.
|
|
146
|
-
unicode-emoji (4.0
|
|
147
|
-
|
|
163
|
+
unicode-display_width (3.2.0)
|
|
164
|
+
unicode-emoji (~> 4.1)
|
|
165
|
+
unicode-emoji (4.2.0)
|
|
166
|
+
uri (1.1.1)
|
|
167
|
+
zeitwerk (2.7.4)
|
|
148
168
|
|
|
149
169
|
PLATFORMS
|
|
150
170
|
arm64-darwin-21
|
|
151
171
|
arm64-darwin-23
|
|
172
|
+
arm64-darwin-24
|
|
152
173
|
x86_64-darwin-21
|
|
153
174
|
x86_64-linux
|
|
154
175
|
|
|
@@ -160,7 +181,7 @@ DEPENDENCIES
|
|
|
160
181
|
rake (~> 13.0)
|
|
161
182
|
rspec (~> 3.9)
|
|
162
183
|
rubocop-gp!
|
|
163
|
-
sqlite3
|
|
184
|
+
sqlite3
|
|
164
185
|
|
|
165
186
|
BUNDLED WITH
|
|
166
187
|
2.3.15
|
data/README.md
CHANGED
|
@@ -74,6 +74,8 @@ end
|
|
|
74
74
|
|
|
75
75
|
Product::COLOR.values # => ["red", "green"]
|
|
76
76
|
Product::COLOR::RED # => "red"
|
|
77
|
+
Product::COLOR::RED.red? # => true
|
|
78
|
+
Product::COLOR::RED.human_name # => "Красный"
|
|
77
79
|
Product::COLOR::RED__GREEN # => ["red", "green"]
|
|
78
80
|
|
|
79
81
|
Product::COLOR["red"].red? # => true
|
data/lib/enum_machine/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: enum_machine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ermolaev Andrey
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activemodel
|
|
@@ -86,7 +85,6 @@ metadata:
|
|
|
86
85
|
homepage_uri: https://github.com/corp-gp/enum_machine
|
|
87
86
|
source_code_uri: https://github.com/corp-gp/enum_machine
|
|
88
87
|
rubygems_mfa_required: 'true'
|
|
89
|
-
post_install_message:
|
|
90
88
|
rdoc_options: []
|
|
91
89
|
require_paths:
|
|
92
90
|
- lib
|
|
@@ -101,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
99
|
- !ruby/object:Gem::Version
|
|
102
100
|
version: '0'
|
|
103
101
|
requirements: []
|
|
104
|
-
rubygems_version: 3.
|
|
105
|
-
signing_key:
|
|
102
|
+
rubygems_version: 3.6.9
|
|
106
103
|
specification_version: 4
|
|
107
104
|
summary: fast and siple usage state machine in your app
|
|
108
105
|
test_files: []
|