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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96e58c297e4b4b8f29467edac27487b89407c59dd072a7c736d2dfc3f4573c3f
4
- data.tar.gz: 3b01d2e4b5c479b049e46a6bb0097bdf0e181ad914f33e54c953c33719ad3864
3
+ metadata.gz: 4c6a4f92530f7662034e9a67cda9b6f1587cce729502a088ef9b6777659b0bdc
4
+ data.tar.gz: 1f17a19f8e2f7a0f052c4474caaaf0fd1d3a291a77de67b4184000fb12a599de
5
5
  SHA512:
6
- metadata.gz: 654848ccf3830ed19d6e1561653d6a984cf17764dd53854686882805cda341b6aeef3b57774cae56ef0bcfcdc6e25cb4f4d29caf3811708a74fe733023a098cb
7
- data.tar.gz: 1a4f9c0582ae5d184318b1c28abbdabf807bbccba0e32cab23861eef84835655640dad32321349beeb5d7fc92a7b2b0c4f14d6a3414b62355c57d0141c783534
6
+ metadata.gz: 2a50b5944898571c6fa9038eed5d35ec3d560c684c7363e1779aa8b4ec1363e8533e51667ae868b961562a3d3195cc9ac1f8b27e6e76204290439a735b61f5bc
7
+ data.tar.gz: d96aeafefa46bb244fc7371165fed6f91e47326d60463f8d25685d50081b63a8651c2b5dee7656094d5fb87085a58dd44459aafc64621b32a083dde3eaf7180e
@@ -23,3 +23,10 @@ deploy:
23
23
  - tools/deploy-rubygem.sh
24
24
  only:
25
25
  - tags
26
+
27
+ release:
28
+ stage: deploy
29
+ script:
30
+ - tools/update-changelog.rb "${CI_COMMIT_TAG}"
31
+ only:
32
+ - tags
@@ -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", "~> 0.6"
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(caller_id: job["class"]) do |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.with_context(job) do |_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.0
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-13 00:00:00.000000000 Z
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: '0.6'
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: '0.6'
240
+ version: 0.9.0
241
241
  - !ruby/object:Gem::Dependency
242
242
  name: sidekiq
243
243
  requirement: !ruby/object:Gem::Requirement