-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the Ruby win32 warning patch to work on Ruby 2.5
The warning text code changed in Ruby 2.6 so we need a patch that works in Ruby 2.5 since we still ship apps that use Ruby 2.5. Signed-off-by: Tim Smith <tsmith@chef.io>
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
config/patches/ruby/ruby-win32_warning_removal_25_and_below.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/ext/win32/lib/Win32API.rb | ||
+++ b/ext/win32/lib/Win32API.rb | ||
@@ -1,9 +1,6 @@ | ||
# -*- ruby -*- | ||
# 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 | ||
- | ||
require 'fiddle/import' | ||
|
||
class Win32API |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters