metriks 0.9.9.7 → 0.9.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ gem 'beefcake', '< 1.0.0'
6
+
5
7
  group :test do
6
8
  gem 'rake'
7
9
  gem 'riemann-client', '~> 0.0.7'
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Metriks
3
- VERSION = '0.9.9.7'
3
+ VERSION = '0.9.9.8'
4
4
 
5
5
  def self.get(name)
6
6
  Metriks::Registry.default.get(name)
@@ -50,6 +50,10 @@ module Metriks
50
50
  @count.value
51
51
  end
52
52
 
53
+ def sum
54
+ @sum.value
55
+ end
56
+
53
57
  def max
54
58
  count > 0 ? @max.value : 0.0
55
59
  end
@@ -62,6 +62,10 @@ module Metriks
62
62
  @histogram.count
63
63
  end
64
64
 
65
+ def sum
66
+ @histogram.sum
67
+ end
68
+
65
69
  def one_minute_rate
66
70
  @meter.one_minute_rate
67
71
  end
@@ -13,8 +13,8 @@ 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 = 'metriks'
16
- s.version = '0.9.9.7'
17
- s.date = '2014-10-07'
16
+ s.version = '0.9.9.8'
17
+ s.date = '2017-04-26'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metriks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.7
4
+ version: 0.9.9.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-07 00:00:00.000000000 Z
12
+ date: 2017-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: atomic