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: c39cf240b52d54b8274614a38ac685b9f5d18f64
4
- data.tar.gz: 0a474486846baf018439c5bb07fd31098fecbe71
3
+ metadata.gz: 3eaefc22106ae1fb72c5baa4b8a14aea25ebbf0c
4
+ data.tar.gz: f85b25581b838bdf3dfd6ab98f9910b904a5ffef
5
5
  SHA512:
6
- metadata.gz: 9d09811a1e9bf8e03b2c4c281aa9e54d0c9363a734814419cb79af1b2a0c0abbfeab0f635f6e412e1b3cc6ccf4325c51c3cb8c226122edf92b2f1a189489b4b6
7
- data.tar.gz: 9859d95f3ba1aee5f4b2e2e376c887874a3ec6df900cbe81a374c70d63f5caad2645271ceab72d25ea3b3dfae3f4bd2bcad33835f07fafbed7063c513f4b5253
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!
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module ActiveSupport
3
- VERSION = '3.2.4'
3
+ VERSION = '3.2.5'
4
4
  end
5
5
  end
@@ -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'].raw_value.must_match(@rabbit.name)
159
- result['irish whisky'].raw_value.must_match("Jameson")
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
@@ -2,6 +2,6 @@ require 'test_helper'
2
2
 
3
3
  describe Redis::ActiveSupport::VERSION do
4
4
  it 'returns current version' do
5
- Redis::ActiveSupport::VERSION.must_equal '3.2.4'
5
+ Redis::ActiveSupport::VERSION.must_equal '3.2.5'
6
6
  end
7
7
  end
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
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-08-29 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store