 dad1939142
			
		
	
	
		dad1939142
		
			
		
	
	
	
	
		
			
			- rename to `homebrew_bootsnap.rb` to avoid conflicting with the `bootsnap.rb` we need to `require` - if the `require` fails: run bundler (until we vendor this gem)
		
			
				
	
	
		
			18 lines
		
	
	
		
			345 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			345 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: true
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| require "pathname"
 | |
| 
 | |
| HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath.freeze
 | |
| 
 | |
| $LOAD_PATH.push HOMEBREW_LIBRARY_PATH.to_s
 | |
| 
 | |
| require "vendor/bundle/bundler/setup"
 | |
| 
 | |
| if ENV["HOMEBREW_BOOTSNAP"]
 | |
|   require "homebrew_bootsnap"
 | |
| else
 | |
|   $LOAD_PATH.select! { |d| Pathname(d).directory? }
 | |
|   $LOAD_PATH.uniq!
 | |
| end
 |