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 +4 -4
- data/CHANGELOG.md +13 -1
- data/lib/vault.rb +1 -1
- data/lib/vault/api/secret.rb +2 -0
- data/lib/vault/client.rb +2 -0
- data/lib/vault/defaults.rb +4 -0
- data/lib/vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5fd83ffdf4937b80770ad21d25b1bab18b036b
|
4
|
+
data.tar.gz: 7d82f65b6e31bd4f8f4887bdc2224040159fc402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad1f9d3302041a5532145af4c1cd07d3f7fe289c5a81d3edd0cd410b0f0130d59f09a8ceea82955cf28b4f36dbefb6fa73cb1145d5e117a01dff537b9a3ab3b
|
7
|
+
data.tar.gz: 4c0b02bf433aa26c3573f8d6b9728662efc2a0d7fd8138cb486e4c4c044ba6d728c4405b910582f7c34feb3c0788aeb89874ea6999027379502821782e86b018
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
data/lib/vault.rb
CHANGED
data/lib/vault/api/secret.rb
CHANGED
data/lib/vault/client.rb
CHANGED
@@ -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
|
data/lib/vault/defaults.rb
CHANGED
@@ -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]
|
data/lib/vault/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|