From aa12f7e62147844d3674553f9e53a8c69b349c71 Mon Sep 17 00:00:00 2001 From: Brandur Date: Wed, 31 Aug 2016 06:56:17 -0700 Subject: [PATCH] Relax rest-client requirements Our fairly old requirements for rest-client (and therefore mime-types) are starting to cause some dependency hell problems for some customers. Try relaxing these constraints and locking 1.9 specifically into compatible versions. --- Gemfile | 6 ++++-- stripe.gemspec | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index e7243a4b..42cd6eeb 100644 --- a/Gemfile +++ b/Gemfile @@ -17,8 +17,10 @@ group :development do # # https://github.com/travis-ci/travis-ci/issues/5145 # - gem 'mime-types', '2.6.2' - gem 'rest-client', '1.8.0' + if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0') + gem 'mime-types', '2.6.2' + gem 'rest-client', '1.8.0' + end platforms :mri do # to avoid problems, bring Byebug in on just versions of Ruby under which diff --git a/stripe.gemspec b/stripe.gemspec index 3424b4bd..3a4728b1 100644 --- a/stripe.gemspec +++ b/stripe.gemspec @@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s| s.homepage = 'https://stripe.com/docs/api/ruby' s.license = 'MIT' - s.add_dependency('rest-client', '>= 1.4', '< 3.0') + s.add_dependency('rest-client', '>= 1.4', '< 4.0') s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- test/*`.split("\n")