govuk_sidekiq 0.0.3 → 0.0.4

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: ed2d26e402dbccad32e75e5ab770749f19646092
4
- data.tar.gz: c523a04e5192040ee3a312350b2d7e12998364c9
3
+ metadata.gz: fb12b700a2668dbfd07773e13a3420eb2fee4f61
4
+ data.tar.gz: 0d91b6780abdeb2dfbc56121556d59ca471bf115
5
5
  SHA512:
6
- metadata.gz: 86fee10e76943d50251970b5bb99ba4e9cd2b7d33cf3fae5c74488c56fa63d501a1cbfa2138f9c35b50a2c2232a0aaab62b0c8a9ee261a23ef631656636155e9
7
- data.tar.gz: 6d20cc3f6157d9fcdb6a27223e840638e596cf0cac1a0e3b6826a5b3655a19ffccf4084a6395ff4bb46cb436e04bd33a16a6489139b3057b45bc73540dbcae57
6
+ metadata.gz: c89561d77443b2412e86a5099067d264243baa8e81bcd7828ccd3f99b4020e251a04df6a63bc03597e6e6db67cc5864e1cce92eea8e573f50579a14817d01f6d
7
+ data.tar.gz: 45fb1d788beca7b1f619a85f99bed833a7cb868f6f0644b60a612b65e7694aba2f4c6749bad94cf9dff7a89dbbd608e19043ee9b652965feb8467b2e1fcb4783
data/README.md CHANGED
@@ -3,6 +3,22 @@
3
3
  Provides a unified set of configurations and behaviours when using Sidekiq
4
4
  in GOV.UK applications.
5
5
 
6
+ ## Usage
7
+
8
+ ### Testing
9
+
10
+ See [Sidekiq testing documentation](https://github.com/mperham/sidekiq/wiki/Testing)
11
+ on how to test Sidekiq workers.
12
+
13
+
14
+ Because of the way we use middleware, you may see errors that indicate that
15
+ your job is called with the wrong number invalid arguments. To set up testing
16
+ correctly, replace `require 'sidekiq/testing'` with:
17
+
18
+ ```ruby
19
+ require 'govuk_sidekiq/testing'
20
+ ```
21
+
6
22
  ## Technical documentation
7
23
 
8
24
  When added to a Rails application, this gem uses a railtie to inject an
@@ -0,0 +1,5 @@
1
+ require "sidekiq/testing"
2
+
3
+ Sidekiq::Testing.server_middleware do |chain|
4
+ chain.add GovukSidekiq::APIHeaders::ServerMiddleware
5
+ end
@@ -1,3 +1,3 @@
1
1
  module GovukSidekiq
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Crosby-McCullough
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -163,6 +163,7 @@ files:
163
163
  - lib/govuk_sidekiq/api_headers.rb
164
164
  - lib/govuk_sidekiq/railtie.rb
165
165
  - lib/govuk_sidekiq/sidekiq_initializer.rb
166
+ - lib/govuk_sidekiq/testing.rb
166
167
  - lib/govuk_sidekiq/version.rb
167
168
  homepage: http://github.com/alphagov/govuk_sidekiq
168
169
  licenses:
@@ -176,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
177
  requirements:
177
178
  - - ">="
178
179
  - !ruby/object:Gem::Version
179
- version: '0'
180
+ version: '2.2'
180
181
  required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  requirements:
182
183
  - - ">="