cache_method 0.1.1 → 0.1.2

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.
@@ -26,7 +26,11 @@ module CacheMethod
26
26
  # Example:
27
27
  # CacheMethod.config.storage = Memcached.new '127.0.0.1:11211'
28
28
  def storage=(raw_client)
29
- @storage = ::Cache.new raw_client
29
+ if raw_client.is_a?(::Cache)
30
+ @storage = raw_client
31
+ else
32
+ @storage = ::Cache.new raw_client
33
+ end
30
34
  end
31
35
 
32
36
  def storage #:nodoc:
@@ -1,3 +1,3 @@
1
1
  module CacheMethod
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cache_method
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-22 00:00:00 -06:00
18
+ date: 2011-02-23 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency