vault 0.9.0 → 0.10.0

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: 6417ff116e2e2373711b36a6be68184b31e8df08
4
- data.tar.gz: a6ef6ca6c2f1a58d0018804c3b988f9ba41d811b
3
+ metadata.gz: 7e5fd83ffdf4937b80770ad21d25b1bab18b036b
4
+ data.tar.gz: 7d82f65b6e31bd4f8f4887bdc2224040159fc402
5
5
  SHA512:
6
- metadata.gz: 03fac7059bf8ef408a3034dc8fa9cf4b2c81eb8362065ce4b1eb98293d1205010882bc74a444acbd83f3dfc16d40754379bff64958368316315d7e2aeb0814f6
7
- data.tar.gz: b4ec302bf3e9a06195f40f30012d69181fafce70ab9f276b9ac9e3880a1971b94cc7eb25fbafe7ad65e472df2897c249cd8b856848f98a3257dc33d3592ed3ca
6
+ metadata.gz: bad1f9d3302041a5532145af4c1cd07d3f7fe289c5a81d3edd0cd410b0f0130d59f09a8ceea82955cf28b4f36dbefb6fa73cb1145d5e117a01dff537b9a3ab3b
7
+ data.tar.gz: 4c0b02bf433aa26c3573f8d6b9728662efc2a0d7fd8138cb486e4c4c044ba6d728c4405b910582f7c34feb3c0788aeb89874ea6999027379502821782e86b018
@@ -1,5 +1,17 @@
1
1
  # Vault Ruby Changelog
2
2
 
3
+ ## v0.10.0 (April 19, 2017)
4
+
5
+ IMPROVEMENTS
6
+
7
+ - `#with_retries` now defaults to checking `HTTPServerError` if called without
8
+ an error classes
9
+
10
+ BUG FIXES
11
+
12
+ - Don't randomly fail when parsing with Time.parse [GH-140]
13
+
14
+
3
15
  ## v0.9.0 (March 10, 2017)
4
16
 
5
17
  IMPROVEMENTS
@@ -18,7 +30,7 @@ BREAKING CHANGES
18
30
 
19
31
  BUG FIXES
20
32
 
21
- - Do not convert arrays in #to_h [GH-125]
33
+ - Do not convert arrays in `#to_h` [GH-125]
22
34
  - Prevent mismatched checkout/checkin from the connection pool; this will avoid masking errors that occur on pool checkout.
23
35
 
24
36
  IMPROVEMENTS
@@ -1,8 +1,8 @@
1
1
  module Vault
2
+ require_relative "vault/errors"
2
3
  require_relative "vault/client"
3
4
  require_relative "vault/configurable"
4
5
  require_relative "vault/defaults"
5
- require_relative "vault/errors"
6
6
  require_relative "vault/response"
7
7
  require_relative "vault/version"
8
8
 
@@ -1,3 +1,5 @@
1
+ require "time"
2
+
1
3
  require_relative "../response"
2
4
 
3
5
  module Vault
@@ -409,6 +409,8 @@ module Vault
409
409
  exception = nil
410
410
  retries = 0
411
411
 
412
+ rescued = Defaults::RETRIED_EXCEPTIONS if rescued.empty?
413
+
412
414
  max_attempts = options[:attempts] || Defaults::RETRY_ATTEMPTS
413
415
  backoff_base = options[:base] || Defaults::RETRY_BASE
414
416
  backoff_max = options[:max_wait] || Defaults::RETRY_MAX_WAIT
@@ -29,6 +29,10 @@ module Vault
29
29
  # The default size of the connection pool
30
30
  DEFAULT_POOL_SIZE = 16
31
31
 
32
+ # The set of exceptions that are detect and retried by default
33
+ # with `with_retries`
34
+ RETRIED_EXCEPTIONS = [HTTPServerError]
35
+
32
36
  class << self
33
37
  # The list of calculated options for this configurable.
34
38
  # @return [Hash]
@@ -1,3 +1,3 @@
1
1
  module Vault
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-10 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler