Skip to content

Commit

Permalink
Use vault-ruby 0.17.0 to add automatic retry on 412 errors (#119)
Browse files Browse the repository at this point in the history
* Use vault-ruby 0.17.0 to add automatic retry on 412 errors

* Add changelog
  • Loading branch information
digivava committed Jun 2, 2022
1 parent 6385207 commit 91127f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Vault Rails Changelog

## v0.8.0 (May 23, 2022)

IMPROVEMENTS

- Added `Vault::MissingRequiredStateError` to list of error types to be retried automatically in `with_retries` and updated `vault` gem minimum version requirement accordingly

## v0.7.1 (March 24th, 2021)

- Relaxed the dependency requirements for the gem to only depend on ActiveSupport, not the Rails meta gem, which
Expand Down
2 changes: 1 addition & 1 deletion lib/vault/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def force_encoding(str)
private

def with_retries(client = self.client, &block)
exceptions = [Vault::HTTPConnectionError, Vault::HTTPServerError]
exceptions = [Vault::HTTPConnectionError, Vault::HTTPServerError, Vault::MissingRequiredStateError]
options = {
attempts: self.retry_attempts,
base: self.retry_base,
Expand Down
2 changes: 1 addition & 1 deletion lib/vault/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Vault
module Rails
VERSION = "0.7.1"
VERSION = "0.8.0"
end
end
2 changes: 1 addition & 1 deletion vault.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.test_files = Dir["spec/**/*"]

s.add_dependency "activesupport", ">= 5.0"
s.add_dependency "vault", "~> 0.14"
s.add_dependency "vault", "~> 0.17"

s.add_development_dependency "bundler"
s.add_development_dependency "pry"
Expand Down

0 comments on commit 91127f2

Please sign in to comment.