Skip to content

Commit

Permalink
Fix CI against bundler's master
Browse files Browse the repository at this point in the history
Current run seems to be failing. I'm not sure exactly why, but using a
"more standard" trick for redefining the method seems to fix it.
  • Loading branch information
deivid-rodriguez committed Dec 6, 2019
1 parent 3fcc494 commit 001f6c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/rubygems/core_ext/kernel_warn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
module Kernel
path = "#{__dir__}/" # Frames to be skipped start with this path.

# Suppress "method redefined" warning
original_warn = instance_method(:warn)
Module.new {define_method(:warn, original_warn)}

original_warn = method(:warn)

remove_method :warn

class << self

remove_method :warn
Expand Down

0 comments on commit 001f6c8

Please sign in to comment.