gitlab-labkit 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +7 -0
- data/gitlab-labkit.gemspec +1 -1
- data/lib/labkit/middleware/sidekiq/client.rb +1 -1
- data/lib/labkit/middleware/sidekiq/server.rb +3 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c6a4f92530f7662034e9a67cda9b6f1587cce729502a088ef9b6777659b0bdc
|
4
|
+
data.tar.gz: 1f17a19f8e2f7a0f052c4474caaaf0fd1d3a291a77de67b4184000fb12a599de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a50b5944898571c6fa9038eed5d35ec3d560c684c7363e1779aa8b4ec1363e8533e51667ae868b961562a3d3195cc9ac1f8b27e6e76204290439a735b61f5bc
|
7
|
+
data.tar.gz: d96aeafefa46bb244fc7371165fed6f91e47326d60463f8d25685d50081b63a8651c2b5dee7656094d5fb87085a58dd44459aafc64621b32a083dde3eaf7180e
|
data/.gitlab-ci.yml
CHANGED
data/gitlab-labkit.gemspec
CHANGED
@@ -35,6 +35,6 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency "rspec-parameterized", "~> 0.4"
|
36
36
|
spec.add_development_dependency "rubocop", "~> 0.65.0"
|
37
37
|
spec.add_development_dependency "rubocop-rspec", "~> 1.22.1"
|
38
|
-
spec.add_development_dependency "rufo", "
|
38
|
+
spec.add_development_dependency "rufo", "0.9.0"
|
39
39
|
spec.add_development_dependency "sidekiq", "~> 5.2.7"
|
40
40
|
end
|
@@ -8,7 +8,7 @@ module Labkit
|
|
8
8
|
# be reinstantiated by Sidekiq-server when running the job.
|
9
9
|
class Client
|
10
10
|
def call(_worker_class, job, _queue, _redis_pool)
|
11
|
-
Labkit::Context.with_context
|
11
|
+
Labkit::Context.with_context do |context|
|
12
12
|
job.merge!(context.to_h)
|
13
13
|
|
14
14
|
yield
|
@@ -7,7 +7,9 @@ module Labkit
|
|
7
7
|
# reinstantiate a context in which the job will run.
|
8
8
|
class Server
|
9
9
|
def call(_worker_class, job, _queue)
|
10
|
-
Labkit::Context.
|
10
|
+
data = job.merge(Labkit::Context.log_key(:caller_id) => job["class"])
|
11
|
+
|
12
|
+
Labkit::Context.with_context(data) do |_context|
|
11
13
|
yield
|
12
14
|
end
|
13
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-labkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Newdigate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -228,16 +228,16 @@ dependencies:
|
|
228
228
|
name: rufo
|
229
229
|
requirement: !ruby/object:Gem::Requirement
|
230
230
|
requirements:
|
231
|
-
- -
|
231
|
+
- - '='
|
232
232
|
- !ruby/object:Gem::Version
|
233
|
-
version:
|
233
|
+
version: 0.9.0
|
234
234
|
type: :development
|
235
235
|
prerelease: false
|
236
236
|
version_requirements: !ruby/object:Gem::Requirement
|
237
237
|
requirements:
|
238
|
-
- -
|
238
|
+
- - '='
|
239
239
|
- !ruby/object:Gem::Version
|
240
|
-
version:
|
240
|
+
version: 0.9.0
|
241
241
|
- !ruby/object:Gem::Dependency
|
242
242
|
name: sidekiq
|
243
243
|
requirement: !ruby/object:Gem::Requirement
|