diff options
| author | Jack Nagel | 2013-02-17 22:48:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-18 12:13:34 -0600 |
| commit | ee25d02d54aeb4c3a0c75b4cdee276706f610576 (patch) | |
| tree | 6858bd34244fc3ea2d7613773a9435ee72eb9934 /Library | |
| parent | 923a00ca08f70448e4e4b73d08f0d9eed400c98b (diff) | |
| download | homebrew-ee25d02d54aeb4c3a0c75b4cdee276706f610576.tar.bz2 | |
Silence "`*` interpreted as argument prefix" warnings
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb index 41a811a1a..716fdf488 100644 --- a/Library/Homebrew/compat/compatibility.rb +++ b/Library/Homebrew/compat/compatibility.rb @@ -244,7 +244,7 @@ end class Version def slice *args opoo "Calling slice on versions is deprecated, use: to_s.slice" - to_s.slice *args + to_s.slice(*args) end end diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index a1dcb101d..1326a017b 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -134,13 +134,13 @@ class BuildError < Homebrew::InstallationError onoe "#{formula.name} did not build" unless (logs = Dir["#{ENV['HOME']}/Library/Logs/Homebrew/#{formula}/*"]).empty? print "Logs: " - puts *logs.map{|fn| " #{fn}"} + puts logs.map{|fn| " #{fn}"}.join("\n") end end puts unless issues.empty? puts "These open issues may also help:" - puts *issues.map{ |s| " #{s}" } + puts issues.map{ |s| " #{s}" }.join("\n") end end end |
