ruby-changes:50856
From: nobu <ko1@a...>
Date: Mon, 2 Apr 2018 21:39:07 +0900 (JST)
Subject: [ruby-changes:50856] nobu:r63063 (trunk): Win32API.rb: use uplevel option to warn
nobu 2018-04-02 21:39:01 +0900 (Mon, 02 Apr 2018) New Revision: 63063 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63063 Log: Win32API.rb: use uplevel option to warn Also warns always regardless $VERBOSE. Modified files: trunk/ext/win32/lib/Win32API.rb Index: ext/win32/lib/Win32API.rb =================================================================== --- ext/win32/lib/Win32API.rb (revision 63062) +++ ext/win32/lib/Win32API.rb (revision 63063) @@ -2,7 +2,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/Win32API.rb#L2 # frozen_string_literal: true # for backward compatibility -warn "Warning:#{caller[0].sub(/:in `.*'\z/, '')}: Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead" if $VERBOSE +warn "Win32API is deprecated after Ruby 1.9.1; use fiddle directly instead", uplevel: 2 require 'fiddle/import' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/