storext 2.2.0 → 2.2.1

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: 80d98a4230700de78ec010083fb502a53c9cb9cd
4
- data.tar.gz: bb9518e63fd7681d8b6b46e9317f8271a39efd20
3
+ metadata.gz: fe05e5dbcedd664b013a9d982449c3ea4b03336c
4
+ data.tar.gz: 1d4eea9cc689fdbd52d3b2f7ca4b02decae8ade7
5
5
  SHA512:
6
- metadata.gz: 6aa6716b442fba708f71693412779a4bede8eab35aea283af194ca71cfbb8714e34fdd3af7502b988e8af8a8aacfa5896a7bf3e7d0f80b2dfb8d7972f5245475
7
- data.tar.gz: b3bc66b25ae5fa34a2aae1e6381fb4da4c8a65e7f9c42d931e2ba50f41d8fe5ef08629dcbdac5831cbf46a83a48244b4c3a852f3a7a82d4f515bc4a3b7f6eb38
6
+ metadata.gz: e47732a78a99a3e6d035c3bc3a1dfe11c29d955d5b6ec9fd7b1cd9b1c60f721e69e624276f435cefdf20168f3fcbb12ec8c3cf1187b1a498b7b57e7e045cbfaa
7
+ data.tar.gz: 4dbe2ec9b4cfdcca97eaa5e73bb77466bf5059e35f722769aa0df60aca5d2f378da71a0c60a0c988fa430186b51352001e5e2fcf28f2edb05e18d54ba8faeff2
@@ -24,7 +24,11 @@ module Storext
24
24
  def storext_define_predicater(column, attr)
25
25
  define_method "#{attr}?" do
26
26
  return false unless send(column) && send(column).has_key?(attr.to_s)
27
- !!read_store_attribute(column, attr)
27
+ if read_store_attribute(column, attr).is_a? String
28
+ !read_store_attribute(column, attr).blank?
29
+ else
30
+ !!read_store_attribute(column, attr)
31
+ end
28
32
  end
29
33
  end
30
34
 
@@ -1,3 +1,3 @@
1
1
  module Storext
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storext
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - G5
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-06 00:00:00.000000000 Z
13
+ date: 2016-08-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -125,8 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.6.4
128
+ rubygems_version: 2.5.1
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: Extends ActiveRecord::Store.store_accessor
132
132
  test_files: []
133
+ has_rdoc: