govuk_sidekiq 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/govuk_sidekiq/api_headers.rb +0 -3
- data/lib/govuk_sidekiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56054924f4361476e4bcb29b2d0011f8044a2d70ff1219893ae2379302ebf205
|
4
|
+
data.tar.gz: 46f695eb3cb5f8591d5bb63714119667c10f4cbce39ff856c42302bdf1420a9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96f130529933bd9e0b15ba0b3f397d30d431e5af6c81d617d0992c29f6e4da0dcd82e9a5dcc600b949466ee387758217c914fba9e90fb1a6574805be3f3410af
|
7
|
+
data.tar.gz: 6641da6afb6e10d8ac310ad0cf416d7b94243d68f0bc09ccfa0e5e97f042cce5095c2cd22cf0436f78a255753c3007eddc8b44b6fe065afccebd3c76065f3a27
|
@@ -10,15 +10,12 @@ module GovukSidekiq
|
|
10
10
|
class ClientMiddleware
|
11
11
|
def call(_worker_class, job, _queue, _redis_pool)
|
12
12
|
last_arg = job["args"].last
|
13
|
-
|
14
13
|
if is_header_hash(last_arg)
|
15
14
|
job["args"].pop
|
16
15
|
job["args"] << header_arguments.merge(last_arg)
|
17
16
|
else
|
18
17
|
job["args"] << header_arguments
|
19
18
|
end
|
20
|
-
Sidekiq::Context.add("govuk_request_id", job["args"].last["request_id"])
|
21
|
-
|
22
19
|
yield
|
23
20
|
end
|
24
21
|
|
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: 7.1.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gds-api-adapters
|