diff --git a/vault.gemspec b/vault.gemspec index 834a4a08..be53ac82 100644 --- a/vault.gemspec +++ b/vault.gemspec @@ -21,7 +21,12 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.required_ruby_version = ">= 2.0" - spec.add_runtime_dependency "aws-sigv4" + if Gem::Version.new(RUBY_VERSION) <= Gem::Version.new("2.4.0") + spec.add_runtime_dependency "aws-sigv4", "= 1.6.0" + spec.add_runtime_dependency "aws-eventstream", "= 1.2.0" + else + spec.add_runtime_dependency "aws-sigv4" + end spec.add_development_dependency "bundler", "~> 2" spec.add_development_dependency "pry", "~> 0.13.1"