Skip to content

Commit

Permalink
Fix legacy specs
Browse files Browse the repository at this point in the history
loofah >= 2.21.0 raise an issue when starting old Ruby versions

```
lib/loofah/html4/document.rb:10:in `<module:HTML4>': uninitialized constant Nokogiri::HTML4 (NameError)
```

Ref: flavorjones/loofah#266
  • Loading branch information
tagliala committed Jun 2, 2023
1 parent 9868dde commit bec0feb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gem "rails", "~> 5.0.0"

# Fix code coverage on old Ruby versions
if RUBY_VERSION < '2.5'
gem 'loofah', '~> 2.20.0'
gem 'simplecov', '< 0.18.0'
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gem "rails", "~> 5.1.0"

# Fix code coverage on old Ruby versions
if RUBY_VERSION < '2.5'
gem 'loofah', '~> 2.20.0'
gem 'simplecov', '< 0.18.0'
end

Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ end

# Fix code coverage on old Ruby versions
if RUBY_VERSION < '2.5'
gem 'loofah', '~> 2.20.0'
gem 'simplecov', '< 0.18.0'
end

Expand Down

0 comments on commit bec0feb

Please sign in to comment.