azure-armrest 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +3 -0
- data/lib/azure/armrest/armrest_service.rb +3 -1
- data/lib/azure/armrest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa0ce88663e4c9ec21bb3952137aa27358f22201
|
4
|
+
data.tar.gz: a6c722468faf4821c068ccb9fa7bc8c37caf82c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fcecb20b0b92fbf9d2f75b71f5623baf21674eb4bde8728c789436f613b55b3f20d7f529d519f02e0df1df45370c786e352156c876a97f84e35f05e0cedcbdc
|
7
|
+
data.tar.gz: dad85c9468870906a46c6ea38b0a4de86d57163eccf4c3529c137751cf2e87d0fbb2542efeecfdcc112862398c9ceddf2b9b10eab317ebe46a83995acb3a122c
|
data/CHANGES
CHANGED
@@ -216,7 +216,9 @@ module Azure
|
|
216
216
|
if tries <= max_retries
|
217
217
|
msg = "A rate limit or server side issue has occurred [#{err.http_code}]. Retry number #{tries}."
|
218
218
|
Azure::Armrest::Configuration.log.try(:log, Logger::WARN, msg)
|
219
|
-
sleep_time = err.response.headers[:retry_after] || 30
|
219
|
+
sleep_time = (err.response.headers[:retry_after] || 30).to_i
|
220
|
+
sleep_time = 5 if sleep_time < 5 # 5 second minimum
|
221
|
+
sleep_time = 120 if sleep_time > 120 # 2 minute maximum
|
220
222
|
sleep(sleep_time)
|
221
223
|
retry
|
222
224
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure-armrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-10-
|
14
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
304
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.6.
|
305
|
+
rubygems_version: 2.6.11
|
306
306
|
signing_key:
|
307
307
|
specification_version: 4
|
308
308
|
summary: An interface for ARM/JSON Azure REST API
|