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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e237a606746fc504d42a6cd7504ebab7544054d
4
- data.tar.gz: 88cc594799073c0144eaf346637ec92aacca4039
3
+ metadata.gz: 2444048eeca560efb532eaa19664c90b7d2d04a7
4
+ data.tar.gz: 54da67d9bda64b6f6f27e39daee963dc32f75df1
5
5
  SHA512:
6
- metadata.gz: ebc8d56441a43ddd18cc53a01866e16bc0d52f8d33fe5c6ef5092c3db33a63cbc3633ee4edc4fc0ae2376f73df6c952537354440af12ee346c6edb03b84a1588
7
- data.tar.gz: 42f2a319248fa1fd95c4454ee202a2ec0af7e4e400be627ddcc728fd326fdd6638a379acf032be58923db7c1f84be6a47214a6e948e05e8b6aef1d97eaed1360
6
+ metadata.gz: daba5f2276fe14a2d9690fbdb7f46b50b4c13b3701d9bef80148bdfeaa1048f6d213859f9d461ded0bf8ec407656c3378c208c6df4298cfbb821f21f2ec18385
7
+ data.tar.gz: 9b54db93b5e6f141fbe6de234f40feb5647cce4aeeba79072c3c8e0e00bdf0ea45027debd7ab790466becd8f74260e09ff9b636a9f451b9ac74f4ddd72df9e4c
data/README.md CHANGED
@@ -102,7 +102,7 @@ If change default, Override i18n_key class method.
102
102
  ``` ruby
103
103
  # default i18n_key.
104
104
  def self.i18n_key(label)
105
- Inum::Utils::underscore("#{self.class.name}::#{label}")
105
+ Inum::Utils::underscore("#{self.name}::#{label}")
106
106
  end
107
107
  ```
108
108
 
@@ -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.class.name}::#{label}")
181
+ Inum::Utils::underscore("#{self.name}::#{label}")
182
182
  end
183
183
 
184
184
  # call after inherited.
@@ -1,3 +1,3 @@
1
1
  module Inum
2
- VERSION = "1.3.6"
2
+ VERSION = "1.3.7"
3
3
  end
@@ -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('class.redbull')
57
+ I18n.should_receive(:t).with('hoge.redbull')
58
58
 
59
- Class.new(Inum::Base) do
59
+ class Hoge < Inum::Base
60
60
  define_enum :REDBULL
61
61
  end
62
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - alfa-jpn