chronometer 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/chronometer.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d84039cc27281efe5fc1b3b062c7fb44a3acdb4a3177d6564369dffb70548b7f
|
4
|
+
data.tar.gz: 235119fe07373d79234c5cab465c22a6e665c3f20bb44a685035db8be263ee33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62218e8bc5fc0c89ff8171510aced382b25668d1226fb7912d0c24d3492004cb153e219df4b8e7e94e900b2d0cd3203c5de2040a200bb674c4a8d8a6d47ba1b
|
7
|
+
data.tar.gz: b5877c5ac18428dc93f672181fb569bf7169a8301c1f0fad3c1a072307cd953de12e660a350a0eb42420e0a3b31637aa53c3275d46c618521be80f2ca40142b7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/chronometer.rb
CHANGED
@@ -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
|
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
|
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.
|
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.
|
114
|
+
version: '2.1'
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - ">="
|