Use Formula tap methods
This commit is contained in:
		
							parent
							
								
									2d83c08592
								
							
						
					
					
						commit
						6a0720071e
					
				@ -13,8 +13,8 @@ class FormulaVersions
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def repository
 | 
			
		||||
    @repository ||= if f.path.to_s =~ HOMEBREW_TAP_DIR_REGEX
 | 
			
		||||
      HOMEBREW_REPOSITORY/"Library/Taps/#$1/#$2"
 | 
			
		||||
    @repository ||= if f.tap?
 | 
			
		||||
      HOMEBREW_LIBRARY.join("Taps", f.tap)
 | 
			
		||||
    else
 | 
			
		||||
      HOMEBREW_REPOSITORY
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user