values 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/values.rb +1 -3
  3. data/values.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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
- value_class = Class.new
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{values}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Crayford"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.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: -1632268745089486033
114
+ hash: -580871131718748459
115
115
  segments:
116
116
  - 0
117
117
  version: "0"