mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Unify indentation of access modifiers
These are class method calls, not some special keyword, and should be indented as such (also all standard Ruby indenters do this).
This commit is contained in:
parent
349cdab76f
commit
9db0e68eb6
@ -23,7 +23,7 @@ module Homebrew extend self
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def list_unbrewed
|
||||
dirs = HOMEBREW_PREFIX.children.select{ |pn| pn.directory? }.map{ |pn| pn.basename.to_s }
|
||||
|
@ -45,7 +45,7 @@ class DependencyCollector
|
||||
parse_spec(spec, tag)
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def parse_spec spec, tag
|
||||
case spec
|
||||
|
@ -122,7 +122,8 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def chdir
|
||||
entries=Dir['*']
|
||||
case entries.length
|
||||
@ -493,7 +494,8 @@ class CVSDownloadStrategy < AbstractDownloadStrategy
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def split_url(in_url)
|
||||
parts=in_url.sub(%r[^cvs://], '').split(/:/)
|
||||
mod=parts.pop
|
||||
|
@ -528,7 +528,7 @@ class Formula
|
||||
|
||||
end
|
||||
|
||||
protected
|
||||
protected
|
||||
|
||||
# Pretty titles the command and buffers stdout/stderr
|
||||
# Throws if there's an error
|
||||
@ -593,7 +593,7 @@ protected
|
||||
end if removed_ENV_variables
|
||||
end
|
||||
|
||||
public
|
||||
public
|
||||
|
||||
# For brew-fetch and others.
|
||||
def fetch
|
||||
@ -621,7 +621,7 @@ public
|
||||
not self.class.instance_variable_get(:@test_defined).nil?
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def stage
|
||||
fetched, downloader = fetch
|
||||
|
@ -171,7 +171,8 @@ class Keg < Pathname
|
||||
from.make_relative_symlink(self)
|
||||
end
|
||||
|
||||
protected
|
||||
protected
|
||||
|
||||
def resolve_any_conflicts dst
|
||||
# if it isn't a directory then a severe conflict is about to happen. Let
|
||||
# it, and the exception that is generated will message to the user about
|
||||
|
@ -20,7 +20,7 @@ class Metafiles
|
||||
not include? file
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def include? p
|
||||
p = p.to_s # Might be a pathname
|
||||
|
@ -39,7 +39,7 @@ class Patches
|
||||
external_patches.each{|p| p.stage!}
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
def external_patches
|
||||
@patches.select{|p| p.external?}
|
||||
@ -112,7 +112,7 @@ class Patch
|
||||
[@url, '-o', @patch_filename]
|
||||
end
|
||||
|
||||
private
|
||||
private
|
||||
|
||||
# Detect compression type from the downloaded patch.
|
||||
def detect_compression!
|
||||
|
Loading…
x
Reference in New Issue
Block a user