(This is related to this question).
How can I suppress deprecation warnings in Ruby, until I find time to update the code? Example: The following command will generated a flip-flop is deprecated warning (the command itself is nonsense; I just wanted to provide a minimal, syntactically correct, example):
ruby -v -e '0 if /a/.../b/'
I already tried
ruby -e '$VERBOSE=nil;0 if /a/.../b/'
and, after installing the warning gem,
ruby -e 'require "warning";; Warning.ignore(/deprecated/) 0 if /a/.../b/'
but the warning is still printed to stderr. I don't want to redirect the whole stderr to the bit bucket, because I don't want to loose important messages.