ruby-limiter 1.0.0 → 1.0.1

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: 17d71e42e079a0ce7f9b5c9a093e742976998db2
4
- data.tar.gz: 1fc5d17c9e2abf2034deebb98f8da7179bc49701
3
+ metadata.gz: c8b855660b5c5b40e96437d66444cbba63b07af6
4
+ data.tar.gz: f4486818e1c73464c3b6545ee35601282a1cb798
5
5
  SHA512:
6
- metadata.gz: '0618773b6259592f784ec8e6d982e8772984757319bba95e83a4a8a5706d5f6732f90514774783f8fec51d2a1b593e3c8f74cccbdf5d3755484227b8f0a3f376'
7
- data.tar.gz: e70732cd382c742a3f33674c2ee4392d38b322879fa8afdc21a3b9b1fb62107ced1b2fe4487a2de164c9f0d99d42540af8f133e8def0be2b0484da3597d06a68
6
+ metadata.gz: 53f3886fe4a1f71c5f7454eebfbc764b4880cca6ab1026bfadc3e2ee16709a95c5f01e4e2ff732b49b8a0332ffba06206715fda1561032d0916c47850f289f89
7
+ data.tar.gz: 4b33aeea30a63521f97adbaa290604cc176788e7a8ea4ea643a94bf08604ce779b53fcb36b9ec8f44c6a5d1d684897d1596635e21c4c3d6ee4cbdd8f3c8443a9
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.1
4
+
5
+ - BUGFIX: support arguments for throttled methods
6
+
3
7
  ## v1.0.0
4
8
 
5
9
  - initial release
@@ -6,9 +6,9 @@ module Limiter
6
6
  queue = RateQueue.new(rate, interval: interval)
7
7
 
8
8
  mixin = Module.new do
9
- define_method(method) do
9
+ define_method(method) do |*args|
10
10
  queue.shift
11
- super()
11
+ super(*args)
12
12
  end
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Limiter
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-limiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - S. Brent Faulkner