From 71ebd14aabd844d2c0a32566a4b3caf3b7dab049 Mon Sep 17 00:00:00 2001 From: James Coglan Date: Wed, 6 Sep 2023 19:18:43 +0100 Subject: [PATCH] http_parser.rb versions after 0.6 do not build on JRuby --- faye-websocket.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/faye-websocket.gemspec b/faye-websocket.gemspec index 056e61f..1f931c1 100644 --- a/faye-websocket.gemspec +++ b/faye-websocket.gemspec @@ -30,7 +30,9 @@ Gem::Specification.new do |s| s.add_development_dependency 'public_suffix', '< 1.5.0' end - unless jruby + if jruby + s.add_development_dependency 'http_parser.rb', '~> 0.6.0' + else thin_version = (RUBY_VERSION < '2.0.0') ? '< 1.8.0' : '> 0' s.add_development_dependency 'thin', '>= 1.2.0', thin_version