Skip to content

Commit

Permalink
loofahの依存でエラーになってしまうのに対応
Browse files Browse the repository at this point in the history
- https://github.com/willnet/health_check/actions/runs/11607894411/job/32322128959#step:4:58
> Using nokogiri 1.10.10

- uninitialized constant Nokogiri::HTML4
- [Getting errors using Nokogiri < 1.12 · Issue #266 · flavorjones/loofah](flavorjones/loofah#266) をざっくり見ると、loofarのバージョンで新しいやつにすると、新しいnokogiri(>=1.12.x)にしかない定数を参照してしまう、という話かな
- loofahの2.21.2以降では対応している(nokotiri >=1.12)
- loofahのバージョンを低くする必要があるんだけどいくつだろうな
- ↑ではUsing loofah 2.21.1
	- 2.21.0でLoofar::HTML4が入ったのでそれ未満かな
  • Loading branch information
willnet committed Oct 31, 2024
1 parent c2064c6 commit c70e127
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/rails_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ source 'https://rubygems.org'
gem 'rails', '~> 5.1.0'
gem 'rake', '>= 0.8.7'
gem 'sqlite3', "~> 1.3.7"
gem 'loofah', '<= 2.20.0'

gemspec(path: '../')

0 comments on commit c70e127

Please sign in to comment.