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 +4 -4
- data/Gemfile.lock +1 -1
- data/History.md +5 -0
- data/lib/segment/analytics/request.rb +6 -7
- data/lib/segment/analytics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e430890915d90c82052105e582431ba62067cbfa
|
4
|
+
data.tar.gz: b3782718a7fbec2d90f72e784ad1264071515da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 737d33e0e8f8d0cd73efb388707be29f37fa9caa54ee5197bfc7d6e13432ae63732eb2b4a5deadf7bbf488556c55a17d912d4497f12dfd7572c5294c12712e4c
|
7
|
+
data.tar.gz: 8389f2bf8bcdd48a3f157adba8b15bf84374353d4e202c99f33d6ccd8c0bb1f30f56cec3af4f42518346277909b54185f4dfb6a89234fe9f61aafb620f3f0f43
|
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
@@ -55,17 +55,16 @@ module Segment
|
|
55
55
|
body = JSON.parse(res.body)
|
56
56
|
error = body["error"]
|
57
57
|
end
|
58
|
-
rescue Exception
|
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
|