haz_enum 0.4.1 → 0.4.2

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/haz_enum.gemspec +1 -1
  3. data/lib/haz_enum/set.rb +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
data/haz_enum.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{haz_enum}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["thyphoon"]
data/lib/haz_enum/set.rb CHANGED
@@ -11,7 +11,7 @@ module HazEnum
11
11
  before_save "convert_#{set_name}_to_#{field_type}"
12
12
 
13
13
  define_method("#{set_name}") do
14
- instance_variable_get("@#{set_name}") || "initialize_#{set_name}_from_#{field_type}"
14
+ instance_variable_get("@#{set_name}") || send("initialize_#{set_name}_from_#{field_type}")
15
15
  end
16
16
 
17
17
  define_method("#{set_name}=") do |value|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - thyphoon