Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update to latest http-parser-java from upstream

  • Loading branch information...
commit a299a7d4f4eb2159ac8cc667745dff72063f545a 1 parent 2fe2394
@tmm1 authored
2  ext/ruby_http_parser/vendor/http-parser-java
@@ -1 +1 @@
-Subproject commit e242866b8a6b34dc0e34453bee43e8eea9842f95
+Subproject commit 37e9816fa986639fd1db83f90b711eeb9ef1737e
View
7 http_parser.rb.gemspec
@@ -16,5 +16,10 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake-compiler', '>= 0.7.6'
s.add_development_dependency 'rspec', '>= 2.0.1'
s.add_development_dependency 'json', '>= 1.4.6'
- # s.add_development_dependency 'yajl-ruby', '>= 0.8.1'
+
+ if RUBY_PLATFORM =~ /java/
+ s.add_development_dependency 'jruby-openssl'
+ else
+ s.add_development_dependency 'yajl-ruby', '>= 0.8.1'
+ end
end
View
4 tasks/compile.rake
@@ -10,7 +10,9 @@ Rake::GemPackageTask.new(gemspec) do |pkg|
end
if RUBY_PLATFORM =~ /java/
- Rake::JavaExtensionTask.new("ruby_http_parser", gemspec)
+ Rake::JavaExtensionTask.new("ruby_http_parser", gemspec) do |ext|
+ ext.classpath = File.expand_path('../../ext/ruby_http_parser/vendor/http-parser-java/ext/primitives.jar', __FILE__)
+ end
else
Rake::ExtensionTask.new("ruby_http_parser", gemspec) do |ext|
unless RUBY_PLATFORM =~ /mswin|mingw/
Please sign in to comment.
Something went wrong with that request. Please try again.