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:
		
							parent
							
								
									0a9d74f8cf
								
							
						
					
					
						commit
						500149709b
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
# frozen_string_literal: true
 | 
			
		||||
require 'pp'
 | 
			
		||||
 | 
			
		||||
module Bundler::Molinillo
 | 
			
		||||
  class Resolver
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
 | 
			
		||||
  ##
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue