analytics-ruby 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62590c1932b6e70bfb4342f88413058c5fb7cefd
4
- data.tar.gz: b6d898877a247f26a0d8c77f2f055ae9dd01795f
3
+ metadata.gz: e430890915d90c82052105e582431ba62067cbfa
4
+ data.tar.gz: b3782718a7fbec2d90f72e784ad1264071515da1
5
5
  SHA512:
6
- metadata.gz: 1faa1bafe9465f9315e2ab2e85a51fd0ffdbdfd12176a2c7f95a84ead4a7a1be1b69dc67dd5891eab95f7b05710aaacfc0808c193869abbc2e05bafe6283c762
7
- data.tar.gz: 63564cf6671ff615fd5645f755076d37e79ca48c72b5a497651048d1067d48697710fe8d5d8797e2e3f192ce74cf3dc315ee23ac86c55e28c225c0abcf2f3d14
6
+ metadata.gz: 737d33e0e8f8d0cd73efb388707be29f37fa9caa54ee5197bfc7d6e13432ae63732eb2b4a5deadf7bbf488556c55a17d912d4497f12dfd7572c5294c12712e4c
7
+ data.tar.gz: 8389f2bf8bcdd48a3f157adba8b15bf84374353d4e202c99f33d6ccd8c0bb1f30f56cec3af4f42518346277909b54185f4dfb6a89234fe9f61aafb620f3f0f43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- analytics-ruby (2.0.7)
4
+ analytics-ruby (2.0.9)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 2.0.10 / 2014-09-22
3
+ ==================
4
+
5
+ * Move timeout retry above output
6
+
2
7
  2.0.9 / 2014-09-22
3
8
  ==================
4
9
 
@@ -55,17 +55,16 @@ module Segment
55
55
  body = JSON.parse(res.body)
56
56
  error = body["error"]
57
57
  end
58
- rescue Exception, Timeout::Error => e
59
- logger.error e.message
60
- e.backtrace.each { |line| logger.error line }
61
- status = -1
62
- error = "Connection error: #{e}"
63
- logger.info "retries remaining: #{remaining_retries}"
64
-
58
+ rescue Exception => e
65
59
  unless (remaining_retries -=1).zero?
66
60
  sleep(backoff)
67
61
  retry
68
62
  end
63
+
64
+ logger.error e.message
65
+ e.backtrace.each { |line| logger.error line }
66
+ status = -1
67
+ error = "Connection error: #{e}"
69
68
  end
70
69
 
71
70
  Response.new status, error
@@ -1,5 +1,5 @@
1
1
  module Segment
2
2
  class Analytics
3
- VERSION = '2.0.9'
3
+ VERSION = '2.0.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytics-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Segment.io