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 +8 -8
- data/lib/redis_object/keys.rb +6 -6
- data/lib/redis_object/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjU5Zjg5MTc4ZDZmMDkzOTNlZDQwMDZhNTgzMDA1NmFhODliNzVkNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWYwYzMzMTEzNzM0MTRhOGQ4NzcwZjUwNmIzNDA3YzRmMmEyYjA5OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTRkNTAzMDQ0N2U1OTJmNjhmMWQ1MzBiZWE3MmQ1NDE3NGQ4Y2QwMzcwYjU4
|
10
|
+
NDhlMWRiOTc5MGJkMjczN2VmYjFhMTNiNjhjY2RjY2Y3OWJkNThhMzQ0NTEy
|
11
|
+
MWI0NTNkMmViMzhiZDk0ODg0MTM2N2E0ZWRiMTM1Yzk0OGNkODI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDczODgwOGE4NjFlMDlhMWI1YzYwM2ZlN2NlNTk5MzkwYzhmZmVlZTc0ZTNm
|
14
|
+
MmNlNDNlNTJiNGQzYWZmNzRlZjlhMGU4NThhMjViYWM3OWRkYmNiYTU2YWRk
|
15
|
+
YWJhZDllNzg0ZGRmYTU3MzliMzI0MzljNTU3N2VhZmJlMDVlMTk=
|
data/lib/redis_object/keys.rb
CHANGED
@@ -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 =
|
13
|
-
"#{key}_h"
|
12
|
+
def hkey(ident = id)
|
13
|
+
"#{key(ident)}_h"
|
14
14
|
end
|
15
15
|
|
16
|
-
def ref_field_key(ident =
|
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)
|
data/lib/redis_object/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: utf8_utils
|