redis_object 1.3.8 → 1.3.9

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
- NGI2MTI4YzhkODE3NmYzMzM3MjIzNmY3ZDZhMTVjMjkwZTQ0Y2E4Zg==
4
+ NjU5Zjg5MTc4ZDZmMDkzOTNlZDQwMDZhNTgzMDA1NmFhODliNzVkNA==
5
5
  data.tar.gz: !binary |-
6
- NGY2NjMxOTJiYTQzZmRhYWI4MzRmNmMxNjUwMGVjNzM2MDU4ZmJhZg==
6
+ YWYwYzMzMTEzNzM0MTRhOGQ4NzcwZjUwNmIzNDA3YzRmMmEyYjA5OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGZiODZhZjZiNzRjNmZkNDhhYTE1YjYwMjNkYjkzYzM0ZTU5ZDJkZjhiYjNm
10
- YWFlMGE4Y2Y1YTEyYzFmZTZmYzAxY2RhNzQ4MTExNTZiMTM0YzFjNmE1MGMw
11
- MTkxOTRjMDI1ODM0Y2NmZjcyOWU3N2E1OTJkYjVkZGEyOGQyYWQ=
9
+ MTRkNTAzMDQ0N2U1OTJmNjhmMWQ1MzBiZWE3MmQ1NDE3NGQ4Y2QwMzcwYjU4
10
+ NDhlMWRiOTc5MGJkMjczN2VmYjFhMTNiNjhjY2RjY2Y3OWJkNThhMzQ0NTEy
11
+ MWI0NTNkMmViMzhiZDk0ODg0MTM2N2E0ZWRiMTM1Yzk0OGNkODI=
12
12
  data.tar.gz: !binary |-
13
- MGM0NDZjODBlZDViMDMyNDFhMGU2MGVhZDU3NzM3MjZmMDEyNzM2OThjYjgw
14
- MzYxMGIwNTI3MjY2MTIzMDA3NDFmODBlYWRlMjQ1ODgwODI0NTJhYzYxMTJm
15
- MDQyZjVlMWE4MGIzYzEzNDcwYjZmMDc5YjViOWI4MWNlZTBiMTU=
13
+ NDczODgwOGE4NjFlMDlhMWI1YzYwM2ZlN2NlNTk5MzkwYzhmZmVlZTc0ZTNm
14
+ MmNlNDNlNTJiNGQzYWZmNzRlZjlhMGU4NThhMjViYWM3OWRkYmNiYTU2YWRk
15
+ YWJhZDllNzg0ZGRmYTU3MzliMzI0MzljNTU3N2VhZmJlMDVlMTk=
@@ -2,25 +2,25 @@ module Seabright
2
2
  module Keys
3
3
 
4
4
  def key(ident = id)
5
- "#{self.class.cname}:#{ident.gsub(/^.*:/,'')}"
5
+ "#{self.class.cname}:#{ident.gsub(/^.*:/,'').gsub(/_h$/,'')}"
6
6
  end
7
7
 
8
8
  def reserve_key(ident = id)
9
9
  "#{key(ident)}_reserve"
10
10
  end
11
11
 
12
- def hkey(ident = nil)
13
- "#{key}_h"
12
+ def hkey(ident = id)
13
+ "#{key(ident)}_h"
14
14
  end
15
15
 
16
- def ref_field_key(ident = nil)
17
- "#{key}_ref_fields"
16
+ def ref_field_key(ident = id)
17
+ "#{key(ident)}_ref_fields"
18
18
  end
19
19
 
20
20
  module ClassMethods
21
21
 
22
22
  def key(ident=nil)
23
- "#{cname}#{ident ? ":#{ident.gsub(/^.*:/,'')}" : ""}"
23
+ "#{cname}#{ident ? ":#{ident.gsub(/^.*:/,'').gsub(/_h$/,'')}" : ""}"
24
24
  end
25
25
 
26
26
  def reserve_key(ident=nil)
@@ -1,5 +1,5 @@
1
1
  module Seabright
2
2
  class RedisObject
3
- VERSION = "1.3.8"
3
+ VERSION = "1.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bragg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-23 00:00:00.000000000 Z
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: utf8_utils