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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a277b4952bac2f58dd791e094b9f57952df468c3e9e1bd79aabb86065d740f15
4
- data.tar.gz: eeb710a77ecf87a36bf93fdea34ed79f27fd4dc96312fcc06657d3c8331bf050
3
+ metadata.gz: 725e5b37a0c852147b6051b26a921a94021cc45ff2a2690a847b1ff5218970ff
4
+ data.tar.gz: 55a552d7ddd64c2897739526f87eb7b9e5e752265bee8cd8378d6382fc85e8c1
5
5
  SHA512:
6
- metadata.gz: 4c67b817be49fe3ace46c30d646a85afcb33e5141ea277c749d0e34cb50f8dd74f41d1872eb49d68857d1c669e55626b1207bd683643857ed18117172e053fa2
7
- data.tar.gz: f236d45007f52cff6177f10b03f4269fdd8a98c13cef6d158f04722486e1ed8a5bf05d71003e448d51c1756b25aba65c2d82fb4d699788ca0f44fa4a6136325a
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
- include EasyEnum
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'easy_enum/version'
2
4
  require 'easy_enum/easy_enum'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EasyEnum
2
4
  class EasyEnum
3
5
  attr_reader :value
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module EasyEnum
2
- VERSION = '0.1.2'.freeze
4
+ VERSION = '0.1.3'
3
5
  end
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.2
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-05-08 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.68.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.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:
@@ -1,5 +0,0 @@
1
- module EasyEnum
2
- class Color < EasyEnum
3
- easy_enum(green: 0, red: 1, blue: 2)
4
- end
5
- end
@@ -1,9 +0,0 @@
1
- module EasyEnum
2
- class Unit < EasyEnum
3
- self.easy_enum = {
4
- meter: 0,
5
- yard: 1,
6
- feet: 2
7
- }
8
- end
9
- end