hstore_attributes 1.0.2 → 1.0.3

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: 7670a1540b41cf655db5638737cb86086193661d
4
- data.tar.gz: 6cb7f874632c3d5f92b5bb47d4edfa3460a7e9b4
3
+ metadata.gz: 3c988492ec880d5015b35286f22bcc8f44e3aa93
4
+ data.tar.gz: 1aa4e76b7aa66df79312ebd98bd7114a5b88f498
5
5
  SHA512:
6
- metadata.gz: 3a7dd48f1c828733a7b42947d1231c5fb3f2546976923d7b179b0120f858232b28bfe970f4d1e87ba04bb9c4edd26fbfdcc3a0a774b1183ba7fb8059b1709425
7
- data.tar.gz: 6d0c78db0d3d51ef6b8cd59495f099593d63ab2ca56e0b79bc23bd096d5d9be137cc6172dda79740765ddbb5d5badb617e30b11817d24d5a60d0d882eed3e78f
6
+ metadata.gz: 9b87a4d3c5d8b317621f86c00ba9aa222535fef543234dbce30705c95e9f4d7fab6d8dc8712bb9fd1e7d51d6cdcb1707cfdc6bd750d56c6a0db17f3e39eb25f7
7
+ data.tar.gz: 3f2273b97a4dd116192a60d9865667bd36dbd17b0b296e341fc2952a6477bc999f65d5322151ce601dfd7e82ce099abe7c6ca61dfcdba2f5ff7643b768dcc13d
@@ -1,3 +1,3 @@
1
1
  module HstoreAttributes
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -2,7 +2,7 @@ require "hstore_attributes/version"
2
2
 
3
3
  module HstoreAttributes
4
4
  def self.convert(value, options = {})
5
- if options[:allow_nil] == true and value.nil?
5
+ if options[:allow_nil] and value.nil?
6
6
  nil
7
7
  elsif options[:type_cast]
8
8
  options[:type_cast].to_proc.call(value)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hstore_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Kuźma