values 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/values.rb +1 -3
- data/values.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/values.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
class Value
|
2
2
|
def self.new(*fields)
|
3
|
-
|
4
|
-
value_class.instance_eval do
|
3
|
+
return Class.new do
|
5
4
|
attr_reader *fields
|
6
5
|
define_method(:initialize) do |*input_fields|
|
7
6
|
raise ArgumentError.new("wrong number of arguments, #{input_fields.size} for #{fields.size}") if fields.size != input_fields.size
|
@@ -12,6 +11,5 @@ class Value
|
|
12
11
|
self.freeze
|
13
12
|
end
|
14
13
|
end
|
15
|
-
return value_class
|
16
14
|
end
|
17
15
|
end
|
data/values.gemspec
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tom Crayford
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
requirements:
|
112
112
|
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
hash: -
|
114
|
+
hash: -580871131718748459
|
115
115
|
segments:
|
116
116
|
- 0
|
117
117
|
version: "0"
|