From f6095bbff8b2726a8aed496994ad4e8eb2de0674 Mon Sep 17 00:00:00 2001 From: "Mark J. Lehman" Date: Tue, 11 Feb 2020 21:36:03 -0800 Subject: [PATCH] Lock nokogiri for ruby < 2.4 --- Gemfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 99868eb2..bf07a08d 100644 --- a/Gemfile +++ b/Gemfile @@ -33,8 +33,11 @@ if RUBY_VERSION < '2' gem 'mime-types', [ '>= 2.6.2', '< 3' ] end -if RUBY_VERSION < '2.1' - gem 'nokogiri', '< 1.7' +if ENV['CI'] + if RUBY_VERSION < '2.4' + # Windows: An error occurred while installing nokogiri (1.8.0) + gem 'nokogiri', '< 1.7', platforms: @windows_platforms + end end # https://github.com/bundler/bundler/blob/89a8778c19269561926cea172acdcda241d26d23/lib/bundler/dependency.rb#L30-L54