graphite-api 0.0.1 → 0.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,7 +81,7 @@ module GraphiteAPI
81
81
  end
82
82
 
83
83
  def sum float1, float2
84
- (float1 + float2).round FLOATS_ROUND_BY
84
+ ("%.#{FLOATS_ROUND_BY}f" % (float1 + float2)).to_f # can't use round on 1.8.7
85
85
  end
86
86
 
87
87
  def cache_get time, key, as
@@ -23,8 +23,8 @@ module GraphiteAPI
23
23
  def puts message
24
24
  begin
25
25
  Logger.debug [:connector,:puts,[host,port].join(":"),message]
26
- socket.puts message
27
- rescue Errno::EPIPE
26
+ socket.puts message + "\n"
27
+ rescue Errno::EPIPE, Errno::EINVAL
28
28
  @socket = nil
29
29
  retry
30
30
  end
@@ -1,5 +1,5 @@
1
1
  module GraphiteAPI
2
2
  class Version
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphite-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70258166114060 !ruby/object:Gem::Requirement
16
+ requirement: &70173407309400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 0.3.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70258166114060
24
+ version_requirements: *70173407309400
25
25
  description: Graphite API - A Simple ruby client, aggregator daemon and API tools
26
26
  email: eran@kontera.com
27
27
  executables: