simple_enum 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -1
- data/Gemfile.lock +1 -1
- data/lib/simple_enum.rb +1 -1
- data/lib/simple_enum/version.rb +1 -1
- data/test/simple_enum_test.rb +5 -0
- metadata +4 -4
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/simple_enum.rb
CHANGED
@@ -209,7 +209,7 @@ module SimpleEnum
|
|
209
209
|
enum_attr = :"#{attr_name.downcase}_enum_hash"
|
210
210
|
|
211
211
|
define_method("human_#{enum_cd}") do
|
212
|
-
self.class.human_enum_name(attr_name, self.send(enum_cd))
|
212
|
+
self.class.human_enum_name(attr_name, self.send(enum_cd)) unless self.send(enum_cd).nil?
|
213
213
|
end
|
214
214
|
|
215
215
|
class_eval(<<-RUBY, __FILE__, __LINE__ + 1)
|
data/lib/simple_enum/version.rb
CHANGED
data/test/simple_enum_test.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 1
|
10
|
+
version: 1.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lukas Westermann
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
18
|
+
date: 2012-04-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|