From 4cff48b7ed132a2e561ddc56cfde3346ecdbfa0d Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Thu, 22 Dec 2016 11:14:58 -0600 Subject: [PATCH] Fix faraday on ruby 1.8 --- api_auth.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api_auth.gemspec b/api_auth.gemspec index 907aef5d..c89208af 100644 --- a/api_auth.gemspec +++ b/api_auth.gemspec @@ -20,7 +20,8 @@ Gem::Specification.new do |s| s.add_development_dependency 'rest-client', '~> 1.6.0' s.add_development_dependency 'curb', '~> 0.8.1' s.add_development_dependency 'httpi' - s.add_development_dependency 'faraday' + faraday_version = RUBY_VERSION == '1.8.7' ? '< 0.10' : '>= 0.10' + s.add_development_dependency 'faraday', faraday_version s.add_development_dependency 'multipart-post', '~> 2.0' s.files = `git ls-files`.split("\n")