rotary 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rotary/storage/memory.rb +5 -0
- data/lib/rotary/version.rb +1 -1
- data/lib/rotary.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cdba58ff533cd3db29aea9f62ed8edc8bc12552
|
4
|
+
data.tar.gz: ca8b3103ba9c30a9e79863f9747d550e1aacd30e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26852888142ea6dc2639bcd3803c38e6a5a4f92023a77aaab5d57ecfa477eb62ef2e879976bb6b9e6e5118c97f8b5805514dee789b17228aba650660d4918333
|
7
|
+
data.tar.gz: c21725994e493e55bc4a3a66a20e1fd19ae513e3fd0fddf0ac85e66d688a1cc9c045045cdad0b1c9c8e405ad48d8924f7979c081c0b3a3da8c9a9a95699922ce
|
data/lib/rotary/version.rb
CHANGED
data/lib/rotary.rb
CHANGED
@@ -67,10 +67,10 @@ module Rotary
|
|
67
67
|
# Removes all elements from pool, which means specified by block
|
68
68
|
# argument criteria.
|
69
69
|
def clean_older_than(n)
|
70
|
-
if storage.respond_to?(:clean_older_than)
|
71
|
-
storage.clean_older_than(n)
|
70
|
+
if @storage.respond_to?(:clean_older_than)
|
71
|
+
@storage.clean_older_than(n)
|
72
72
|
else
|
73
|
-
fail "#{storage.class}#clean_where not implemented"
|
73
|
+
fail "#{@storage.class}#clean_where not implemented"
|
74
74
|
end
|
75
75
|
end
|
76
76
|
end
|