inum 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inum/base.rb +1 -2
- data/lib/inum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64ef408ef561c0fae95dc284ca37be3954fdddf9
|
4
|
+
data.tar.gz: 792d0291dfb155e82125ed5cfc036d188f96feba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc6e49942f236e96c8f57ee22f64a5ef06109935433073c39170a8b4b52e7d36291b77306a2423056bd36849773c0a83e78b884fcc230686787c9e8d88e1ca2
|
7
|
+
data.tar.gz: 06c4495fad29d20e8324bdd18e01d13e848e816d4e3e39c74a23479b8252b1dee4bd795e419319a946d8758b22bb97b17258a6426e32d61a89112b3f51c13757
|
data/lib/inum/base.rb
CHANGED
@@ -26,7 +26,6 @@ module Inum
|
|
26
26
|
@label = label
|
27
27
|
@value = value
|
28
28
|
|
29
|
-
@localized_enum = I18n.t(self.class.i18n_key(label))
|
30
29
|
@underscore_label = Inum::Utils::underscore(label)
|
31
30
|
end
|
32
31
|
|
@@ -81,7 +80,7 @@ module Inum
|
|
81
80
|
#
|
82
81
|
# @return [String] localized string of Enum.
|
83
82
|
def to_t
|
84
|
-
@
|
83
|
+
I18n.t(self.class.i18n_key(@label))
|
85
84
|
end
|
86
85
|
|
87
86
|
# Enum label to underscore string.
|
data/lib/inum/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alfa-jpn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|