diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-08-30 10:18:32 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-08-30 10:21:50 +0900 |
commit | 500149709b92ccb36396589a0c39afb3ff77bfb6 (patch) | |
tree | f65cc2bd31300f8bd85d48ca3d7a96e94f368c0f /lib/rubygems | |
parent | 0a9d74f8cf1c01300d0396ce3cb4da81d3652d5a (diff) | |
download | ruby-500149709b92ccb36396589a0c39afb3ff77bfb6.tar.gz |
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`
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/resolver.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rubygems/resolver.rb b/lib/rubygems/resolver.rb index f74995713b..ea9687bdbf 100644 --- a/lib/rubygems/resolver.rb +++ b/lib/rubygems/resolver.rb @@ -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 ## |