mongo_cache_store 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/active_support/cache/mongo_cache_store/backend/base.rb +1 -1
- data/lib/active_support/cache/mongo_cache_store/backend/standard.rb +1 -0
- data/lib/active_support/cache/mongo_cache_store/backend/ttl.rb +1 -0
- data/lib/active_support/cache/mongo_cache_store.rb +1 -1
- data/lib/mongo_cache_store/version.rb +1 -1
- data/spec/active_support/cache/mongo_cache_store_spec.rb +2 -2
- metadata +2 -2
@@ -94,7 +94,7 @@ module ActiveSupport
|
|
94
94
|
def get_collection(options)
|
95
95
|
return options[:collection] if options[:collection].is_a? Mongo::Collection
|
96
96
|
|
97
|
-
@db.collection(get_collection_name(options),options[:collection_opts])
|
97
|
+
@db.collection(get_collection_name(options),options[:collection_opts] || {})
|
98
98
|
end
|
99
99
|
|
100
100
|
def safe_rescue
|
@@ -29,7 +29,7 @@ module ActiveSupport
|
|
29
29
|
end
|
30
30
|
@store.exist?("testkey").should == true
|
31
31
|
|
32
|
-
sleep 60
|
32
|
+
sleep 60
|
33
33
|
|
34
34
|
response = @store.fetch 'testkey'
|
35
35
|
response.should == "I will expire."
|
@@ -93,7 +93,7 @@ module ActiveSupport
|
|
93
93
|
end
|
94
94
|
|
95
95
|
after(:all) do
|
96
|
-
@store.clear
|
96
|
+
@store.clear.should == true
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_cache_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongo
|