diff options
| author | Jack Nagel | 2013-03-12 00:38:52 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-03-12 00:38:52 -0500 | 
| commit | e5a103b3b8b4e0c2cd2fd76f5f8832bfcfc071c0 (patch) | |
| tree | a5f43586a3b5bd8264f3b7549de466ee21e4b4db /Library/Homebrew/formula_support.rb | |
| parent | 17d863112744e0d8abd426ede2a5881b7d9a1bcb (diff) | |
| download | homebrew-e5a103b3b8b4e0c2cd2fd76f5f8832bfcfc071c0.tar.bz2 | |
Pass filename and lineno arguments to class_eval
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 23472547f..4c044c53a 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -32,7 +32,7 @@ class SoftwareSpec    # The methods that follow are used in the block-form DSL spec methods    Checksum::TYPES.each do |cksum| -    class_eval %Q{ +    class_eval <<-EOS, __FILE__, __LINE__ + 1        def #{cksum}(val=nil)          if val.nil?            @checksum if @checksum.nil? or @checksum.hash_type == :#{cksum} @@ -40,7 +40,7 @@ class SoftwareSpec            @checksum = Checksum.new(:#{cksum}, val)          end        end -    } +    EOS    end    def url val=nil, specs={} @@ -93,7 +93,7 @@ class Bottle < SoftwareSpec    # Checksum methods in the DSL's bottle block optionally take    # a Hash, which indicates the platform the checksum applies on.    Checksum::TYPES.each do |cksum| -    class_eval %Q{ +    class_eval <<-EOS, __FILE__, __LINE__ + 1        def #{cksum}(val=nil)          @#{cksum} ||= Hash.new          case val @@ -111,7 +111,7 @@ class Bottle < SoftwareSpec            @cat_without_underscores = true          end        end -    } +    EOS    end    def root_url val=nil  | 
