step-track 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/step_track.rb +2 -2
- data/lib/step_track/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e56d1d137db8def06b9678b996438af2c7ab108
|
4
|
+
data.tar.gz: fde8105ca65551827db581c0932deb1b02c5d461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01eda725b56711d67460b26042816570ca8f9eccd74b114c9acd79d05a5a55b3a534d7858a52c9ab8f419a9cbe8219cecfe07957279cad4ef23cae278e56237
|
7
|
+
data.tar.gz: 3e87bb1a4120beabc8b8a3096bb83d262fe81bca8c9ea974bc0beffe9d82bb55f6ba1ac801d75afc94a80dd803313eb4d8af33c89580fb64680420252ccedb7b
|
data/lib/step_track.rb
CHANGED
@@ -24,8 +24,8 @@ module StepTrack
|
|
24
24
|
split: Time.now.to_f - (last_step&.[](:time) || track_ref[:time]).to_f,
|
25
25
|
duration: Time.now.to_f - track_ref[:time].to_f,
|
26
26
|
time: Time.now,
|
27
|
-
caller: caller[0].sub(Dir.pwd + "/", ""),
|
28
|
-
name: name
|
27
|
+
caller: merge_step&.[](:caller) || caller[0].sub(Dir.pwd + "/", ""),
|
28
|
+
name: merge_step&.[](:name) || name
|
29
29
|
).merge(payload)
|
30
30
|
end
|
31
31
|
|
data/lib/step_track/version.rb
CHANGED