librato-metrics 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Changelog
2
2
 
3
+ ### Version 1.5.1
4
+ * Fix bug causing incompatible dates when annotating with block form (#109)
5
+
3
6
  ### Version 1.5.0
4
7
  * Add #get_composite for easier fetching of composite measurements
5
8
 
data/README.md CHANGED
@@ -291,4 +291,4 @@ We also maintain a set of [examples of common uses](https://github.com/librato/l
291
291
 
292
292
  ## Copyright
293
293
 
294
- Copyright (c) 2011-2014 [Librato Inc.](http://librato.com) See LICENSE for details.
294
+ Copyright (c) 2011-2015 [Librato Inc.](http://librato.com) See LICENSE for details.
@@ -43,10 +43,10 @@ module Librato
43
43
  # Add a metric entry to the metric set:
44
44
  #
45
45
  # @example Basic use
46
- # annotator.add 'request.time' => 30.24
46
+ # aggregator.add 'request.time' => 30.24
47
47
  #
48
48
  # @example With a custom source
49
- # annotator.add 'request.time' => {value: 20.52, source: 'staging'}
49
+ # aggregator.add 'request.time' => {value: 20.52, source: 'staging'}
50
50
  #
51
51
  # @param [Hash] measurements measurements to add
52
52
  # @return [Aggregator] returns self
@@ -31,9 +31,7 @@ module Librato::Metrics
31
31
  #
32
32
  def add(stream, title, options={})
33
33
  options[:title] = title
34
- if options[:start_time]
35
- options[:start_time] = options[:start_time].to_i
36
- end
34
+ options[:start_time] = (options[:start_time] || Time.now).to_i
37
35
  if options[:end_time]
38
36
  options[:end_time] = options[:end_time].to_i
39
37
  end
@@ -1,5 +1,5 @@
1
1
  module Librato
2
2
  module Metrics
3
- VERSION = "1.5.0"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librato-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -37,7 +37,7 @@ cert_chain:
37
37
  bktaNmhlblFBRjFDSDk2WmNxY0pIMTc5UzJ0SWlLRE04a2VlUklVT1BDM1dU
38
38
  MGZhb2svMgpnQTJvemRyODUxYy9uQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
39
39
  LS0tLS0K
40
- date: 2014-11-06 00:00:00.000000000 Z
40
+ date: 2015-06-16 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: faraday
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: -1761741790277116379
158
+ hash: 1872343750244611276
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 1.8.23
167
+ rubygems_version: 1.8.23.2
168
168
  signing_key:
169
169
  specification_version: 2
170
170
  summary: Ruby wrapper for Librato's Metrics API
metadata.gz.sig CHANGED
Binary file