librato-metrics 1.0.3 → 1.0.4

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.
@@ -3,12 +3,13 @@ rvm:
3
3
  - ree
4
4
  - 1.9.2
5
5
  - 1.9.3
6
+ - 2.0.0
6
7
  - jruby-19mode
7
8
  - jruby-18mode
8
9
  - rbx-19mode
9
10
  - rbx-18mode
10
11
  - ruby-head
11
-
12
+
12
13
  matrix:
13
14
  allow_failures:
14
15
  - rvm: ruby-head
@@ -1,5 +1,8 @@
1
1
  ## Changelog
2
2
 
3
+ ### Version 1.0.4
4
+ * Ensure sane default timeouts for all requests
5
+
3
6
  ### Version 1.0.3
4
7
  * Fix bug where retries of POST requests could 400
5
8
  * Network related exceptions capture response state better
data/README.md CHANGED
@@ -137,8 +137,8 @@ At a minimum each annotation needs to be assigned to a stream and to have a titl
137
137
  There are a number of optional fields which can make annotations even more powerful:
138
138
 
139
139
  Librato::Metrics.annotate :deployments, 'deployed v46', :source => 'frontend',
140
- :start_time => 1354662596, :end_time => 1354662608,
141
- :description => 'Deployed 6f3bc6e67682: fix lotsa bugs…'
140
+ :start_time => 1354662596, :end_time => 1354662608,
141
+ :description => 'Deployed 6f3bc6e67682: fix lotsa bugs…'
142
142
 
143
143
  More fine-grained control of annotations is available via the `Annotator` object:
144
144
 
@@ -29,7 +29,10 @@ module Librato
29
29
 
30
30
  def transport
31
31
  raise(NoClientProvided, "No client provided.") unless @client
32
- @transport ||= Faraday::Connection.new(:url => api_endpoint + "/v1/") do |f|
32
+ @transport ||= Faraday::Connection.new(
33
+ :url => api_endpoint + "/v1/",
34
+ :request => {:open_timeout => 20, :timeout => 30}) do |f|
35
+
33
36
  f.use Librato::Metrics::Middleware::RequestBody
34
37
  f.use Librato::Metrics::Middleware::Retry
35
38
  f.use Librato::Metrics::Middleware::CountRequests
@@ -1,5 +1,5 @@
1
1
  module Librato
2
2
  module Metrics
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
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.0.3
4
+ version: 1.0.4
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: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: 3023872404930290893
221
+ hash: 236501250346713379
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  none: false
224
224
  requirements:
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 1.8.24
230
+ rubygems_version: 1.8.25
231
231
  signing_key:
232
232
  specification_version: 2
233
233
  summary: Ruby wrapper for Librato's Metrics API