From 8039e7d108091df63fe23a3e3bd28b659305c855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 29 May 2023 20:46:13 +0200 Subject: [PATCH] Fix Ruby 2.4 test failures re: loofah + nokogiri Loofah 2.21 started depending on a Nokogiri "HTML4" feature that is not available in a version of Nokogiri compatible with Ruby 2.4. --- environments/Gemfile.rails5.0.rb | 3 +++ environments/Gemfile.rails5.1.rb | 3 +++ environments/Gemfile.rails5.2.rb | 3 +++ 3 files changed, 9 insertions(+) diff --git a/environments/Gemfile.rails5.0.rb b/environments/Gemfile.rails5.0.rb index cce5428b..0a01c38d 100644 --- a/environments/Gemfile.rails5.0.rb +++ b/environments/Gemfile.rails5.0.rb @@ -13,3 +13,6 @@ gem 'mysql2', '~> 0.5.2', :group => :mysql gem 'pg', '~> 1.2.3', :group => :pg + +# ruby 2.4 compat re: nokogiri +gem 'loofah', '< 2.21.0' diff --git a/environments/Gemfile.rails5.1.rb b/environments/Gemfile.rails5.1.rb index 895d7d7a..a105adca 100644 --- a/environments/Gemfile.rails5.1.rb +++ b/environments/Gemfile.rails5.1.rb @@ -12,3 +12,6 @@ gem 'mysql2', '~> 0.5.2', :group => :mysql gem 'pg', '~> 1.2.3', :group => :pg + +# ruby 2.4 compat re: nokogiri +gem 'loofah', '< 2.21.0' diff --git a/environments/Gemfile.rails5.2.rb b/environments/Gemfile.rails5.2.rb index 606e296c..c3d08a8a 100644 --- a/environments/Gemfile.rails5.2.rb +++ b/environments/Gemfile.rails5.2.rb @@ -11,3 +11,6 @@ gem 'sqlite3', '~> 1.3.6' gem 'mysql2', '~> 0.5.2', :group => :mysql gem 'pg', '~> 1.2.3', :group => :pg + +# ruby 2.4 compat re: nokogiri +gem 'loofah', '< 2.21.0'