Skip to content

Commit

Permalink
Lock http_parser.rb gem to v0.6.x on JRuby
Browse files Browse the repository at this point in the history
Since newer versions of the gem do not have a Java counterpart.
  • Loading branch information
ashmaroli committed Dec 9, 2021
1 parent ce1db82 commit 5738786
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Gemfile
Expand Up @@ -30,7 +30,10 @@ group :test do
gem "test-theme-skinny", :path => File.expand_path("test/fixtures/test-theme-skinny", __dir__)
gem "test-theme-symlink", :path => File.expand_path("test/fixtures/test-theme-symlink", __dir__)

gem "jruby-openssl" if RUBY_ENGINE == "jruby"
if RUBY_ENGINE == "jruby"
gem "http_parser.rb", "~> 0.6.0"
gem "jruby-openssl"
end
end

#
Expand Down
6 changes: 6 additions & 0 deletions History.markdown
@@ -1,3 +1,9 @@
## HEAD

### Bug Fixes

* Lock `http_parser.rb` gem to `v0.6.x` on JRuby.

## 4.2.1 / 2021-09-27

### Bug Fixes
Expand Down
3 changes: 3 additions & 0 deletions lib/jekyll/commands/new.rb
Expand Up @@ -99,6 +99,9 @@ def gemfile_contents
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
RUBY
end

Expand Down

0 comments on commit 5738786

Please sign in to comment.