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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e7fbc29e0c6322fafba55a9cbbdc62edc015b30
4
- data.tar.gz: 59a755c0ad211f30927ac47e1ccd4e00d704b279
3
+ metadata.gz: 2e56d1d137db8def06b9678b996438af2c7ab108
4
+ data.tar.gz: fde8105ca65551827db581c0932deb1b02c5d461
5
5
  SHA512:
6
- metadata.gz: d9eaa71b6e0018cefd9631b9df58ae5c90f145db490e15539308d26a56ee9aab7807bd97e420c75296da06f0891a06543186eb1bdfb31776ab739389d03d8240
7
- data.tar.gz: 2dcc4bc50959135f4656c455228bba454132abb65c69ddf8a767df24515a9445cdd673e8b1d9b1b1cae482671c123ce03133ecafff0429dd7944f18b8f068e23
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
 
@@ -1,3 +1,3 @@
1
1
  module StepTrack
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: step-track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Geier