Skip to content

Commit

Permalink
Lock loofah on Ruby < 2.5 on Rails <= 5.2
Browse files Browse the repository at this point in the history
There's some incompatibility issue with loofah there since it uses an
older version of nokogiri, so I'm locking it on those older versions to
try to get a green build again there.
  • Loading branch information
carlosantoniodasilva committed Oct 10, 2023
1 parent 773e679 commit 0c97408
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-rails-4-1
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ if RUBY_VERSION < "2.3.0"
# `Object.deprecate_constant` which isn't available.
gem "multipart-post", "2.1.1"
end

if RUBY_VERSION < "2.5.0"
# There's a build incompatibility issue with nokogiri and loofah
gem "loofah", "~> 2.20.0"
end
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-rails-4-2
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ if RUBY_VERSION < "2.3.0"
# `Object.deprecate_constant` which isn't available.
gem "multipart-post", "2.1.1"
end

if RUBY_VERSION < "2.5.0"
# There's a build incompatibility issue with nokogiri and loofah
gem "loofah", "~> 2.20.0"
end
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-rails-5-0
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ if RUBY_VERSION < "2.3.0"
# `Object.deprecate_constant` which isn't available.
gem "multipart-post", "2.1.1"
end

if RUBY_VERSION < "2.5.0"
# There's a build incompatibility issue with nokogiri and loofah
gem "loofah", "~> 2.20.0"
end
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-rails-5-1
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ if RUBY_VERSION < "2.3.0"
# `Object.deprecate_constant` which isn't available.
gem "multipart-post", "2.1.1"
end

if RUBY_VERSION < "2.5.0"
# There's a build incompatibility issue with nokogiri and loofah
gem "loofah", "~> 2.20.0"
end
5 changes: 5 additions & 0 deletions gemfiles/Gemfile-rails-5-2
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ end
platforms :ruby do
gem "sqlite3", "~> 1.3.6"
end

if RUBY_VERSION < "2.5.0"
# There's a build incompatibility issue with nokogiri and loofah
gem "loofah", "~> 2.20.0"
end

0 comments on commit 0c97408

Please sign in to comment.