gitlab-labkit 0.41.1 → 0.41.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
  SHA256:
3
- metadata.gz: 0d9f3f7db908df4f839a96f74ce39650dad4a132e5b72e3ac4d7fb1358bc48f1
4
- data.tar.gz: 125b63a4f1716bfbb8dca8ab986c5f824dd2a56f8df46079041c6c62f5e385e5
3
+ metadata.gz: 021f710ca320399402124ec377576c549cb5e323f59da70babd4e70f576cf12f
4
+ data.tar.gz: ef32fd2ac8e127847a7124f73155b8fc0d7397d2d07a563dde469d0f3c08b58d
5
5
  SHA512:
6
- metadata.gz: 92907d96e457abebe07567df0506f80c585f159ead4b78b6bdf8c57b3eb82d19c7700b88d2733415dad5c0d3bba792c23ae9b1e2281df9fef6ec44b7069d453c
7
- data.tar.gz: 678ab5ad3290e93ff0682ef1f5f08681ea85e01c65919c3c16f21c95949065fa70c20507499b20c2c72f1a856838650fe79963533b529a463d9fc5a6f99a3bfc
6
+ metadata.gz: d6fa54d12f6fc16838d116316ca612ec5bc243e282b5b24ffca56547f9a4192e2ae59db05499cf18d4bb2d2f97c4295bb424dffadaa47f760c3614f8f6099e17
7
+ data.tar.gz: 6ed7ef8bc8a7fa9cfe212ef1329c4dd86ec5613db5e6b80b42cc8e432ba49f10b6af200fdd10a46fd0e63198be4fd061a3555627002de158950adf1a2060ae47
@@ -92,7 +92,7 @@ module Labkit
92
92
  # @param extra [Hash] Additional data to include in the log event
93
93
  # @return [self]
94
94
  def checkpoint(**extra)
95
- return unless ensure_started!
95
+ return self unless ensure_started!
96
96
 
97
97
  @checkpoint_time = Time.now.utc
98
98
  checkpoint_counter.increment(checkpoint: "intermediate", **base_labels)
@@ -106,7 +106,7 @@ module Labkit
106
106
  # @yield [self] When a block is provided, the experience will be completed automatically.
107
107
  # @param extra [Hash] Additional data to include in the log
108
108
  def resume(**extra, &)
109
- return unless ensure_started!
109
+ return self unless ensure_started!
110
110
 
111
111
  checkpoint(checkpoint_action: 'resume', **extra)
112
112
 
@@ -120,8 +120,7 @@ module Labkit
120
120
  # @param extra [Hash] Additional data to include in the log event
121
121
  # @return [self]
122
122
  def complete(**extra)
123
- return unless ensure_started!
124
- return unless ensure_incomplete!
123
+ return self unless ensure_started! && ensure_incomplete!
125
124
 
126
125
  begin
127
126
  @end_time = Time.now.utc
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-labkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.1
4
+ version: 0.41.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate