require 'pp' before use PP
`Kernel#pp` has wrapper, but `PP` does not. https://github.com/ruby/ruby/runs/207405029#step:10:141 `NameError: uninitialized constant Bundler::Molinillo::Resolver::Resolution::PP`
This commit is contained in:
parent
0a9d74f8cf
commit
500149709b
@ -1,4 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
require 'pp'
|
||||||
|
|
||||||
module Bundler::Molinillo
|
module Bundler::Molinillo
|
||||||
class Resolver
|
class Resolver
|
||||||
|
@ -125,7 +125,10 @@ class Gem::Resolver
|
|||||||
|
|
||||||
data = yield
|
data = yield
|
||||||
$stderr.printf "%10s (%d entries)\n", stage.to_s.upcase, data.size
|
$stderr.printf "%10s (%d entries)\n", stage.to_s.upcase, data.size
|
||||||
PP.pp data, $stderr unless data.empty?
|
unless data.empty?
|
||||||
|
require 'pp'
|
||||||
|
PP.pp data, $stderr
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
x
Reference in New Issue
Block a user