inum 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/inum/base.rb +1 -1
- data/lib/inum/version.rb +1 -1
- data/spec/inum/base_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2444048eeca560efb532eaa19664c90b7d2d04a7
|
4
|
+
data.tar.gz: 54da67d9bda64b6f6f27e39daee963dc32f75df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daba5f2276fe14a2d9690fbdb7f46b50b4c13b3701d9bef80148bdfeaa1048f6d213859f9d461ded0bf8ec407656c3378c208c6df4298cfbb821f21f2ec18385
|
7
|
+
data.tar.gz: 9b54db93b5e6f141fbe6de234f40feb5647cce4aeeba79072c3c8e0e00bdf0ea45027debd7ab790466becd8f74260e09ff9b636a9f451b9ac74f4ddd72df9e4c
|
data/README.md
CHANGED
data/lib/inum/base.rb
CHANGED
@@ -178,7 +178,7 @@ module Inum
|
|
178
178
|
# @return [String] key for I18n.t method.
|
179
179
|
# @abstract If change key from the default.
|
180
180
|
def self.i18n_key(label)
|
181
|
-
Inum::Utils::underscore("#{self.
|
181
|
+
Inum::Utils::underscore("#{self.name}::#{label}")
|
182
182
|
end
|
183
183
|
|
184
184
|
# call after inherited.
|
data/lib/inum/version.rb
CHANGED
data/spec/inum/base_spec.rb
CHANGED
@@ -54,9 +54,9 @@ describe Inum::Base do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
it 'i18n.t called when call define_enum.' do
|
57
|
-
I18n.should_receive(:t).with('
|
57
|
+
I18n.should_receive(:t).with('hoge.redbull')
|
58
58
|
|
59
|
-
|
59
|
+
class Hoge < Inum::Base
|
60
60
|
define_enum :REDBULL
|
61
61
|
end
|
62
62
|
end
|