chronometer 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/chronometer.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c6623661c6007a3257437cac6a4e7d132283fac8cfe20735578398074a3d426
4
- data.tar.gz: 5fd920b984dcbfb9a205e8b2dbfa9edbb631d66bea949b25eb3ff94e355bc2e8
3
+ metadata.gz: d84039cc27281efe5fc1b3b062c7fb44a3acdb4a3177d6564369dffb70548b7f
4
+ data.tar.gz: 235119fe07373d79234c5cab465c22a6e665c3f20bb44a685035db8be263ee33
5
5
  SHA512:
6
- metadata.gz: ed6ebd6637e45305e2bd89c79d7a37941a092f3c0a03a13463af2bbab138d01586a6dbae1a694c42096eee7412bf9c5086157b047ce80d632a0ad8d3ba7e2023
7
- data.tar.gz: 0ac9cbd6bf0c0159ee75c348a65a572ad64872ed39dc929e787f629ad465bd54112b626c3257020306539eea7a513778b0b9316bf87a14a00d869f534f108531
6
+ metadata.gz: c62218e8bc5fc0c89ff8171510aced382b25668d1226fb7912d0c24d3492004cb153e219df4b8e7e94e900b2d0cd3203c5de2040a200bb674c4a8d8a6d47ba1b
7
+ data.tar.gz: b5877c5ac18428dc93f672181fb569bf7169a8301c1f0fad3c1a072307cd953de12e660a350a0eb42420e0a3b31637aa53c3275d46c618521be80f2ca40142b7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -70,7 +70,7 @@ class Chronometer
70
70
  timer = self
71
71
 
72
72
  cls.send(:define_method, method) do |*args, &blk|
73
- context = event.context&.call(self)
73
+ context = event.context.call(self) if event.context
74
74
  args_dict = arg_labels.zip(args).to_h
75
75
  args_dict[:context] = context if context
76
76
 
@@ -121,7 +121,7 @@ class Chronometer
121
121
  event_type: :I,
122
122
  name: event_name
123
123
  }
124
- args.update blk&.call(tp)
124
+ args.update blk.call(tp) if blk
125
125
 
126
126
  te = TraceEvent.new(**args)
127
127
  register_trace_event(te)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronometer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: '2.3'
114
+ version: '2.1'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="