aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/resource.rb
AgeCommit message (Collapse)Author
2015-03-05checksums: switch to sha256 for bottles and new formulaeDominyk Tiller
Closes #37164. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-12Use attr_accessor for checksumJack Nagel
2015-01-08Remove the direct url writer from ResourceJack Nagel
2015-01-06Stop caching the downloader on the resource instanceJack Nagel
2014-12-31Don't attempt to detect version if URL is not setJack Nagel
2014-12-14Revert "Skip temporary directory when target directory is known"Jack Nagel
This reverts commit 028ee18b851497f8aede55004bcdcc5c16f087cc.
2014-12-14Skip temporary directory when target directory is knownJack Nagel
2014-12-13Validate arguments in Resource#stageJack Nagel
2014-12-05Pass the downloader a proxy object instead of the resourceJack Nagel
We need to limit the interface that is exposed to the downloader in order to make future changes easier. This will be important for work on new features, such as selecting a mirror from the command line. In the future, the existing Resource class will probably be split into multiple classes.
2014-12-05Download strategies should return a Pathname from cached_locationJack Nagel
2014-10-10Pull cache creation out of begin blockJack Nagel
2014-10-10Remove redundant commentsJack Nagel
2014-09-01Add Go language module, resourcesMisty De Meo
This introduces a new GoResource category of resource. GoResources have a specialized stage method which allows a resource to stage itself into a gopath. The new Go language module provides a one-liner to stage all GoResources present in the formula.
2014-09-01resource: escape slashes from download_nameMisty De Meo
This is useful to be able to write go resources using their package name as the resource name
2014-07-15Eagerly set the download strategyJack Nagel
2014-05-27Remove support for version "schemes", just pass version objects directlyJack Nagel
I'm not sure why I thought reinventing object instantiation was a good idea.
2014-05-27Remove some evals from formula DSLJack Nagel
The default arguments were removed from these methods long ago, so nothing is standing in the way of using define_method here.
2014-03-18Always use CurlDownloadStrategy for legacy patchesJack Nagel
Fixes #27671.
2014-03-13New patch implementation and DSLJack Nagel
This commit introduces a new patch implementation that supports checksums and caching. Patches are declared in blocks: patch do url ... sha1 ... end A strip level of -p1 is assumed. It can be overridden using a symbol argument: patch :p0 do url ... sha1 ... end Patches can be declared in stable, devel, and head blocks. This form is preferred over using conditionals. stable do # ... patch do url ... sha1 ... end end Embedded (__END__) patches are declared like so: patch :DATA patch :p0, :DATA Patches can also be embedded by passing a string. This makes it possible to provide multiple embedded patches while making only some of them conditional. patch :p0, "..."
2014-02-18Tweak DownloadError message to include wrapped exceptionJack Nagel
2014-02-18Collapse begin..end into def..end and use else clauseJack Nagel
2014-02-18Add DownloadError to catch a broader range of resource download errors.Drew Rodman
Adding a broader exception class allows for errors raised in Resource.fetch to be caught in upgrade and prevent the process from being killed when a download fails. This should resolve issue 18364. Fixes #18364. Closes #26618. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18Inline static exception text to remove a rescueJack Nagel
2013-12-08formula, resource: output when verifying checksum.Mike McQuaid
References #24566.
2013-11-27resource: convert unpack target to Pathname.Mike McQuaid
2013-11-06resource: only unpack to target if it exists.Mike McQuaid
2013-10-31fetch: clear partial downloads when --force is givenJack Nagel
Fixes #23764.
2013-10-30Resource: extract unpacking from #stageJack Nagel
Closes #23768.
2013-10-30Resource: push conditional down into #verify_download_integrityJack Nagel
2013-10-11Resource: do not mutate passed-in specs hashJack Nagel
2013-10-02Pass the mktemp prefix as an argumentJack Nagel
2013-09-23Clean up SoftwareSpec and Resource initializersJack Nagel
2013-09-17Allow partial installation of resourcesJack Nagel
2013-09-17More useful error message for missing checksumsJack Nagel
2013-09-17Reorganize resource download methodsJack Nagel
2013-09-17Move formula resources to SoftwareSpecJack Nagel
2013-09-17Reimplement SoftwareSpec on top of ResourceJack Nagel
2013-09-17Decouple Resource from SoftwareSpecJack Nagel
2013-09-16Cater to download strategies not yielding a fileSamuel Cochran
Closes #22580. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-09-13Remove unused attrJack Nagel
2013-09-11Implement ResourcesAdam Vandenberg
Closes #20212.