redis_object 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/redis_object/ext/filters.rb +5 -1
- data/lib/redis_object/indices.rb +1 -1
- data/lib/redis_object/types.rb +1 -1
- data/lib/redis_object/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTFmMDJkMzA1MjU1MDk0MDZhNTRlNmI0MGE4YjQ5NmY3MGI4NjU0Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmRmMGI2ZTZkYjJjNjI1MTk0MjZmY2Q0ODE3ZTQ1NDYwZTlmMmJjYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjUyYjVjZGRhMmJmYzkzZDMwYjlmODc1NjNhMDI2ZmY5Y2UwMmQ2Nzk4OGRl
|
10
|
+
MGNmNWIxMmM5ZmVlYTJmMjUzNDg4ZDQ3NThhMzFlMGQ2MmIzZjJlMDI2NGIy
|
11
|
+
ZTYyYWYxZWRlY2M3YjQ3YjUzMjA2MTJjMzQzMzA2MGFkM2FlYjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWEzODIzZjI0MGQwYTI5YTUzYTlmOWFjZmZmMmRlMGNlZDIyNTc5MmU3Nzcx
|
14
|
+
OThmOWNlOTk3ZjBjZGRlMDBlYjJhMDM5ZmU1YjJlMjJhNjc5YmQxNzgxNjlk
|
15
|
+
MWI4OWU4ZTQyNGRhOTBkMjMxNDJmZTk1ZTA4OWIwMTNkOTY2MjI=
|
@@ -10,10 +10,14 @@ module Seabright
|
|
10
10
|
def filtered_method_call(method,*args)
|
11
11
|
if filters = self.class.filters_for(method)
|
12
12
|
filters.each do |f|
|
13
|
+
next unless args.is_a?(Array) and !args[0].nil?
|
13
14
|
args = send(f,*args)
|
14
15
|
end
|
15
16
|
end
|
16
|
-
args
|
17
|
+
unless args.is_a?(Array)
|
18
|
+
args = [nil,nil]
|
19
|
+
end
|
20
|
+
send("unfiltered_#{method.to_s}".to_sym,*args)
|
17
21
|
end
|
18
22
|
|
19
23
|
alias_method :unfiltered_get, :get unless method_defined?(:unfiltered_get)
|
data/lib/redis_object/indices.rb
CHANGED
data/lib/redis_object/types.rb
CHANGED
@@ -18,7 +18,7 @@ module Seabright
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def type_filter_for(prefix,k)
|
21
|
-
if (fmt = self.class.field_formats[k.to_sym])
|
21
|
+
if k and (fmt = self.class.field_formats[k.to_sym]) and (sym = "#{prefix}_#{fmt}".to_sym) and respond_to?(sym)
|
22
22
|
return sym
|
23
23
|
end
|
24
24
|
nil
|
data/lib/redis_object/version.rb
CHANGED