sidekiq-dynamic-throttle 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e6b2133bce30fa72f42ff1da1ed1cd411133ecd
4
- data.tar.gz: 527f40097dd9d5efa61ce788fdc1cdfac5d546be
3
+ metadata.gz: 4a53af56231d5cbef01fa0ee28defb3f86b99f4a
4
+ data.tar.gz: cf89c7f17aa6b9430815216b663aabf48a1c6da4
5
5
  SHA512:
6
- metadata.gz: 7d6267cf3a02690234c246371b5164dbece349eb8f83bb7d20cd4903801976b4be09635c0e7adc202dcedbc1c444ae3fd5cfcd604d6f937425ba86a9d1647577
7
- data.tar.gz: 65ed36c1ca23a384e22043917b5abcc7aee79fdb7e27a9cffbdd26c4ccc3382504656d22e65ebc215103e4af833f7bc169de9500e19d1691404c0ca54813731e
6
+ metadata.gz: c847e64e4de557190398b90415426adcea30e83baae87dc8f2bbd05af913b6598c6ca7aa6461c806af22a81006f6b18a52202810fa1120e6533cbdc5c6060e0f
7
+ data.tar.gz: 46059442ab3c65d9ae0ca61aca8c1612749d402e5f94fda9378687a60c476ddb8c3950f727fac0ab93153d5a2b2b7921259468a7b60cfa2e7f55c31a2484fc77
@@ -1,3 +1,7 @@
1
+ ## 0.1.2 (Jan 9, 2015)
2
+ * [bobbrez] Fix wrong library require statments
3
+ * [bobbrez] Update Fetcher contract to take a Throttler
4
+
1
5
  ## 0.1.1 (Jan 8, 2015)
2
6
 
3
7
  * [bobbrez] Add module for convience adding throttles
@@ -1,5 +1,5 @@
1
- require 'sidekiq-rate-limiter/version'
2
- require 'sidekiq-rate-limiter/fetch'
1
+ require 'sidekiq-dynamic-throttle/version'
2
+ require 'sidekiq-dynamic-throttle/fetch'
3
3
 
4
4
  Sidekiq.configure_server do |config|
5
5
  Sidekiq.options[:fetch] = Sidekiq::DynamicThrottle::Fetch
@@ -1,7 +1,8 @@
1
1
  module Sidekiq::DynamicThrottle::Throttler
2
2
  module ClassMethods
3
- def sidekiq_throttle_queue(*queues)
4
- Sidekiq::DynamicThrottle.register_throttle self, queues
3
+ def sidekiq_throttle(queue: queue, throttler: nil, **opts)
4
+ throttler ||= self
5
+ Sidekiq::DynamicThrottle.register_throttle throttler, queue
5
6
  end
6
7
  end
7
8
 
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module DynamicThrottle
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-dynamic-throttle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Breznak