1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
Kazuhiro NISHIYAMA 2019-08-30 10:18:32 +09:00
parent 0a9d74f8cf
commit 500149709b
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'pp'
module Bundler::Molinillo
class Resolver

View file

@ -125,7 +125,10 @@ class Gem::Resolver
data = yield
$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
##