fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
c61204eb1e
commit
1e41264f42
@ -192,7 +192,7 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy
|
||||
|
||||
def get_externals
|
||||
`'#{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
|
||||
end
|
||||
end
|
||||
|
||||
@ -79,27 +79,27 @@ module HomebrewEnvExtension
|
||||
|
||||
# recommended by Apple, but, eg. wget won't compile with this flag, so…
|
||||
def fast
|
||||
remove_from_cflags /-O./
|
||||
remove_from_cflags(/-O./)
|
||||
append_to_cflags '-fast'
|
||||
end
|
||||
def O4
|
||||
# LLVM link-time optimization
|
||||
remove_from_cflags /-O./
|
||||
remove_from_cflags(/-O./)
|
||||
append_to_cflags '-O4'
|
||||
end
|
||||
def O3
|
||||
# Sometimes O4 just takes fucking forever
|
||||
remove_from_cflags /-O./
|
||||
remove_from_cflags(/-O./)
|
||||
append_to_cflags '-O3'
|
||||
end
|
||||
def O2
|
||||
# Sometimes O3 doesn't work or produces bad binaries
|
||||
remove_from_cflags /-O./
|
||||
remove_from_cflags(/-O./)
|
||||
append_to_cflags '-O2'
|
||||
end
|
||||
def Os
|
||||
# Sometimes you just want a small one
|
||||
remove_from_cflags /-O./
|
||||
remove_from_cflags(/-O./)
|
||||
append_to_cflags '-Os'
|
||||
end
|
||||
|
||||
|
||||
@ -156,7 +156,7 @@ class Pathname
|
||||
|
||||
# eg. otp_src_R13B (this is erlang's style)
|
||||
# eg. astyle_1.23_macosx.tar.gz
|
||||
stem.scan /_([^_]+)/ do |match|
|
||||
stem.scan(/_([^_]+)/) do |match|
|
||||
return match.first if /\d/.match $1
|
||||
end
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
class String
|
||||
def undent
|
||||
gsub /^.{#{slice(/^ +/).length}}/, ''
|
||||
gsub(/^.{#{slice(/^ +/).length}}/, '')
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user