rubycut-metriks 0.9.9.14 → 0.9.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/metriks/reporter/cassandra.rb +1 -0
- data/lib/metriks/timer.rb +7 -0
- 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: 3095ab26dfe5e275d61483520a5dcd9207342e6e
|
4
|
+
data.tar.gz: 7a2f54b8d8b15283ed8e6acea52b4d9098752e02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbd8cdff0d6a60c69542e3454ea4c0a814a2c9a1dd105214fe24bcd42c7e499f10d371f4702bd47397ee093115e851be880bc72c4c48ee8f67762254497825e7
|
7
|
+
data.tar.gz: a6548e8db380d530a9cfc3c2f64f7aacc55a13dd2773ecc3974660edb5169dcf8ea42a0eabb3613f3977e4b0fdf2748ea165148bf17c008a516ac8ff8a3c1fa3
|
data/lib/metriks/timer.rb
CHANGED
@@ -6,11 +6,18 @@ require 'metriks/histogram'
|
|
6
6
|
|
7
7
|
module Metriks
|
8
8
|
class Timer
|
9
|
+
# I want to get mean value for last minute only not for eternity
|
10
|
+
attr_accessor :reset_on_submit
|
9
11
|
class Context
|
10
12
|
def initialize(timer)
|
11
13
|
@timer = timer
|
12
14
|
@interval = Hitimes::Interval.now
|
13
15
|
end
|
16
|
+
# shortcut for onliners
|
17
|
+
def activate_reset_on_submit
|
18
|
+
@reset_on_submit = true
|
19
|
+
self
|
20
|
+
end
|
14
21
|
|
15
22
|
def restart
|
16
23
|
@interval = Hitimes::Interval.now
|
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.15'
|
17
17
|
s.date = '2015-10-07'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|