vault 0.8.0 → 0.9.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: e3e7e070730fb59b0a4378801579c6740b9bbc5c
4
- data.tar.gz: f1f6131919b6a9d7a8ed7243b5e68634d9c11eaa
3
+ metadata.gz: 6417ff116e2e2373711b36a6be68184b31e8df08
4
+ data.tar.gz: a6ef6ca6c2f1a58d0018804c3b988f9ba41d811b
5
5
  SHA512:
6
- metadata.gz: bfe1a015d324db102786bcc8ccc39c46f88b09bf6316071d1e60c259f901e7624e90c5aac3504fa6be2568721667a9819c78aec65663a61df3a0f6ecd7daf375
7
- data.tar.gz: 41f677359df9bd70d0e2162108164d334d202a33cd0487e9e828444b713f1f315b283761515282926f2febf2b26e6597632c216b246fc654a018947baae40da9
6
+ metadata.gz: 03fac7059bf8ef408a3034dc8fa9cf4b2c81eb8362065ce4b1eb98293d1205010882bc74a444acbd83f3dfc16d40754379bff64958368316315d7e2aeb0814f6
7
+ data.tar.gz: b4ec302bf3e9a06195f40f30012d69181fafce70ab9f276b9ac9e3880a1971b94cc7eb25fbafe7ad65e472df2897c249cd8b856848f98a3257dc33d3592ed3ca
@@ -1,5 +1,11 @@
1
1
  # Vault Ruby Changelog
2
2
 
3
+ ## v0.9.0 (March 10, 2017)
4
+
5
+ IMPROVEMENTS
6
+
7
+ - The pool size used to talk with vault is now configurable. Using `Vault.pool_size` or the env var `VAULT_POOL_SIZE`.
8
+
3
9
  ## v0.8.0 (March 3, 2017)
4
10
 
5
11
  BREAKING CHANGES
@@ -83,7 +83,7 @@ module Vault
83
83
  @lock.synchronize do
84
84
  return @nhp if @nhp
85
85
 
86
- @nhp = PersistentHTTP.new(name: "vault-ruby")
86
+ @nhp = PersistentHTTP.new("vault-ruby", nil, pool_size)
87
87
 
88
88
  if hostname
89
89
  @nhp.hostname = hostname
@@ -12,6 +12,7 @@ module Vault
12
12
  :proxy_password,
13
13
  :proxy_port,
14
14
  :proxy_username,
15
+ :pool_size,
15
16
  :read_timeout,
16
17
  :ssl_ciphers,
17
18
  :ssl_pem_contents,
@@ -26,6 +26,9 @@ module Vault
26
26
  # The maximum amount of time for a single exponential backoff to sleep.
27
27
  RETRY_MAX_WAIT = 2.0
28
28
 
29
+ # The default size of the connection pool
30
+ DEFAULT_POOL_SIZE = 16
31
+
29
32
  class << self
30
33
  # The list of calculated options for this configurable.
31
34
  # @return [Hash]
@@ -66,6 +69,16 @@ module Vault
66
69
  ENV["VAULT_OPEN_TIMEOUT"]
67
70
  end
68
71
 
72
+ # The size of the connection pool to communicate with Vault
73
+ # @return Integer
74
+ def pool_size
75
+ if var = ENV["VAULT_POOL_SIZE"]
76
+ return var.to_i
77
+ else
78
+ DEFAULT_POOL_SIZE
79
+ end
80
+ end
81
+
69
82
  # The HTTP Proxy server address as a string
70
83
  # @return [String, nil]
71
84
  def proxy_address
@@ -1,3 +1,3 @@
1
1
  module Vault
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.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.8.0
4
+ version: 0.9.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-03 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler