diff options
| author | Jack Nagel | 2014-08-03 10:47:47 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-08-03 10:47:47 -0500 | 
| commit | 8a049505cef82da2209c38943bb687ebea18bb9a (patch) | |
| tree | 75fee55ff23fcc7725908381e3d5646c4b7c26a1 /Library/Homebrew/compilers.rb | |
| parent | f6f1371149e3da645f63005acec548ad27bcf812 (diff) | |
| download | homebrew-8a049505cef82da2209c38943bb687ebea18bb9a.tar.bz2 | |
Rename compiler attribute to name
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 34b7d6963..b9fb9e199 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -12,7 +12,7 @@ class Compiler < Struct.new(:name, :version, :priority)  end  class CompilerFailure -  attr_reader :compiler, :major_version +  attr_reader :name, :major_version    attr_rw :cause, :version    # Allows Apple compiler `fails_with` statements to keep using `build` @@ -29,20 +29,20 @@ class CompilerFailure      # Non-Apple compilers are in the format fails_with compiler => version      if spec.is_a?(Hash)        _, major_version = spec.first -      compiler = "gcc-#{major_version}" +      name = "gcc-#{major_version}"        # so fails_with :gcc => '4.8' simply marks all 4.8 releases incompatible        version = "#{major_version}.999"      else -      compiler = spec +      name = spec        version = 9999        major_version = nil      end -    new(compiler, version, major_version, &block) +    new(name, version, major_version, &block)    end -  def initialize(compiler, version, major_version, &block) -    @compiler = compiler +  def initialize(name, version, major_version, &block) +    @name = name      @version = version      @major_version = major_version      instance_eval(&block) if block_given? | 
