From 1da5ba688c4f20a67adbd999fdd513fafb35a846 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Mon, 1 Aug 2016 12:33:59 -0400 Subject: [PATCH] Allow new rack v2 for Rails 5 apps Rails 5 now requires Rack 2 which in turn requires Ruby 2.2.2 and up. This update still allows Rack 1 on older Ruby versions that aren't compatible with Rack 2 but then support upgrading. --- bitpay-sdk.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitpay-sdk.gemspec b/bitpay-sdk.gemspec index 7c6a88d..ddb293d 100644 --- a/bitpay-sdk.gemspec +++ b/bitpay-sdk.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.add_dependency 'json', '~>1.8' - s.add_dependency 'rack', '~>1.5' + s.add_dependency 'rack', '>= 1.4', (RUBY_VERSION < '2.2.2' ? '< 2' : '< 3') s.add_dependency 'bitpay-key-utils', '~>2.0.0' s.add_development_dependency 'rake', '10.3.2'