aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-21 08:32:57 +0200
committerMarkus Reiter2016-09-23 15:30:06 +0200
commit42efb44e7d942e9b96ec40f29e5c79e9f7b1e250 (patch)
tree9ad6e4a2262c818ac5204724ddea99ce4e6f5439 /Library/Homebrew
parent3540c94df6ff6d1e6d7baadde74e1d27ad066c6b (diff)
downloadbrew-42efb44e7d942e9b96ec40f29e5c79e9f7b1e250.tar.bz2
Fix Lint/EndAlignment.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/dependency_collector.rb8
-rw-r--r--Library/Homebrew/download_strategy.rb11
-rw-r--r--Library/Homebrew/keg.rb8
3 files changed, 15 insertions, 12 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index 99aa2db9a..0b35e7fb4 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -165,11 +165,11 @@ class DependencyCollector
def parse_url_spec(url, tags)
case File.extname(url)
- when ".xz" then Dependency.new("xz", tags)
+ when ".xz" then Dependency.new("xz", tags)
when ".lha", ".lzh" then Dependency.new("lha", tags)
- when ".lz" then Dependency.new("lzip", tags)
- when ".rar" then Dependency.new("unrar", tags)
- when ".7z" then Dependency.new("p7zip", tags)
+ when ".lz" then Dependency.new("lzip", tags)
+ when ".rar" then Dependency.new("unrar", tags)
+ when ".7z" then Dependency.new("p7zip", tags)
end
end
end
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 048153c16..2762f01b0 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -696,7 +696,8 @@ class GitDownloadStrategy < VCSDownloadStrategy
args << "--depth" << "1" if shallow_clone?
case @ref_type
- when :branch, :tag then args << "--branch" << @ref
+ when :branch, :tag
+ args << "--branch" << @ref
end
args << @url << cached_location
@@ -741,9 +742,11 @@ class GitDownloadStrategy < VCSDownloadStrategy
def reset_args
ref = case @ref_type
- when :branch then "origin/#{@ref}"
- when :revision, :tag then @ref
- end
+ when :branch
+ "origin/#{@ref}"
+ when :revision, :tag
+ @ref
+ end
%W[reset --hard #{ref}]
end
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index ecbc4c6e0..db3705bc1 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -249,10 +249,10 @@ class Keg
def completion_installed?(shell)
dir = case shell
- when :bash then path.join("etc", "bash_completion.d")
- when :zsh then path.join("share", "zsh", "site-functions")
- when :fish then path.join("share", "fish", "vendor_completions.d")
- end
+ when :bash then path.join("etc", "bash_completion.d")
+ when :zsh then path.join("share", "zsh", "site-functions")
+ when :fish then path.join("share", "fish", "vendor_completions.d")
+ end
dir && dir.directory? && !dir.children.empty?
end