rubycut-metriks 0.9.9.15 → 0.9.9.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metriks/timer.rb +5 -5
- data/metriks.gemspec +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: 42d9c842363a487c5f873cb882865f689136b032
|
4
|
+
data.tar.gz: 7523343d2538e034d2bbf1c7374df4ab924a993e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b34f2f3ad90ea5205772e7ac6b2c580256e2a350cfaf70b8bba7f2200732997c79d377a7a3a5f18621de50bae51d1648e9879055fa40bed6286302ffa216415
|
7
|
+
data.tar.gz: 01f267b92aba5a68fcf310a592bbca5020027248555a30a21404b8e4c64fcc7b0ce6bcbed0d474b1420f897ab1d998edd9432a89f3e66487370376562f96a5da
|
data/lib/metriks/timer.rb
CHANGED
@@ -13,11 +13,6 @@ module Metriks
|
|
13
13
|
@timer = timer
|
14
14
|
@interval = Hitimes::Interval.now
|
15
15
|
end
|
16
|
-
# shortcut for onliners
|
17
|
-
def activate_reset_on_submit
|
18
|
-
@reset_on_submit = true
|
19
|
-
self
|
20
|
-
end
|
21
16
|
|
22
17
|
def restart
|
23
18
|
@interval = Hitimes::Interval.now
|
@@ -33,6 +28,11 @@ module Metriks
|
|
33
28
|
@meter = Metriks::Meter.new
|
34
29
|
@histogram = histogram
|
35
30
|
end
|
31
|
+
# shortcut for onliners
|
32
|
+
def activate_reset_on_submit
|
33
|
+
@reset_on_submit = true
|
34
|
+
self
|
35
|
+
end
|
36
36
|
|
37
37
|
def clear
|
38
38
|
@meter.clear
|
data/metriks.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'rubycut-metriks'
|
16
|
-
s.version = '0.9.9.
|
16
|
+
s.version = '0.9.9.16'
|
17
17
|
s.date = '2015-10-07'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|