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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11ba10cb874f3969170f27169ac40650a9a5dc5e
4
- data.tar.gz: 04663bbc64ffb2d7c9c200156f6047c8e56ec849
3
+ metadata.gz: fa0ce88663e4c9ec21bb3952137aa27358f22201
4
+ data.tar.gz: a6c722468faf4821c068ccb9fa7bc8c37caf82c3
5
5
  SHA512:
6
- metadata.gz: 0ee002ad1df4cbf64f1d64541ea513abb37fb12743d8664ce80b151e15aada2708eff0039a2025ac85c4bc32306851b48f475f5ac9b6b43ef7a04efad2693d8e
7
- data.tar.gz: 6ed84ee3074e26956449442d045012166765e35b8abbb9c3c515b6ea10591a2cbfc0f8c25e0eae25c37ad11dbdc5a708e083ac8002bed1334aa5723a82e96727
6
+ metadata.gz: 4fcecb20b0b92fbf9d2f75b71f5623baf21674eb4bde8728c789436f613b55b3f20d7f529d519f02e0df1df45370c786e352156c876a97f84e35f05e0cedcbdc
7
+ data.tar.gz: dad85c9468870906a46c6ea38b0a4de86d57163eccf4c3529c137751cf2e87d0fbb2542efeecfdcc112862398c9ceddf2b9b10eab317ebe46a83995acb3a122c
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.8.7 - 25-Oct-2017
2
+ * Ensure value passed to sleep method is an integer.
3
+
1
4
  = 0.8.6 - 23-Oct-2017
2
5
  * Backported the '$' model key fix from 0.9.1.
3
6
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Azure
2
2
  module Armrest
3
3
  # The version of the azure-armrest library.
4
- VERSION = '0.8.6'.freeze
4
+ VERSION = '0.8.7'.freeze
5
5
  end
6
6
  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.6
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-23 00:00:00.000000000 Z
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.14
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