rails_metadata 0.0.6 → 0.0.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: c319b4411d2b80846de558ab35065e8f320441c9
4
- data.tar.gz: b863bac4263dbfa41e0d6f151b39a5b41792ea4e
3
+ metadata.gz: 2e555667459c1dde77908f43079766db37677055
4
+ data.tar.gz: 8334c4e78f5cf5c8ccc906fc2abe9a940628e29a
5
5
  SHA512:
6
- metadata.gz: d8945946fdb36fe7d6c95927294e9a257a6d746d6e41d473a6cf5515e8b95ccd27323d593da4ce5c7a33e85e7af724568b01149ce58c83fb1ad3c99c2ddbba85
7
- data.tar.gz: 0d4492f872fc0159a85a83af8f510bfe2af99a864636b3557de81a502344730429968b5007c30719632dc48e3d5af296f9cb6942d4f9f7dd3efba06d107c3c0a
6
+ metadata.gz: 4a5d2870c2e62d923402447d9c07fcf5156d899e6662349bc1b5eba50684ae629f81f6db51929bb79075eef5547b5ffbe54cccac66174642aa4ffb3d2805817e
7
+ data.tar.gz: 36deeafffb8ef1b0aae95fbd7122cef28d1df79facc40819da5b8d4284a1c234b60ec57c9092199a415400cce678660108c4adfc5622bedb8bb347b02fd48c32
@@ -1,3 +1,3 @@
1
1
  module RailsMetadata
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -36,7 +36,7 @@ module RailsMetadata
36
36
  end
37
37
  define_method(name.to_s + '=') do |val|
38
38
  self.metadata = {} unless self.metadata.present?
39
- if val.present?
39
+ if val.present? || val == false
40
40
  self.metadata.merge!(name => typecast.call(val))
41
41
  else
42
42
  self.metadata.delete(name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_metadata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Neyer