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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e85fa11711aaad4a8bcf34825a90b0b18988be9
4
- data.tar.gz: 09c77574e28dc21544ea6da5cca756aa4e9dca09
3
+ metadata.gz: 0cdba58ff533cd3db29aea9f62ed8edc8bc12552
4
+ data.tar.gz: ca8b3103ba9c30a9e79863f9747d550e1aacd30e
5
5
  SHA512:
6
- metadata.gz: 9ad03e08f14b592110c2e6fe5977f5aef5d054b4478fa5748a8cfd6abf47ccf3f924446279b2cd59d71d0381a8c99cadfc1fe3b6395ac3202717439f654d617e
7
- data.tar.gz: ed2dbb9e42f3a1392335e4e50795e3786d5c1b1b3e651e0291d9330855b399aeca4bfbc2e82ba31459a19822e2e6affc9028483202f617859d307f075bb1480e
6
+ metadata.gz: 26852888142ea6dc2639bcd3803c38e6a5a4f92023a77aaab5d57ecfa477eb62ef2e879976bb6b9e6e5118c97f8b5805514dee789b17228aba650660d4918333
7
+ data.tar.gz: c21725994e493e55bc4a3a66a20e1fd19ae513e3fd0fddf0ac85e66d688a1cc9c045045cdad0b1c9c8e405ad48d8924f7979c081c0b3a3da8c9a9a95699922ce
@@ -22,6 +22,11 @@ module Rotary
22
22
  def clear
23
23
  @storage = []
24
24
  end
25
+
26
+ # just to make it compatible
27
+ def self.default_connection
28
+ self
29
+ end
25
30
  end
26
31
  end
27
32
  end
@@ -1,4 +1,4 @@
1
1
  module Rotary
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
4
4
 
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Redozubov