mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-02 21:49:49 -05:00
Remove downloader from Formula
This commit is contained in:
1 parent
9880ace3ed
commit
37b3bbbc11
3 files changed
+3
-7
No files matched your search
@@ -119,16 +119,12 @@ class Formula
|
||||
active_spec.requirements
|
||||
end
|
||||
|
||||
def downloader
|
||||
active_spec.downloader
|
||||
end
|
||||
|
||||
def cached_download
|
||||
downloader.cached_location
|
||||
active_spec.cached_download
|
||||
end
|
||||
|
||||
def clear_cache
|
||||
downloader.clear_cache
|
||||
active_spec.clear_cache
|
||||
end
|
||||
|
||||
# if the dir is there, but it's empty we consider it not installed
|
||||
|
||||
@@ -15,6 +15,7 @@ class SoftwareSpec
|
||||
|
||||
def_delegators :@resource, :stage, :fetch
|
||||
def_delegators :@resource, :download_strategy, :verify_download_integrity
|
||||
def_delegators :@resource, :cached_download, :clear_cache
|
||||
def_delegators :@resource, :checksum, :mirrors, :specs, :using, :downloader
|
||||
def_delegators :@resource, :version, :mirror, *Checksum::TYPES
|
||||
|
||||
|
||||
@@ -161,7 +161,6 @@ class FormulaTests < Test::Unit::TestCase
|
||||
assert_equal 'http://example.com', f.homepage
|
||||
assert_version_equal '0.1', f.version
|
||||
assert_equal f.stable, f.active_spec
|
||||
assert_instance_of CurlDownloadStrategy, f.downloader
|
||||
|
||||
assert_instance_of SoftwareSpec, f.stable
|
||||
assert_instance_of Bottle, f.bottle
|
||||
|
||||
Reference in new issue
Block a user