Skip to content

Commit

Permalink
Fix rest-client dependency for Ruby v1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
incarnate committed Sep 19, 2016
1 parent 7bc46e4 commit fb8ffa9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion eway_rapid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = ['lib']

spec.add_dependency 'rest-client', ['>= 1.8.0', '< 3.0']
spec.add_dependency 'json', '~> 1.8.3'

# prevent dependency issues for Ruby 1.9
if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
spec.add_dependency 'rest-client', '~> 1.8.0'
else
spec.add_dependency 'rest-client', ['>= 1.8.0', '< 3.0']
end

spec.add_development_dependency 'bundler', '~> 1.10'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'test-unit'
Expand Down
2 changes: 1 addition & 1 deletion lib/eway_rapid/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module EwayRapid
VERSION = '1.2.0'
VERSION = '1.2.1'
end

0 comments on commit fb8ffa9

Please sign in to comment.