Add logger as dependency to address the warning in Ruby 3.4 #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request has been created to address the
warning of loading logger gem from standard library
in Ruby 3.4. It will cause an error in Ruby 3.5.The reason this warning started appearing is due to changes in the bundled gems for Ruby 3.5.
https://bugs.ruby-lang.org/issues/20309
Steps to reproduce
The steps to reproduce the warning are as follows:
Expected behavior
With Ruby 3.3 and earlier, it works like this:
Changes
This Pull Request changes to add
logger
as a runtime dependency to fix the warning in Ruby 3.4.Additional information
In mercenary,
logger
is used as follows:https://github.com/jekyll/mercenary/blob/main/lib/mercenary.rb#L5