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 +4 -4
- data/lib/labkit/covered_experience/experience.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 021f710ca320399402124ec377576c549cb5e323f59da70babd4e70f576cf12f
|
4
|
+
data.tar.gz: ef32fd2ac8e127847a7124f73155b8fc0d7397d2d07a563dde469d0f3c08b58d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|