Rubyisms
This commit is contained in:
parent
0f499ac7be
commit
2d4d0c4655
@ -188,7 +188,7 @@ class CurlUnsafeDownloadStrategy < CurlDownloadStrategy
|
|||||||
end
|
end
|
||||||
|
|
||||||
# This strategy extracts our binary packages.
|
# This strategy extracts our binary packages.
|
||||||
class CurlBottleDownloadStrategy <CurlDownloadStrategy
|
class CurlBottleDownloadStrategy < CurlDownloadStrategy
|
||||||
def initialize url, name, version, specs
|
def initialize url, name, version, specs
|
||||||
super
|
super
|
||||||
@tarball_path = HOMEBREW_CACHE/"#{name}-#{version}.bottle#{ext}"
|
@tarball_path = HOMEBREW_CACHE/"#{name}-#{version}.bottle#{ext}"
|
||||||
@ -199,7 +199,7 @@ class CurlBottleDownloadStrategy <CurlDownloadStrategy
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class SubversionDownloadStrategy <AbstractDownloadStrategy
|
class SubversionDownloadStrategy < AbstractDownloadStrategy
|
||||||
def initialize url, name, version, specs
|
def initialize url, name, version, specs
|
||||||
super
|
super
|
||||||
@unique_token="#{name}--svn" unless name.to_s.empty? or name == '__UNKNOWN__'
|
@unique_token="#{name}--svn" unless name.to_s.empty? or name == '__UNKNOWN__'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user