Skip to content

Commit 5f62876

Browse files
committed
chore(bundler): deprecate :install_if option in Gemfile
1 parent 808d374 commit 5f62876

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Gemfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ end
1010

1111
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
1212
# and associated library.
13-
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
14-
gem "tzinfo", "~> 1.2"
13+
platforms :mingw, :x64_mingw, :mswin, :jruby do
14+
gem "tzinfo", ">= 1", "< 3"
1515
gem "tzinfo-data"
1616
end
1717

1818
# Performance-booster for watching directories on Windows
19-
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
19+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
20+
21+
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
22+
# do not have a Java counterpart.
23+
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
2024

2125
# Lock jekyll-sass-converter to 2.x on Linux-musl
2226
if RUBY_PLATFORM =~ /linux-musl/

0 commit comments

Comments
 (0)