leakybucket 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/leakybucket/bucket.rb +1 -1
- data/lib/leakybucket/version.rb +1 -1
- 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: 38f3b52d2d9d4135adced03cc9982cdba36340b5
|
4
|
+
data.tar.gz: aa06dab0d4337480ce1b0d3e1d52a55040d7ff6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4c7f97264d5918c7bfb2f171f2d4d7b03c0ca7ca9f825b34f6ef4c35d21f43d7415a5a000bba748940047d3b1b5b1a18449b09bdf3ca43126e14fbd9642fde7
|
7
|
+
data.tar.gz: 5b04b79f7501f3b760416649bd9859e9574347da2cfe8de54014c4f8f8949adddd1a213b56800884d1cb2e8ca23ee6f5cb51f93502c15ce3bc6ab4eb16a5d186
|
data/Gemfile.lock
CHANGED
data/lib/leakybucket/bucket.rb
CHANGED
@@ -3,7 +3,7 @@ class Leakybucket::Bucket
|
|
3
3
|
attr_accessor :limit, :value, :leaking_callback, :key
|
4
4
|
|
5
5
|
def initialize(options = {}, key = '')
|
6
|
-
self.limit = default_options.merge(options)[:limit]
|
6
|
+
self.limit = default_options.merge(options)[:limit].to_i
|
7
7
|
self.value = self.limit
|
8
8
|
self.key = key
|
9
9
|
end
|
data/lib/leakybucket/version.rb
CHANGED