Using roo gem on Windows with the following code:
workbook = Roo::Excel.new 'test.xls'
[DEPRECATION] extend Roo::Tempdir and use its .make_tempdir instead
The correct fix would be to not use the deprecated method and instead use the recommended one. However, in this case, it's not you who is using the deprecated method, it's the author of
make_tmpdir do |tmpdir| # …
So, the only things you can do are:
roo-xls, preferably with a pull request fixing the issue (actually, the former was already done for you)
original_warning_level = $VERBOSE $VERBOSE = nil workbook = Roo::Excel.new 'test.xls' $VERBOSE = original_warning_level