aukan-bitmask 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/lib/bitmask_attribute.rb +1 -1
  3. metadata +3 -3
@@ -11,3 +11,7 @@
11
11
  === 0.0.4 2012-11-27
12
12
 
13
13
  * Fix: When used on ActiveRecord the attribute_name was not being updated.
14
+
15
+ === 0.0.5 2012-11-27
16
+
17
+ * Fix: When used on ActiveRecord, the bitmask value was not the same as the attribute.
@@ -18,7 +18,7 @@ module BitmaskAttribute
18
18
  def #{options[:bitmask_object]}
19
19
  @_#{options[:bitmask_object]} ||= Bitmask.new({
20
20
  :bit_ids => #{options[:bit_ids].inspect},
21
- :value => @#{attribute_name},
21
+ :value => self.#{attribute_name},
22
22
  :after_change => Proc.new { |bitmask|
23
23
  self.#{attribute_name} = bitmask.value
24
24
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aukan-bitmask
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pablo Gonzalez