Skip to content

Commit 6492fde

Browse files
committed
more gem version restrictions for older rubies
1 parent 0917226 commit 6492fde

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Gemfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ group :tools do
1111
gem 'ruby_gntp'
1212
gem 'rb-fsevent'
1313
end
14-
end
14+
end unless RUBY_VERSION < "1.9.3"
15+
16+
gem 'json', :platform => :mri_18
1517

1618
platform :rbx do
1719
gem 'rubysl'

persistent_httparty.gemspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ Gem::Specification.new do |gem|
1717
gem.test_files = `git ls-files -- {spec,features}/*`.split("\n")
1818
gem.require_paths = ["lib"]
1919

20-
gem.add_dependency "httparty", "~> 0.9"
20+
if RUBY_VERSION >= "1.9.3"
21+
gem.add_dependency "httparty", "~> 0.9"
22+
else
23+
gem.add_dependency "httparty", ">= 0.9", "< 0.12"
24+
end
2125
gem.add_dependency "persistent_http", "< 2"
2226

2327
gem.add_development_dependency "rake"

0 commit comments

Comments
 (0)