You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. 👋 I'm experiencing a bunch of warnings in my console and spec output when using this gem due to running Ruby with -W:strict_unused_block as my RUBYOPT setting. Example:
$HOME/.cache/frum/versions/3.4.2/lib/ruby/3.4.0/delegate.rb:84: warning: the block passed to 'WeakRef#__getobj__' defined at $HOME/.cache/frum/versions/3.4.2/lib/ruby/3.4.0/weakref.rb:44 may be ignored
The problem is that a block is being passed but never used. Would it be possible to fix this issue so the warning doesn't appear?
How
To recreate, you should only need the RUPYOPT setting enabled as shown above or running the test suite for this gem with Warning[:strict_unused_block] = true would do it as well.
The text was updated successfully, but these errors were encountered:
Why
Hello. 👋 I'm experiencing a bunch of warnings in my console and spec output when using this gem due to running Ruby with
-W:strict_unused_block
as myRUBYOPT
setting. Example:The problem is that a block is being passed but never used. Would it be possible to fix this issue so the warning doesn't appear?
How
To recreate, you should only need the
RUPYOPT
setting enabled as shown above or running the test suite for this gem withWarning[:strict_unused_block] = true
would do it as well.The text was updated successfully, but these errors were encountered: