acts_as_enum 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG +5 -1
  2. data/VERSION +1 -1
  3. data/lib/acts_as_enum.rb +1 -1
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
1
  0.1.0
2
+ First commit
2
3
 
3
4
  0.1.1
4
- Comment the alias method enum_attr
5
+ Comment the alias method enum_attr
6
+
7
+ 0.1.2
8
+ Fixed a bug
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/lib/acts_as_enum.rb CHANGED
@@ -57,7 +57,7 @@ module ActsAsEnum
57
57
 
58
58
  class_eval(%Q{
59
59
  def #{method_name}?
60
- #{attr} == #{attr_value}
60
+ #{attr}.to_s == #{attr_value}.to_s
61
61
  end
62
62
  })
63
63
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: acts_as_enum
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - LiangWenKe
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-02 00:00:00 +08:00
13
+ date: 2011-04-08 00:00:00 +08:00
14
14
  default_executable:
15
15
  dependencies: []
16
16