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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzRiZWQzOTg0ZjYxMjQxYTNlNTU3ZTE2NWE0MTZmY2I0NzU5YjA3Nw==
4
+ ZTFmMDJkMzA1MjU1MDk0MDZhNTRlNmI0MGE4YjQ5NmY3MGI4NjU0Mw==
5
5
  data.tar.gz: !binary |-
6
- NDFkOGZhNmFhODNjM2E1YTg5OWVlMDdhNzY0NDVmZTY2YmUxZWVjMw==
6
+ ZmRmMGI2ZTZkYjJjNjI1MTk0MjZmY2Q0ODE3ZTQ1NDYwZTlmMmJjYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWM2MjdiZjg4YWRiZTUwYmQ5ZGFkZjk4YzlhYmQxZjMyMzVjODYwZDBiODRm
10
- YjdhYTk3Y2E2Zjk5OGNhZmUzYzhmYmE5ZWUyOGM2NzIyZWY5NTRmMzBhOWU1
11
- MDg1N2VjMzcyNmZiNzUyZWFhNTA4N2NmZDVlZThhODBiMmU1ZTI=
9
+ ZjUyYjVjZGRhMmJmYzkzZDMwYjlmODc1NjNhMDI2ZmY5Y2UwMmQ2Nzk4OGRl
10
+ MGNmNWIxMmM5ZmVlYTJmMjUzNDg4ZDQ3NThhMzFlMGQ2MmIzZjJlMDI2NGIy
11
+ ZTYyYWYxZWRlY2M3YjQ3YjUzMjA2MTJjMzQzMzA2MGFkM2FlYjk=
12
12
  data.tar.gz: !binary |-
13
- NGJhMjM0M2Y3NGQwMDY5NWNkOGEyNjI4NjgxZmQzNWY1OTUyNWMxMmY4NmI0
14
- ZDYzYjMxNjFhOGI0MzE4OGI2MzU0YjU0NWE5YzJlZjAzZmE4ZjdmZTY1OWFj
15
- MWM1MzhlMGM4NDNjM2IxMWE4ODliYWU4NTY1YTNhN2JhZTc4ZTE=
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 ? send("unfiltered_#{method.to_s}".to_sym,*args) : [nil,nil]
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)
@@ -83,7 +83,7 @@ module Seabright
83
83
  end
84
84
 
85
85
  def has_sort_index?(k)
86
- sort_indices.include?(k.to_sym)
86
+ k and sort_indices.include?(k.to_sym)
87
87
  end
88
88
 
89
89
  def latest
@@ -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]) && (sym = "#{prefix}_#{fmt}".to_sym) && respond_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
@@ -1,5 +1,5 @@
1
1
  module Seabright
2
2
  class RedisObject
3
- VERSION = "1.3.5"
3
+ VERSION = "1.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bragg