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
data/lib/ruby-enum/enum.rb
CHANGED
|
@@ -26,10 +26,10 @@ module Ruby
|
|
|
26
26
|
"\nSummary:\n #{@summary}" + "\nResolution:\n #{@resolution}"
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
private
|
|
30
|
-
|
|
31
29
|
BASE_KEY = 'ruby.enum.errors.messages' # :nodoc:
|
|
32
30
|
|
|
31
|
+
private
|
|
32
|
+
|
|
33
33
|
# Given the key of the specific error and the options hash, translate the
|
|
34
34
|
# message.
|
|
35
35
|
#
|
data/lib/ruby-enum/version.rb
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -2,55 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
require 'spec_helper'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
module Case
|
|
6
|
+
class Colors
|
|
7
|
+
include Ruby::Enum
|
|
8
|
+
include Ruby::Enum::Case
|
|
9
|
+
|
|
10
|
+
define :RED, :red
|
|
11
|
+
define :GREEN, :green
|
|
12
|
+
define :BLUE, :blue
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
15
|
|
|
16
|
+
RSpec.describe Ruby::Enum::Case do
|
|
16
17
|
describe '.case' do
|
|
17
18
|
context 'when all cases are defined' do
|
|
18
|
-
subject {
|
|
19
|
+
subject { Case::Colors.case(Case::Colors::RED, cases) }
|
|
19
20
|
|
|
20
21
|
let(:cases) do
|
|
21
22
|
{
|
|
22
|
-
[
|
|
23
|
-
|
|
23
|
+
[Case::Colors::RED, Case::Colors::GREEN] => -> { 'red or green' },
|
|
24
|
+
Case::Colors::BLUE => -> { 'blue' }
|
|
24
25
|
}
|
|
25
26
|
end
|
|
26
27
|
|
|
27
28
|
it { is_expected.to eq('red or green') }
|
|
28
29
|
|
|
29
30
|
context 'when the value is nil' do
|
|
30
|
-
subject {
|
|
31
|
+
subject { Case::Colors.case(nil, cases) }
|
|
31
32
|
|
|
32
33
|
it { is_expected.to be_nil }
|
|
33
34
|
end
|
|
34
35
|
|
|
35
36
|
context 'when the value is empty' do
|
|
36
|
-
subject {
|
|
37
|
+
subject { Case::Colors.case('', cases) }
|
|
37
38
|
|
|
38
39
|
it { is_expected.to be_nil }
|
|
39
40
|
end
|
|
40
41
|
|
|
41
42
|
context 'when the value is the value of the enum' do
|
|
42
|
-
subject {
|
|
43
|
+
subject { Case::Colors.case(:red, cases) }
|
|
43
44
|
|
|
44
45
|
it { is_expected.to eq('red or green') }
|
|
45
46
|
end
|
|
46
47
|
|
|
47
48
|
context 'when the value is used inside the lambda' do
|
|
48
|
-
subject {
|
|
49
|
+
subject { Case::Colors.case(Case::Colors::RED, cases) }
|
|
49
50
|
|
|
50
51
|
let(:cases) do
|
|
51
52
|
{
|
|
52
|
-
[
|
|
53
|
-
|
|
53
|
+
[Case::Colors::RED, Case::Colors::GREEN] => ->(color) { "is #{color}" },
|
|
54
|
+
Case::Colors::BLUE => -> { 'blue' }
|
|
54
55
|
}
|
|
55
56
|
end
|
|
56
57
|
|
|
@@ -60,12 +61,12 @@ RSpec.describe Ruby::Enum::Case do
|
|
|
60
61
|
|
|
61
62
|
context 'when there are mutliple matches' do
|
|
62
63
|
subject do
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
Case::Colors.case(
|
|
65
|
+
Case::Colors::RED,
|
|
65
66
|
{
|
|
66
|
-
[
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
[Case::Colors::RED, Case::Colors::GREEN] => -> { 'red or green' },
|
|
68
|
+
Case::Colors::RED => -> { 'red' },
|
|
69
|
+
Case::Colors::BLUE => -> { 'blue' }
|
|
69
70
|
}
|
|
70
71
|
)
|
|
71
72
|
end
|
|
@@ -76,9 +77,9 @@ RSpec.describe Ruby::Enum::Case do
|
|
|
76
77
|
context 'when not all cases are defined' do
|
|
77
78
|
it 'raises an error' do
|
|
78
79
|
expect do
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
{ [
|
|
80
|
+
Case::Colors.case(
|
|
81
|
+
Case::Colors::RED,
|
|
82
|
+
{ [Case::Colors::RED, Case::Colors::GREEN] => -> { 'red or green' } }
|
|
82
83
|
)
|
|
83
84
|
end.to raise_error(Ruby::Enum::Case::ClassMethods::NotAllCasesHandledError)
|
|
84
85
|
end
|
|
@@ -87,10 +88,10 @@ RSpec.describe Ruby::Enum::Case do
|
|
|
87
88
|
context 'when not all cases are defined but :else is specified (default case)' do
|
|
88
89
|
it 'does not raise an error' do
|
|
89
90
|
expect do
|
|
90
|
-
result =
|
|
91
|
-
|
|
91
|
+
result = Case::Colors.case(
|
|
92
|
+
Case::Colors::BLUE,
|
|
92
93
|
{
|
|
93
|
-
[
|
|
94
|
+
[Case::Colors::RED, Case::Colors::GREEN] => -> { 'red or green' },
|
|
94
95
|
else: -> { 'blue' }
|
|
95
96
|
}
|
|
96
97
|
)
|
|
@@ -103,11 +104,11 @@ RSpec.describe Ruby::Enum::Case do
|
|
|
103
104
|
context 'when a superfluous case is defined' do
|
|
104
105
|
it 'raises an error' do
|
|
105
106
|
expect do
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
Case::Colors.case(
|
|
108
|
+
Case::Colors::RED,
|
|
108
109
|
{
|
|
109
|
-
[
|
|
110
|
-
|
|
110
|
+
[Case::Colors::RED, Case::Colors::GREEN] => -> { 'red or green' },
|
|
111
|
+
Case::Colors::BLUE => -> { 'blue' },
|
|
111
112
|
:something => -> { 'green' }
|
|
112
113
|
}
|
|
113
114
|
)
|
data/spec/ruby-enum/enum_spec.rb
CHANGED
|
@@ -2,22 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
require 'spec_helper'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
describe Ruby::Enum do
|
|
6
|
+
class Colors
|
|
7
|
+
include Ruby::Enum
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
end
|
|
9
|
+
define :RED, 'red'
|
|
10
|
+
define :GREEN, 'green'
|
|
11
|
+
end
|
|
11
12
|
|
|
12
|
-
class FirstSubclass < Colors
|
|
13
|
-
|
|
14
|
-
end
|
|
13
|
+
class FirstSubclass < Colors
|
|
14
|
+
define :ORANGE, 'orange'
|
|
15
|
+
end
|
|
15
16
|
|
|
16
|
-
class SecondSubclass < FirstSubclass
|
|
17
|
-
|
|
18
|
-
end
|
|
17
|
+
class SecondSubclass < FirstSubclass
|
|
18
|
+
define :PINK, 'pink'
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
class OtherSecondSubclass < FirstSubclass
|
|
22
|
+
include Ruby::Enum
|
|
23
|
+
|
|
24
|
+
define :MAGENTA, 'magenta'
|
|
25
|
+
end
|
|
19
26
|
|
|
20
|
-
describe Ruby::Enum do
|
|
21
27
|
it 'returns an enum value' do
|
|
22
28
|
expect(Colors::RED).to eq 'red'
|
|
23
29
|
expect(Colors::GREEN).to eq 'green'
|
|
@@ -158,6 +164,24 @@ describe Ruby::Enum do
|
|
|
158
164
|
it 'returns values' do
|
|
159
165
|
expect(Colors.values).to eq(%w[red green])
|
|
160
166
|
end
|
|
167
|
+
|
|
168
|
+
context 'when a subclass is defined' do
|
|
169
|
+
it 'returns all values' do
|
|
170
|
+
expect(FirstSubclass.values).to eq(%w[red green orange])
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
context 'when a subclass of a subclass is defined' do
|
|
175
|
+
it 'returns all values' do
|
|
176
|
+
expect(SecondSubclass.values).to eq(%w[red green orange pink])
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
context 'when a subclass of a subclass is defined with redundant module inclusion' do
|
|
181
|
+
it 'returns all values' do
|
|
182
|
+
expect(OtherSecondSubclass.values).to eq(%w[red green orange magenta])
|
|
183
|
+
end
|
|
184
|
+
end
|
|
161
185
|
end
|
|
162
186
|
|
|
163
187
|
describe '#to_h' do
|
|
@@ -218,6 +242,47 @@ describe Ruby::Enum do
|
|
|
218
242
|
end
|
|
219
243
|
end
|
|
220
244
|
|
|
245
|
+
describe 'Reloading enum definition' do
|
|
246
|
+
it 'can be lazy reloaded' do
|
|
247
|
+
class_body = proc do
|
|
248
|
+
include Ruby::Enum
|
|
249
|
+
|
|
250
|
+
define :BUZZ_CUT, 'buzz_cut'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
hair_styles = Class.new(&class_body)
|
|
254
|
+
|
|
255
|
+
expect { hair_styles.class_eval(&class_body) }.not_to raise_error
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
context 'when a subclass is defined' do
|
|
259
|
+
it 'NEEDS to include Ruby::Enum explicitly to be lazy reloaded' do
|
|
260
|
+
hair_styles = Class.new do
|
|
261
|
+
include Ruby::Enum
|
|
262
|
+
|
|
263
|
+
define :BUZZ_CUT, 'buzz_cut'
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
broken_subclass_body = proc do
|
|
267
|
+
define :PONYTAIL, 'ponytail'
|
|
268
|
+
end
|
|
269
|
+
broken_subclass = Class.new(hair_styles, &broken_subclass_body)
|
|
270
|
+
expect { broken_subclass.class_eval(&broken_subclass_body) }
|
|
271
|
+
.to raise_error Ruby::Enum::Errors::DuplicateKeyError, /PONYTAIL/
|
|
272
|
+
|
|
273
|
+
subclass_body = proc do
|
|
274
|
+
include Ruby::Enum
|
|
275
|
+
|
|
276
|
+
define :PONYTAIL, 'ponytail'
|
|
277
|
+
end
|
|
278
|
+
more_hair_styles = Class.new(hair_styles, &subclass_body)
|
|
279
|
+
|
|
280
|
+
expect { more_hair_styles.class_eval(&subclass_body) }.not_to raise_error
|
|
281
|
+
expect(more_hair_styles.values).to eq(%w[buzz_cut ponytail])
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
221
286
|
describe 'Given a class that has not defined any enums' do
|
|
222
287
|
class EmptyEnums
|
|
223
288
|
include Ruby::Enum
|
|
@@ -250,29 +315,23 @@ describe Ruby::Enum do
|
|
|
250
315
|
end
|
|
251
316
|
|
|
252
317
|
context 'when defining a 2 level depth subclass' do
|
|
253
|
-
subject { SecondSubclass }
|
|
254
|
-
|
|
255
318
|
it 'contains its own enums and all the enums defined in the parent classes' do
|
|
256
|
-
expect(
|
|
257
|
-
expect(
|
|
258
|
-
expect(
|
|
259
|
-
expect(
|
|
319
|
+
expect(SecondSubclass::RED).to eq 'red'
|
|
320
|
+
expect(SecondSubclass::GREEN).to eq 'green'
|
|
321
|
+
expect(SecondSubclass::ORANGE).to eq 'orange'
|
|
322
|
+
expect(SecondSubclass::PINK).to eq 'pink'
|
|
260
323
|
end
|
|
261
324
|
|
|
262
325
|
describe '#values' do
|
|
263
|
-
subject { SecondSubclass.values }
|
|
264
|
-
|
|
265
326
|
it 'contains the values from all of the parent classes' do
|
|
266
|
-
expect(
|
|
327
|
+
expect(SecondSubclass.values).to eq(%w[red green orange pink])
|
|
267
328
|
end
|
|
268
329
|
end
|
|
269
330
|
end
|
|
270
331
|
|
|
271
332
|
describe '#values' do
|
|
272
|
-
subject { FirstSubclass.values }
|
|
273
|
-
|
|
274
333
|
it 'contains the values from the parent class' do
|
|
275
|
-
expect(
|
|
334
|
+
expect(FirstSubclass.values).to eq(%w[red green orange])
|
|
276
335
|
end
|
|
277
336
|
end
|
|
278
337
|
end
|
|
@@ -280,41 +339,40 @@ describe Ruby::Enum do
|
|
|
280
339
|
describe 'default value' do
|
|
281
340
|
class Default
|
|
282
341
|
include Ruby::Enum
|
|
342
|
+
|
|
283
343
|
define :KEY
|
|
284
344
|
end
|
|
285
345
|
|
|
286
|
-
subject { Default::KEY }
|
|
287
|
-
|
|
288
346
|
it 'equals the key' do
|
|
289
|
-
expect(
|
|
347
|
+
expect(Default::KEY).to eq(:KEY)
|
|
290
348
|
end
|
|
291
349
|
end
|
|
292
350
|
|
|
293
351
|
describe 'non constant definitions' do
|
|
294
352
|
class States
|
|
295
353
|
include Ruby::Enum
|
|
354
|
+
|
|
296
355
|
define :created, 'Created'
|
|
297
356
|
define :published, 'Published'
|
|
298
357
|
define :undefined
|
|
299
358
|
end
|
|
300
|
-
subject { States }
|
|
301
359
|
|
|
302
360
|
it 'behaves like an enum' do
|
|
303
|
-
expect(
|
|
304
|
-
expect(
|
|
305
|
-
expect(
|
|
361
|
+
expect(States.created).to eq 'Created'
|
|
362
|
+
expect(States.published).to eq 'Published'
|
|
363
|
+
expect(States.undefined).to eq :undefined
|
|
306
364
|
|
|
307
|
-
expect(
|
|
308
|
-
expect(
|
|
365
|
+
expect(States.key?(:created)).to be true
|
|
366
|
+
expect(States.key('Created')).to eq :created
|
|
309
367
|
|
|
310
|
-
expect(
|
|
311
|
-
expect(
|
|
368
|
+
expect(States.value?('Created')).to be true
|
|
369
|
+
expect(States.value(:created)).to eq 'Created'
|
|
312
370
|
|
|
313
|
-
expect(
|
|
314
|
-
expect(
|
|
371
|
+
expect(States.key?(:undefined)).to be true
|
|
372
|
+
expect(States.key(:undefined)).to eq :undefined
|
|
315
373
|
|
|
316
|
-
expect(
|
|
317
|
-
expect(
|
|
374
|
+
expect(States.value?(:undefined)).to be true
|
|
375
|
+
expect(States.value(:undefined)).to eq :undefined
|
|
318
376
|
end
|
|
319
377
|
end
|
|
320
378
|
end
|
data/spec/spec_helper.rb
CHANGED
data/spec_i18n/spec/i18n_spec.rb
CHANGED
|
@@ -2,18 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
require 'spec_helper'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
module I18n
|
|
6
|
+
class Colors
|
|
7
|
+
include Ruby::Enum
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
define :RED, 'red'
|
|
10
|
+
define :GREEN, 'green'
|
|
11
|
+
end
|
|
10
12
|
end
|
|
11
13
|
|
|
12
14
|
describe Ruby::Enum do
|
|
13
15
|
context 'when the i18n gem is not loaded' do
|
|
14
16
|
it 'raises UninitializedConstantError on an invalid constant' do
|
|
15
17
|
expect do
|
|
16
|
-
|
|
18
|
+
I18n::Colors::ANYTHING
|
|
17
19
|
end.to raise_error Ruby::Enum::Errors::UninitializedConstantError, /ruby.enum.errors.messages.uninitialized_constant.summary/
|
|
18
20
|
end
|
|
19
21
|
|
|
@@ -24,7 +26,7 @@ describe Ruby::Enum do
|
|
|
24
26
|
|
|
25
27
|
it 'raises DuplicateKeyError' do
|
|
26
28
|
expect do
|
|
27
|
-
|
|
29
|
+
I18n::Colors.class_eval do
|
|
28
30
|
define :RED, 'some'
|
|
29
31
|
end
|
|
30
32
|
end.to raise_error Ruby::Enum::Errors::DuplicateKeyError, /ruby.enum.errors.messages.duplicate_key.message/
|
|
@@ -38,7 +40,7 @@ describe Ruby::Enum do
|
|
|
38
40
|
|
|
39
41
|
it 'raises a DuplicateValueError' do
|
|
40
42
|
expect do
|
|
41
|
-
|
|
43
|
+
I18n::Colors.class_eval do
|
|
42
44
|
define :Other, 'red'
|
|
43
45
|
end
|
|
44
46
|
end.to raise_error Ruby::Enum::Errors::DuplicateValueError, /ruby.enum.errors.messages.duplicate_value.summary/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-enum
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Doubrovkine
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: dblock@dblock.org
|
|
@@ -56,6 +56,35 @@ files:
|
|
|
56
56
|
- coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png
|
|
57
57
|
- coverage/assets/0.12.3/loading.gif
|
|
58
58
|
- coverage/assets/0.12.3/magnify.png
|
|
59
|
+
- coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc.png
|
|
60
|
+
- coverage/assets/0.13.2/DataTables-1.10.20/images/sort_asc_disabled.png
|
|
61
|
+
- coverage/assets/0.13.2/DataTables-1.10.20/images/sort_both.png
|
|
62
|
+
- coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc.png
|
|
63
|
+
- coverage/assets/0.13.2/DataTables-1.10.20/images/sort_desc_disabled.png
|
|
64
|
+
- coverage/assets/0.13.2/application.css
|
|
65
|
+
- coverage/assets/0.13.2/application.js
|
|
66
|
+
- coverage/assets/0.13.2/colorbox/border.png
|
|
67
|
+
- coverage/assets/0.13.2/colorbox/controls.png
|
|
68
|
+
- coverage/assets/0.13.2/colorbox/loading.gif
|
|
69
|
+
- coverage/assets/0.13.2/colorbox/loading_background.png
|
|
70
|
+
- coverage/assets/0.13.2/favicon_green.png
|
|
71
|
+
- coverage/assets/0.13.2/favicon_red.png
|
|
72
|
+
- coverage/assets/0.13.2/favicon_yellow.png
|
|
73
|
+
- coverage/assets/0.13.2/images/ui-bg_flat_0_aaaaaa_40x100.png
|
|
74
|
+
- coverage/assets/0.13.2/images/ui-bg_flat_75_ffffff_40x100.png
|
|
75
|
+
- coverage/assets/0.13.2/images/ui-bg_glass_55_fbf9ee_1x400.png
|
|
76
|
+
- coverage/assets/0.13.2/images/ui-bg_glass_65_ffffff_1x400.png
|
|
77
|
+
- coverage/assets/0.13.2/images/ui-bg_glass_75_dadada_1x400.png
|
|
78
|
+
- coverage/assets/0.13.2/images/ui-bg_glass_75_e6e6e6_1x400.png
|
|
79
|
+
- coverage/assets/0.13.2/images/ui-bg_glass_95_fef1ec_1x400.png
|
|
80
|
+
- coverage/assets/0.13.2/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
|
81
|
+
- coverage/assets/0.13.2/images/ui-icons_222222_256x240.png
|
|
82
|
+
- coverage/assets/0.13.2/images/ui-icons_2e83ff_256x240.png
|
|
83
|
+
- coverage/assets/0.13.2/images/ui-icons_454545_256x240.png
|
|
84
|
+
- coverage/assets/0.13.2/images/ui-icons_888888_256x240.png
|
|
85
|
+
- coverage/assets/0.13.2/images/ui-icons_cd0a0a_256x240.png
|
|
86
|
+
- coverage/assets/0.13.2/loading.gif
|
|
87
|
+
- coverage/assets/0.13.2/magnify.png
|
|
59
88
|
- coverage/index.html
|
|
60
89
|
- lib/config/locales/en.yml
|
|
61
90
|
- lib/ruby-enum.rb
|
|
@@ -68,13 +97,14 @@ files:
|
|
|
68
97
|
- lib/ruby-enum/errors/uninitialized_constant_error.rb
|
|
69
98
|
- lib/ruby-enum/version.rb
|
|
70
99
|
- lib/ruby_enum.rb
|
|
100
|
+
- pkg/ruby-enum-0.8.0.gem
|
|
101
|
+
- pkg/ruby-enum-0.9.0.gem
|
|
71
102
|
- ruby-enum.gemspec
|
|
72
103
|
- spec/ruby-enum/enum/case_spec.rb
|
|
73
104
|
- spec/ruby-enum/enum_spec.rb
|
|
74
105
|
- spec/ruby-enum/version_spec.rb
|
|
75
106
|
- spec/spec_helper.rb
|
|
76
107
|
- spec_i18n/Gemfile
|
|
77
|
-
- spec_i18n/Gemfile.lock
|
|
78
108
|
- spec_i18n/Rakefile
|
|
79
109
|
- spec_i18n/spec/i18n_spec.rb
|
|
80
110
|
- spec_i18n/spec/spec_helper.rb
|
|
@@ -98,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
98
128
|
- !ruby/object:Gem::Version
|
|
99
129
|
version: 1.3.6
|
|
100
130
|
requirements: []
|
|
101
|
-
rubygems_version: 3.5.
|
|
131
|
+
rubygems_version: 3.5.16
|
|
102
132
|
signing_key:
|
|
103
133
|
specification_version: 4
|
|
104
134
|
summary: Enum-like behavior for Ruby.
|
data/spec_i18n/Gemfile.lock
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ..
|
|
3
|
-
specs:
|
|
4
|
-
ruby-enum (1.0.0)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: http://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
diff-lcs (1.5.0)
|
|
10
|
-
rake (13.1.0)
|
|
11
|
-
rspec (3.12.0)
|
|
12
|
-
rspec-core (~> 3.12.0)
|
|
13
|
-
rspec-expectations (~> 3.12.0)
|
|
14
|
-
rspec-mocks (~> 3.12.0)
|
|
15
|
-
rspec-core (3.12.2)
|
|
16
|
-
rspec-support (~> 3.12.0)
|
|
17
|
-
rspec-expectations (3.12.3)
|
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.12.0)
|
|
20
|
-
rspec-mocks (3.12.6)
|
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.12.0)
|
|
23
|
-
rspec-support (3.12.1)
|
|
24
|
-
|
|
25
|
-
PLATFORMS
|
|
26
|
-
arm64-darwin-22
|
|
27
|
-
ruby
|
|
28
|
-
|
|
29
|
-
DEPENDENCIES
|
|
30
|
-
rake
|
|
31
|
-
rspec (~> 3.0)
|
|
32
|
-
ruby-enum!
|
|
33
|
-
|
|
34
|
-
BUNDLED WITH
|
|
35
|
-
2.5.1
|