diff options
| author | Jack Nagel | 2014-07-29 16:06:07 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-29 16:22:06 -0500 | 
| commit | 893775c7b4df963ee68d8f4f46bbe2e644768b02 (patch) | |
| tree | 5988635c715e8cca1766674cb45cbbec986d9af1 /Library/Homebrew/software_spec.rb | |
| parent | f3cb1d2b0614e3dcfe2e2911e65bfd24511a2fc2 (diff) | |
| download | homebrew-893775c7b4df963ee68d8f4f46bbe2e644768b02.tar.bz2 | |
Simplify internal representation of patches
 - remove support for IO objects, since we no longer access ::DATA
   directly
 - since we don't need to support IO objects, use a separate class for
   string patches and stop wrapping strings in StringIO ojects
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index fb29ad5a6..e173cb476 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -90,8 +90,8 @@ class SoftwareSpec      dependency_collector.requirements    end -  def patch strip=:p1, io=nil, &block -    patches << Patch.create(strip, io, &block) +  def patch strip=:p1, src=nil, &block +    patches << Patch.create(strip, src, &block)    end    def add_legacy_patches(list) | 
