metriksd 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Metriksd
3
- VERSION = '0.5.6'
3
+ VERSION = '0.5.7'
4
4
  end
5
5
 
6
6
  require 'metriksd/cli'
@@ -1,14 +1,14 @@
1
1
  module Metriksd
2
2
  class LibratoMetricsReporter::TimesliceRollup
3
3
  class AverageGauge
4
- attr_accessor :name, :source, :count, :sum, :sum_of_squares, :min, :max
4
+ attr_accessor :name, :source, :count, :sum, :sum_squares, :min, :max
5
5
 
6
6
  def initialize(name, source)
7
7
  @name = name
8
8
  @source = source
9
9
  @count = 0
10
10
  @sum = 0
11
- @sum_of_squares = 0
11
+ @sum_squares = 0
12
12
  @min = nil
13
13
  @max = nil
14
14
  end
@@ -16,7 +16,7 @@ module Metriksd
16
16
  def mark(value)
17
17
  @count += 1
18
18
  @sum += value
19
- @sum_of_squares += value ** 2
19
+ @sum_squares += value ** 2
20
20
 
21
21
  if !@min || value < @min
22
22
  @min = value
@@ -33,7 +33,7 @@ module Metriksd
33
33
  :source => source,
34
34
  :count => count,
35
35
  :sum => sum,
36
- :sum_of_squares => sum_of_squares,
36
+ :sum_squares => sum_squares,
37
37
  :min => min,
38
38
  :max => max
39
39
  }
@@ -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 = 'metriksd'
16
- s.version = '0.5.6'
17
- s.date = '2014-03-25'
16
+ s.version = '0.5.7'
17
+ s.date = '2015-03-04'
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: metriksd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
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-03-25 00:00:00.000000000 Z
12
+ date: 2015-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: librato-metrics