redis-activesupport 3.2.4 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3eaefc22106ae1fb72c5baa4b8a14aea25ebbf0c
|
4
|
+
data.tar.gz: f85b25581b838bdf3dfd6ab98f9910b904a5ffef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f7046c4a83e15c06c50a4792b0d525f8c33600121e3012bd5b699fcad6cf60fc57f7da503913b038bbbc4f9bfd688981d00fb21b00a6d68ff2347588b39b77
|
7
|
+
data.tar.gz: 78b1e52ca36d2e61da96b579a898f7e17bd259bf0d8f01dad84e846a34d61ffbd367a4014108b7673effc20f5a45e62a9b6da55056c819db3e721e8d490c5911
|
@@ -60,6 +60,7 @@ module ActiveSupport
|
|
60
60
|
# cache.read_multi "rabbit", "white-rabbit", :raw => true
|
61
61
|
def read_multi(*names)
|
62
62
|
values = @data.mget(*names)
|
63
|
+
values.map! { |v| v.is_a?(ActiveSupport::Cache::Entry) ? v.value : v }
|
63
64
|
|
64
65
|
# Remove the options hash before mapping keys to values
|
65
66
|
names.extract_options!
|
@@ -155,8 +155,8 @@ describe ActiveSupport::Cache::RedisStore do
|
|
155
155
|
it "reads multiple keys" do
|
156
156
|
@store.write "irish whisky", "Jameson"
|
157
157
|
result = @store.read_multi "rabbit", "irish whisky"
|
158
|
-
result['rabbit'].
|
159
|
-
result['irish whisky'].
|
158
|
+
result['rabbit'].must_equal(@rabbit)
|
159
|
+
result['irish whisky'].must_equal("Jameson")
|
160
160
|
end
|
161
161
|
|
162
162
|
it "reads multiple keys and returns only the matched ones" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-store
|