enumerize 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## 0.1.1 (March 6, 2012) ##
2
+
3
+ ### bug fix
4
+ * I18n regression: Multiple calls to value #text return different results (by [@cgunther](https://github.com/cgunther) and [@lest](https://github.com/lest))
5
+
1
6
  ## 0.1.0 (March 5, 2012) ##
2
7
 
3
8
  ### enhancements
@@ -9,7 +9,7 @@ module Enumerize
9
9
  end
10
10
 
11
11
  def text
12
- I18n.t(i18n_keys.shift, :default => i18n_keys)
12
+ I18n.t(i18n_keys[0], :default => i18n_keys[1..-1])
13
13
  end
14
14
 
15
15
  def method_missing(method, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module Enumerize
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -26,6 +26,7 @@ describe Enumerize::Base do
26
26
  object.foo = :a
27
27
  object.foo.text.must_equal 'a text'
28
28
  object.foo_text.must_equal 'a text'
29
+ object.foo_text.must_equal 'a text'
29
30
  end
30
31
  end
31
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enumerize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-05 00:00:00.000000000 Z
12
+ date: 2012-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &16305120 !ruby/object:Gem::Requirement
16
+ requirement: &14589640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16305120
24
+ version_requirements: *14589640
25
25
  description: Enumerated attributes with I18n and ActiveRecord/Mongoid support
26
26
  email: info@twinslash.com
27
27
  executables: []
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  segments:
71
71
  - 0
72
- hash: 2845760837135079832
72
+ hash: 25298246185228879
73
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: 2845760837135079832
81
+ hash: 25298246185228879
82
82
  requirements: []
83
83
  rubyforge_project:
84
84
  rubygems_version: 1.8.11