From 5f628767e02516e4d4f5e73d1eb7fe1d01fa6b1b Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 13 Jan 2023 02:34:38 +0800 Subject: [PATCH] chore(bundler): deprecate `:install_if` option in Gemfile --- Gemfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 9a7bf74..7b5377f 100644 --- a/Gemfile +++ b/Gemfile @@ -10,13 +10,17 @@ end # Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem # and associated library. -install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do - gem "tzinfo", "~> 1.2" +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo", ">= 1", "< 3" gem "tzinfo-data" end # Performance-booster for watching directories on Windows -gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform? +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] # Lock jekyll-sass-converter to 2.x on Linux-musl if RUBY_PLATFORM =~ /linux-musl/