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
* Monkey Patch Listen::Record::SymlinkDetector#_fail
This removes the warning made from Ruby while still keeping it available with
the Listen.logger on :warn level
You can enable symlink warnings with `LISTEN_GEM_DEBUGGING=warn` when using retest
* Silence Ruby warnings when monkey patching Listen module
# lib/config/listen.rb:4: warning: method redefined; discarding old _fail
2
+
# ~/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/listen-3.8.0/lib/listen/record/symlink_detector.rb:35: warning: previous definition of _fail was here
3
+
4
+
# Runs a block of code without warnings.
5
+
defsilence_warnings(&block)
6
+
warn_level= $VERBOSE
7
+
$VERBOSE =nil
8
+
result=block.call
9
+
$VERBOSE =warn_level
10
+
result
11
+
end
12
+
13
+
silence_warningsdo
14
+
15
+
# TODO: Update monkey patch when decision is made about
0 commit comments