sidekiq-custom-queue 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: bb900d99cf706608d4e9e0fc86caf9c0c6ef8969
4
- data.tar.gz: 7c7cdc5ab972858ba925115f59c8dba68687f455
3
+ metadata.gz: c99eb04db6598c9b32f16a6f76561e9f0c020e03
4
+ data.tar.gz: 54c5be83200168a196f2b3002dc859e97e85df7e
5
5
  SHA512:
6
- metadata.gz: 8342f61e31b41ab0c4e97cd1a78ed19b6d57fe9dfbf99fa8bb238f01035c9cc330201439ca3708de85adaeaa22ae0c4bf25ec44486c15868a69d1c84736ba54a
7
- data.tar.gz: 9bc6348de8ba0b96ddd999899033db6c84715ba8e44f1729886f243687880f03ee405e059277166da08d8205ed9b73cd9ffe7997b20d35ca540efe484d46b733
6
+ metadata.gz: 5b5486d1e662bd6800458f1509d215c669d3ab9056aee08582abc3849b710fbfe067773b9e8a6aba3ed88b35c5dd5d1dcaa5f9d3aad9c81251858d31a69f425e
7
+ data.tar.gz: 82e382372365bf1c44af827386a5fa4989df27e74d3964f36055707c11d1795e58ba0b5e77007d28936e3f2593107e9674002e3df27f8daff7267362eda1f065
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Sidekiq Custom Queue
2
2
 
3
3
  [![Build Status](https://travis-ci.org/evansagge/sidekiq-custom-queue.svg)](https://travis-ci.org/evansagge/sidekiq-custom-queue)
4
+ [![Code Climate](https://codeclimate.com/github/evansagge/sidekiq-custom-queue/badges/gpa.svg)](https://codeclimate.com/github/evansagge/sidekiq-custom-queue)
5
+ [![Test Coverage](https://codeclimate.com/github/evansagge/sidekiq-custom-queue/badges/coverage.svg)](https://codeclimate.com/github/evansagge/sidekiq-custom-queue/coverage)
4
6
 
5
7
  A Sidekiq plugin for allowing workers to define custom/dynamic queues based on the queued message.
6
8
 
@@ -26,7 +28,7 @@ Define a `custom_queue` class method in your worker class that can accept a sing
26
28
  as described in https://github.com/mperham/sidekiq/wiki/Job-Format. Define how to use the whole message or parts of to create the name
27
29
  for your custom queue:
28
30
 
29
- ```
31
+ ```ruby
30
32
  class WorkerWithCustomQueue
31
33
  include Sidekiq::Worker
32
34
 
@@ -43,7 +45,7 @@ end
43
45
  When you enqueue a job for this worker using `.perform_async` or `.perform_in`, it will generate the queue name from the `.custom_queue`
44
46
  method and put that job in this queue:
45
47
 
46
- ```
48
+ ```ruby
47
49
  WorkerWithCustomQueue.perform_async('xyz', 1) # gets enqueued in the 'xyz_queue' instead of the default queue
48
50
  ```
49
51
 
@@ -58,7 +60,7 @@ which will create a git tag for the version, push git commits and tags, and push
58
60
 
59
61
  ## Contributing
60
62
 
61
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sidekiq-custom-queue.
63
+ Bug reports and pull requests are welcome on GitHub at https://github.com/evansagge/sidekiq-custom-queue.
62
64
  This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
63
65
  [Contributor Covenant](contributor-covenant.org) code of conduct.
64
66
 
@@ -12,3 +12,9 @@ Sidekiq.configure_client do |config|
12
12
  chain.add Sidekiq::CustomQueue::ClientMiddleware
13
13
  end
14
14
  end
15
+
16
+ Sidekiq.configure_server do |config|
17
+ config.client_middleware do |chain|
18
+ chain.add Sidekiq::CustomQueue::ClientMiddleware
19
+ end
20
+ end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module CustomQueue
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-custom-queue
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
  - Evan Sagge
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-19 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq