Skip to content

Commit

Permalink
Remove RUBY_PLATFORM conditional from gemspec
Browse files Browse the repository at this point in the history
This conditional is of no use. The gem specification generated is not
dynamic and will always contain these gems. In order to support JRuby
properly we'll need to create a separate gemspec.
  • Loading branch information
James Conroy-Finn committed May 18, 2011
1 parent 432f8f5 commit 666a77d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions webmock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ Gem::Specification.new do |s|

s.add_dependency 'addressable', '~> 2.2', '> 2.2.5'
s.add_dependency 'crack', '>=0.1.7'
s.add_development_dependency 'rspec', '>= 2.0.0'
s.add_development_dependency 'httpclient', '>= 2.1.5.2'

unless RUBY_PLATFORM =~ /java/
s.add_development_dependency 'patron', '>= 0.4.9'
s.add_development_dependency 'em-http-request', '>= 0.2.14'
s.add_development_dependency 'curb', '>= 0.7.8'
end
s.add_development_dependency 'rspec', '>= 2.0.0'
s.add_development_dependency 'httpclient', '>= 2.1.5.2'
s.add_development_dependency 'patron', '>= 0.4.9'
s.add_development_dependency 'em-http-request', '>= 0.2.14'
s.add_development_dependency 'curb', '>= 0.7.8'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down

0 comments on commit 666a77d

Please sign in to comment.