ruby-enum 1.0.0 → 1.1.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/CHANGELOG.md +6 -0
- data/Dangerfile +2 -0
- data/Gemfile +6 -5
- data/Gemfile.lock +128 -93
- data/README.md +2 -2
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.13.2/application.css +1 -0
- data/coverage/assets/0.13.2/application.js +7 -0
- data/coverage/assets/0.13.2/colorbox/border.png +0 -0
- data/coverage/assets/0.13.2/colorbox/controls.png +0 -0
- data/coverage/assets/0.13.2/colorbox/loading.gif +0 -0
- data/coverage/assets/0.13.2/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.13.2/favicon_green.png +0 -0
- data/coverage/assets/0.13.2/favicon_red.png +0 -0
- data/coverage/assets/0.13.2/favicon_yellow.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.13.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.13.2/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.13.2/loading.gif +0 -0
- data/coverage/assets/0.13.2/magnify.png +0 -0
- data/coverage/index.html +1053 -1202
- data/lib/ruby-enum/enum.rb +3 -0
- data/lib/ruby-enum/errors/base.rb +2 -2
- data/lib/ruby-enum/version.rb +1 -1
- data/pkg/ruby-enum-0.8.0.gem +0 -0
- data/pkg/ruby-enum-0.9.0.gem +0 -0
- data/spec/ruby-enum/enum/case_spec.rb +35 -34
- data/spec/ruby-enum/enum_spec.rb +97 -39
- data/spec/spec_helper.rb +2 -2
- data/spec_i18n/spec/i18n_spec.rb +9 -7
- metadata +34 -4
- data/spec_i18n/Gemfile.lock +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ef6a193362634cd178978189b5e5a09fafe68ad2428c1d646abf33ef6f66d4a
|
|
4
|
+
data.tar.gz: 182bdfaff04b1b241bac9614722a3010d2613e2ff8b0cb7a603053df6796b664
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40d0b2b8a93150ec1f21ef209e020dcb6a75142eaba2fd989b9f0ac6853953ec5a6ec0b9a356f8d1411e2ffb6ab955acb453cb576ba841cad3ec7eea6ffebac5
|
|
7
|
+
data.tar.gz: 65fe31ba27ba5f9c76d95090d00d8024fb0ba1f7abb8bd5e5bff87ea7559f941ec67a35a655f5cfe39b1e68e89de043d0702bd572ed18465483c1c4bc36fe6dc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### 1.1.0 (2026/6/20)
|
|
2
|
+
|
|
3
|
+
* [#56](https://github.com/dblock/ruby-enum/pull/56): Fix `DuplicateKeyError` when the enum class is reloaded - [@flvrone](https://github.com/flvrone).
|
|
4
|
+
* [#54](https://github.com/dblock/ruby-enum/pull/54): Add support for Ruby 4.0 - [@dblock](https://github.com/dblock).
|
|
5
|
+
* [#53](https://github.com/dblock/ruby-enum/pull/53): Replace code climate with coveralls - [@dblock](https://github.com/dblock).
|
|
6
|
+
|
|
1
7
|
### 1.0.0 (2023/01/10)
|
|
2
8
|
|
|
3
9
|
* [#41](https://github.com/dblock/ruby-enum/pull/41): Make i18n dependency optional - [@peterfication](https://github.com/peterfication).
|
data/Dangerfile
CHANGED
data/Gemfile
CHANGED
|
@@ -8,14 +8,15 @@ gem 'rake'
|
|
|
8
8
|
|
|
9
9
|
group :development, :test do
|
|
10
10
|
gem 'danger'
|
|
11
|
-
gem 'danger-changelog'
|
|
12
|
-
gem 'danger-
|
|
13
|
-
gem '
|
|
14
|
-
gem '
|
|
11
|
+
gem 'danger-changelog'
|
|
12
|
+
gem 'danger-pr-comment'
|
|
13
|
+
gem 'danger-toc'
|
|
14
|
+
gem 'rspec'
|
|
15
|
+
gem 'rubocop', '1.82.1'
|
|
15
16
|
gem 'rubocop-rake'
|
|
16
17
|
gem 'rubocop-rspec'
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
group :test do
|
|
20
|
-
gem '
|
|
21
|
+
gem 'coveralls_reborn', require: false
|
|
21
22
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,166 +1,201 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
ruby-enum (1.
|
|
4
|
+
ruby-enum (1.1.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: http://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
activesupport (
|
|
9
|
+
activesupport (8.1.1)
|
|
10
10
|
base64
|
|
11
11
|
bigdecimal
|
|
12
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
13
13
|
connection_pool (>= 2.2.5)
|
|
14
14
|
drb
|
|
15
15
|
i18n (>= 1.6, < 2)
|
|
16
|
+
json
|
|
17
|
+
logger (>= 1.4.2)
|
|
16
18
|
minitest (>= 5.1)
|
|
17
|
-
|
|
18
|
-
tzinfo (~> 2.0)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
securerandom (>= 0.3)
|
|
20
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
21
|
+
uri (>= 0.13.1)
|
|
22
|
+
addressable (2.8.8)
|
|
23
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
24
|
+
ast (2.4.3)
|
|
25
|
+
base64 (0.3.0)
|
|
26
|
+
bigdecimal (4.0.1)
|
|
24
27
|
claide (1.1.0)
|
|
25
28
|
claide-plugins (0.9.2)
|
|
26
29
|
cork
|
|
27
30
|
nap
|
|
28
31
|
open4 (~> 1.3)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
colored (1.2)
|
|
33
|
+
colored2 (4.0.3)
|
|
34
|
+
concurrent-ruby (1.3.6)
|
|
35
|
+
connection_pool (3.0.2)
|
|
36
|
+
cork (0.2.0)
|
|
37
|
+
colored (~> 1.2)
|
|
38
|
+
coveralls_reborn (0.29.0)
|
|
39
|
+
simplecov (~> 0.22.0)
|
|
40
|
+
term-ansicolor (~> 1.7)
|
|
41
|
+
thor (~> 1.2)
|
|
42
|
+
tins (~> 1.32)
|
|
43
|
+
danger (9.5.3)
|
|
44
|
+
base64 (~> 0.2)
|
|
35
45
|
claide (~> 1.0)
|
|
36
46
|
claide-plugins (>= 0.9.2)
|
|
37
|
-
colored2 (
|
|
47
|
+
colored2 (>= 3.1, < 5)
|
|
38
48
|
cork (~> 0.1)
|
|
39
49
|
faraday (>= 0.9.0, < 3.0)
|
|
40
50
|
faraday-http-cache (~> 2.0)
|
|
41
|
-
git (
|
|
42
|
-
kramdown (
|
|
51
|
+
git (>= 1.13, < 3.0)
|
|
52
|
+
kramdown (>= 2.5.1, < 3.0)
|
|
43
53
|
kramdown-parser-gfm (~> 1.0)
|
|
44
|
-
no_proxy_fix
|
|
45
54
|
octokit (>= 4.0)
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
pstore (~> 0.1)
|
|
56
|
+
terminal-table (>= 1, < 5)
|
|
57
|
+
danger-changelog (0.8.0)
|
|
48
58
|
danger-plugin-api (~> 1.0)
|
|
49
59
|
danger-plugin-api (1.0.0)
|
|
50
60
|
danger (> 2.0)
|
|
61
|
+
danger-pr-comment (0.1.0)
|
|
62
|
+
danger (~> 9)
|
|
51
63
|
danger-toc (0.2.0)
|
|
52
64
|
activesupport
|
|
53
65
|
danger-plugin-api (~> 1.0)
|
|
54
66
|
kramdown
|
|
55
|
-
diff-lcs (1.
|
|
56
|
-
docile (1.4.
|
|
57
|
-
drb (2.2.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
faraday-http-cache (2.5.0)
|
|
67
|
+
diff-lcs (1.6.2)
|
|
68
|
+
docile (1.4.1)
|
|
69
|
+
drb (2.2.3)
|
|
70
|
+
faraday (2.14.0)
|
|
71
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
72
|
+
json
|
|
73
|
+
logger
|
|
74
|
+
faraday-http-cache (2.5.1)
|
|
64
75
|
faraday (>= 0.8)
|
|
65
|
-
faraday-net_http (3.
|
|
66
|
-
|
|
76
|
+
faraday-net_http (3.4.2)
|
|
77
|
+
net-http (~> 0.5)
|
|
78
|
+
git (2.3.3)
|
|
79
|
+
activesupport (>= 5.0)
|
|
67
80
|
addressable (~> 2.8)
|
|
81
|
+
process_executer (~> 1.1)
|
|
68
82
|
rchardet (~> 1.8)
|
|
69
|
-
i18n (1.14.
|
|
83
|
+
i18n (1.14.8)
|
|
70
84
|
concurrent-ruby (~> 1.0)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
io-console (0.8.2)
|
|
86
|
+
json (2.18.0)
|
|
87
|
+
kramdown (2.5.1)
|
|
88
|
+
rexml (>= 3.3.9)
|
|
74
89
|
kramdown-parser-gfm (1.1.0)
|
|
75
90
|
kramdown (~> 2.0)
|
|
76
|
-
language_server-protocol (3.17.0.
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
language_server-protocol (3.17.0.5)
|
|
92
|
+
lint_roller (1.1.0)
|
|
93
|
+
logger (1.7.0)
|
|
94
|
+
minitest (6.0.1)
|
|
95
|
+
prism (~> 1.5)
|
|
96
|
+
mize (0.6.1)
|
|
79
97
|
nap (1.1.0)
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
net-http (0.9.1)
|
|
99
|
+
uri (>= 0.11.1)
|
|
100
|
+
octokit (10.0.0)
|
|
82
101
|
faraday (>= 1, < 3)
|
|
83
102
|
sawyer (~> 0.9)
|
|
84
103
|
open4 (1.3.4)
|
|
85
|
-
parallel (1.
|
|
86
|
-
parser (3.
|
|
104
|
+
parallel (1.27.0)
|
|
105
|
+
parser (3.3.10.0)
|
|
87
106
|
ast (~> 2.4.1)
|
|
88
107
|
racc
|
|
89
|
-
|
|
90
|
-
|
|
108
|
+
prism (1.7.0)
|
|
109
|
+
process_executer (1.3.0)
|
|
110
|
+
pstore (0.2.0)
|
|
111
|
+
public_suffix (7.0.0)
|
|
112
|
+
racc (1.8.1)
|
|
91
113
|
rainbow (3.1.1)
|
|
92
|
-
rake (13.1
|
|
93
|
-
rchardet (1.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
rspec
|
|
101
|
-
rspec-
|
|
102
|
-
|
|
114
|
+
rake (13.3.1)
|
|
115
|
+
rchardet (1.10.0)
|
|
116
|
+
readline (0.0.4)
|
|
117
|
+
reline
|
|
118
|
+
regexp_parser (2.11.3)
|
|
119
|
+
reline (0.6.3)
|
|
120
|
+
io-console (~> 0.5)
|
|
121
|
+
rexml (3.4.4)
|
|
122
|
+
rspec (3.13.2)
|
|
123
|
+
rspec-core (~> 3.13.0)
|
|
124
|
+
rspec-expectations (~> 3.13.0)
|
|
125
|
+
rspec-mocks (~> 3.13.0)
|
|
126
|
+
rspec-core (3.13.6)
|
|
127
|
+
rspec-support (~> 3.13.0)
|
|
128
|
+
rspec-expectations (3.13.5)
|
|
103
129
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
104
|
-
rspec-support (~> 3.
|
|
105
|
-
rspec-mocks (3.
|
|
130
|
+
rspec-support (~> 3.13.0)
|
|
131
|
+
rspec-mocks (3.13.7)
|
|
106
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
107
|
-
rspec-support (~> 3.
|
|
108
|
-
rspec-support (3.
|
|
109
|
-
rubocop (1.
|
|
133
|
+
rspec-support (~> 3.13.0)
|
|
134
|
+
rspec-support (3.13.6)
|
|
135
|
+
rubocop (1.82.1)
|
|
110
136
|
json (~> 2.3)
|
|
111
|
-
language_server-protocol (
|
|
137
|
+
language_server-protocol (~> 3.17.0.2)
|
|
138
|
+
lint_roller (~> 1.1.0)
|
|
112
139
|
parallel (~> 1.10)
|
|
113
|
-
parser (>= 3.
|
|
140
|
+
parser (>= 3.3.0.2)
|
|
114
141
|
rainbow (>= 2.2.2, < 4.0)
|
|
115
|
-
regexp_parser (>=
|
|
116
|
-
|
|
117
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
|
142
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
143
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
118
144
|
ruby-progressbar (~> 1.7)
|
|
119
|
-
unicode-display_width (>= 2.4.0, <
|
|
120
|
-
rubocop-ast (1.
|
|
121
|
-
parser (>= 3.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
rubocop (
|
|
126
|
-
rubocop-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
rubocop (~> 1.40)
|
|
130
|
-
rubocop-capybara (~> 2.17)
|
|
131
|
-
rubocop-factory_bot (~> 2.22)
|
|
145
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
146
|
+
rubocop-ast (1.49.0)
|
|
147
|
+
parser (>= 3.3.7.2)
|
|
148
|
+
prism (~> 1.7)
|
|
149
|
+
rubocop-rake (0.7.1)
|
|
150
|
+
lint_roller (~> 1.1)
|
|
151
|
+
rubocop (>= 1.72.1)
|
|
152
|
+
rubocop-rspec (3.8.0)
|
|
153
|
+
lint_roller (~> 1.1)
|
|
154
|
+
rubocop (~> 1.81)
|
|
132
155
|
ruby-progressbar (1.13.0)
|
|
133
|
-
|
|
134
|
-
sawyer (0.9.2)
|
|
156
|
+
sawyer (0.9.3)
|
|
135
157
|
addressable (>= 2.3.5)
|
|
136
158
|
faraday (>= 0.17.3, < 3)
|
|
159
|
+
securerandom (0.4.1)
|
|
137
160
|
simplecov (0.22.0)
|
|
138
161
|
docile (~> 1.1)
|
|
139
162
|
simplecov-html (~> 0.11)
|
|
140
163
|
simplecov_json_formatter (~> 0.1)
|
|
141
|
-
simplecov-html (0.
|
|
164
|
+
simplecov-html (0.13.2)
|
|
142
165
|
simplecov_json_formatter (0.1.4)
|
|
143
|
-
|
|
144
|
-
|
|
166
|
+
sync (0.5.0)
|
|
167
|
+
term-ansicolor (1.11.3)
|
|
168
|
+
tins (~> 1)
|
|
169
|
+
terminal-table (4.0.0)
|
|
170
|
+
unicode-display_width (>= 1.1.1, < 4)
|
|
171
|
+
thor (1.4.0)
|
|
172
|
+
tins (1.51.0)
|
|
173
|
+
bigdecimal
|
|
174
|
+
mize (~> 0.6)
|
|
175
|
+
readline
|
|
176
|
+
sync
|
|
145
177
|
tzinfo (2.0.6)
|
|
146
178
|
concurrent-ruby (~> 1.0)
|
|
147
|
-
unicode-display_width (2.
|
|
179
|
+
unicode-display_width (3.2.0)
|
|
180
|
+
unicode-emoji (~> 4.1)
|
|
181
|
+
unicode-emoji (4.2.0)
|
|
182
|
+
uri (1.1.1)
|
|
148
183
|
|
|
149
184
|
PLATFORMS
|
|
150
|
-
arm64-darwin-21
|
|
151
185
|
ruby
|
|
152
186
|
|
|
153
187
|
DEPENDENCIES
|
|
188
|
+
coveralls_reborn
|
|
154
189
|
danger
|
|
155
|
-
danger-changelog
|
|
156
|
-
danger-
|
|
190
|
+
danger-changelog
|
|
191
|
+
danger-pr-comment
|
|
192
|
+
danger-toc
|
|
157
193
|
rake
|
|
158
|
-
rspec
|
|
159
|
-
rubocop (
|
|
194
|
+
rspec
|
|
195
|
+
rubocop (= 1.82.1)
|
|
160
196
|
rubocop-rake
|
|
161
197
|
rubocop-rspec
|
|
162
198
|
ruby-enum!
|
|
163
|
-
simplecov
|
|
164
199
|
|
|
165
200
|
BUNDLED WITH
|
|
166
|
-
2.
|
|
201
|
+
2.1.4
|
data/README.md
CHANGED
|
@@ -2,8 +2,8 @@ Ruby::Enum
|
|
|
2
2
|
==========
|
|
3
3
|
|
|
4
4
|
[](http://badge.fury.io/rb/ruby-enum)
|
|
5
|
-
[](https://github.com/dblock/ruby-enum/actions/workflows/test.yml)
|
|
6
|
+
[](https://coveralls.io/github/dblock/ruby-enum?branch=master)
|
|
7
7
|
|
|
8
8
|
Enum-like behavior for Ruby, heavily inspired by [this](http://www.rubyfleebie.com/enumerations-and-ruby), and improved upon [another blog post](http://code.dblock.org/how-to-define-enums-in-ruby).
|
|
9
9
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|