easy_enum 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -4
- data/lib/easy_enum.rb +2 -0
- data/lib/easy_enum/easy_enum.rb +2 -0
- data/lib/easy_enum/version.rb +3 -1
- metadata +6 -8
- data/lib/easy_enum/color.rb +0 -5
- data/lib/easy_enum/unit.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 725e5b37a0c852147b6051b26a921a94021cc45ff2a2690a847b1ff5218970ff
|
4
|
+
data.tar.gz: 55a552d7ddd64c2897739526f87eb7b9e5e752265bee8cd8378d6382fc85e8c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12e0fd11be0a44da274f7af9af3a89f45b1fe8d9a7e9c2e462bc12cae6ab235d2b9f928f225b265fe2c969b07dc72d245a8e14d2db166ca83795e02abd64cda3
|
7
|
+
data.tar.gz: edfe6d85dd00a9aa0226b9636ecc03b25e2f6be26752663c24839a33157f1ad94cef84b899d12e510e3592a313b740d09f33e285c899b12fbb7715cfeaa182b7
|
data/README.md
CHANGED
@@ -21,15 +21,13 @@ Or install it yourself as:
|
|
21
21
|
## Basic Usage
|
22
22
|
|
23
23
|
```ruby
|
24
|
-
|
25
|
-
|
26
|
-
class Color < EasyEnum
|
24
|
+
class Color < EasyEnum::EasyEnum
|
27
25
|
easy_enum(green: 0, red: 1, blue: 2)
|
28
26
|
end
|
29
27
|
|
30
28
|
# or
|
31
29
|
|
32
|
-
class Color < EasyEnum
|
30
|
+
class Color < EasyEnum::EasyEnum
|
33
31
|
self.easy_enum = {
|
34
32
|
green: 0,
|
35
33
|
red: 1,
|
data/lib/easy_enum.rb
CHANGED
data/lib/easy_enum/easy_enum.rb
CHANGED
data/lib/easy_enum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.75.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.75.0
|
69
69
|
description: Turn any Ruby class in an easy to use enum
|
70
70
|
email:
|
71
71
|
- marco.roth@intergga.ch
|
@@ -76,9 +76,7 @@ files:
|
|
76
76
|
- LICENSE.txt
|
77
77
|
- README.md
|
78
78
|
- lib/easy_enum.rb
|
79
|
-
- lib/easy_enum/color.rb
|
80
79
|
- lib/easy_enum/easy_enum.rb
|
81
|
-
- lib/easy_enum/unit.rb
|
82
80
|
- lib/easy_enum/version.rb
|
83
81
|
homepage: https://github.com/marcoroth/easy_enum
|
84
82
|
licenses:
|
data/lib/easy_enum/color.rb
DELETED