fix warnings: ambiguous first arg

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jamie Macey 2010-10-25 21:12:41 -07:00 committed by Adam Vandenberg
parent c61204eb1e
commit 1e41264f42
4 changed files with 8 additions and 8 deletions

View File

@ -192,7 +192,7 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy
def get_externals def get_externals
`'#{shell_quote(svn)}' propget svn:externals '#{shell_quote(@url)}'`.chomp.each_line do |line| `'#{shell_quote(svn)}' propget svn:externals '#{shell_quote(@url)}'`.chomp.each_line do |line|
name, url = line.split /\s+/ name, url = line.split(/\s+/)
yield name, url yield name, url
end end
end end

View File

@ -79,27 +79,27 @@ module HomebrewEnvExtension
# recommended by Apple, but, eg. wget won't compile with this flag, so… # recommended by Apple, but, eg. wget won't compile with this flag, so…
def fast def fast
remove_from_cflags /-O./ remove_from_cflags(/-O./)
append_to_cflags '-fast' append_to_cflags '-fast'
end end
def O4 def O4
# LLVM link-time optimization # LLVM link-time optimization
remove_from_cflags /-O./ remove_from_cflags(/-O./)
append_to_cflags '-O4' append_to_cflags '-O4'
end end
def O3 def O3
# Sometimes O4 just takes fucking forever # Sometimes O4 just takes fucking forever
remove_from_cflags /-O./ remove_from_cflags(/-O./)
append_to_cflags '-O3' append_to_cflags '-O3'
end end
def O2 def O2
# Sometimes O3 doesn't work or produces bad binaries # Sometimes O3 doesn't work or produces bad binaries
remove_from_cflags /-O./ remove_from_cflags(/-O./)
append_to_cflags '-O2' append_to_cflags '-O2'
end end
def Os def Os
# Sometimes you just want a small one # Sometimes you just want a small one
remove_from_cflags /-O./ remove_from_cflags(/-O./)
append_to_cflags '-Os' append_to_cflags '-Os'
end end

View File

@ -156,7 +156,7 @@ class Pathname
# eg. otp_src_R13B (this is erlang's style) # eg. otp_src_R13B (this is erlang's style)
# eg. astyle_1.23_macosx.tar.gz # eg. astyle_1.23_macosx.tar.gz
stem.scan /_([^_]+)/ do |match| stem.scan(/_([^_]+)/) do |match|
return match.first if /\d/.match $1 return match.first if /\d/.match $1
end end

View File

@ -1,5 +1,5 @@
class String class String
def undent def undent
gsub /^.{#{slice(/^ +/).length}}/, '' gsub(/^.{#{slice(/^ +/).length}}/, '')
end end
end end