aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-19 16:04:32 +0100
committerMike McQuaid2016-09-19 16:04:32 +0100
commitc9d9e54de6c96ae440506dccb4cac4c77ad408ce (patch)
treed9f50b6c9acea6121a73f602fd9bd3230e804cb5 /Library/Homebrew/formulary.rb
parentc45119de75e70f32e3b3fdcccb210a88282a2f26 (diff)
downloadbrew-c9d9e54de6c96ae440506dccb4cac4c77ad408ce.tar.bz2
Fix `brew style` from #971.
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 4c20c2225..259e86dff 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -233,9 +233,9 @@ class Formulary
keg = kegs.detect(&:linked?) || kegs.detect(&:optlinked?) || kegs.max_by(&:version)
if keg
- from_keg(keg, spec, :alias_path => alias_path)
+ from_keg(keg, spec, alias_path: alias_path)
else
- factory(rack.basename.to_s, spec || :stable, :alias_path => alias_path)
+ factory(rack.basename.to_s, spec || :stable, alias_path: alias_path)
end
end
@@ -247,13 +247,13 @@ class Formulary
spec ||= tab.spec
f = if tap.nil?
- factory(keg.rack.basename.to_s, spec, :alias_path => alias_path)
+ factory(keg.rack.basename.to_s, spec, alias_path: alias_path)
else
begin
- factory("#{tap}/#{keg.rack.basename}", spec, :alias_path => alias_path)
+ factory("#{tap}/#{keg.rack.basename}", spec, alias_path: alias_path)
rescue FormulaUnavailableError
# formula may be migrated to different tap. Try to search in core and all taps.
- factory(keg.rack.basename.to_s, spec, :alias_path => alias_path)
+ factory(keg.rack.basename.to_s, spec, alias_path: alias_path)
end
end
f.build = tab