aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/patch.rb
AgeCommit message (Collapse)Author
2014-07-10Fix method signatureJack Nagel
2014-07-10Legacy patches are never StringIOsJack Nagel
2014-07-01Always use class.name to build inspect stringsJack Nagel
2014-03-18Remove redundant methodJack Nagel
This already happens in the superclass.
2014-03-18Always use CurlDownloadStrategy for legacy patchesJack Nagel
Fixes Homebrew/homebrew#27671.
2014-03-15Set patch name on initializationJack Nagel
2014-03-14Remove use of Forwardable from ExternalPatchJack Nagel
2014-03-14Ensure patch cache path is unique even when checksum is missingJack Nagel
2014-03-13Add inspect methods to patch classesJack Nagel
2014-03-13Drop version from cached patch filenamesJack Nagel
2014-03-13Teach audit about new patches implementationJack Nagel
2014-03-13Teach fetch to download patchesJack Nagel
2014-03-13Enable new patch implementation with compatibility layerJack Nagel
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, "..."