literal 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/literal/enum.rb +2 -2
- data/lib/literal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6311063a2b1bdfdd56033d0e740020927e58e4488405804c2f3e97ca9aad22b
|
4
|
+
data.tar.gz: fa4abc6e6c791b36a22b28c2b5b47ea0e7bd6d8f6e57b81f6b4104260989f836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1dd9ad76a1552039a277b597c24b4e5ebf04d0edac5b86ae138d4d0e98b02bb6fc8e3ffc5fec63cc9d5d233c9865a90f0c29ad0a87cac2083b5a150a0e3ea4
|
7
|
+
data.tar.gz: 9162543b6590028e0118d9c0e52f7d1eb58122db513c76b3ea7eff3d722df811b4227c8b32d01fe471861029a352ce85c366a32778ccccb0aaff988d5647959f
|
data/lib/literal/enum.rb
CHANGED
@@ -76,9 +76,9 @@ class Literal::Enum
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
def new(
|
79
|
+
def new(*args, **kwargs, &block)
|
80
80
|
raise ArgumentError if frozen?
|
81
|
-
new_object = super(
|
81
|
+
new_object = super(*args, **kwargs, &nil)
|
82
82
|
|
83
83
|
if block
|
84
84
|
new_object.instance_exec(&block)
|
data/lib/literal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: literal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Drapper
|
@@ -84,7 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '3.
|
87
|
+
version: '3.1'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - ">="
|