Class: Pod::Specification::Linter::Analyzer

Inherits:
Object
  • Object
show all
Defined in:
lib/pod_builder/install.rb

Overview

We swizzle the analyzer to inject spec overrides

Instance Method Summary collapse

Instance Method Details

#analyze(*args) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/pod_builder/install.rb', line 8

def analyze(*args)
  spec = consumer.spec
  if overrides = PodBuilder::Configuration.spec_overrides[spec.name]
    overrides.each do |k, v|
      spec.attributes_hash[k] = v
    end
  end

  return swz_analyze
end

#swz_analyzeObject



6
# File 'lib/pod_builder/install.rb', line 6

alias_method :swz_analyze, :analyze