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 +4 -4
- data/lib/storext/class_methods.rb +5 -1
- data/lib/storext/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe05e5dbcedd664b013a9d982449c3ea4b03336c
|
4
|
+
data.tar.gz: 1d4eea9cc689fdbd52d3b2f7ca4b02decae8ade7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/storext/version.rb
CHANGED
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.
|
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-
|
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.
|
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:
|