Module: Pod

Defined in:
lib/cocoapods-core.rb,
lib/cocoapods-core/http.rb,
lib/cocoapods-core/github.rb,
lib/cocoapods-core/vendor.rb,
lib/cocoapods-core/source.rb,
lib/cocoapods-core/core_ui.rb,
lib/cocoapods-core/podfile.rb,
lib/cocoapods-core/metrics.rb,
lib/cocoapods-core/version.rb,
lib/cocoapods-core/lockfile.rb,
lib/cocoapods-core/platform.rb,
lib/cocoapods-core/dependency.rb,
lib/cocoapods-core/podfile/dsl.rb,
lib/cocoapods-core/yaml_helper.rb,
lib/cocoapods-core/gem_version.rb,
lib/cocoapods-core/requirement.rb,
lib/cocoapods-core/specification.rb,
lib/cocoapods-core/standard_error.rb,
lib/cocoapods-core/source/acceptor.rb,
lib/cocoapods-core/source/aggregate.rb,
lib/cocoapods-core/specification/dsl.rb,
lib/cocoapods-core/specification/set.rb,
lib/cocoapods-core/specification/json.rb,
lib/cocoapods-core/specification/linter.rb,
lib/cocoapods-core/source/health_reporter.rb,
lib/cocoapods-core/specification/consumer.rb,
lib/cocoapods-core/podfile/target_definition.rb,
lib/cocoapods-core/specification/linter/result.rb,
lib/cocoapods-core/specification/set/presenter.rb,
lib/cocoapods-core/specification/dsl/attribute.rb,
lib/cocoapods-core/specification/linter/analyzer.rb,
lib/cocoapods-core/specification/dsl/deprecations.rb,
lib/cocoapods-core/specification/dsl/platform_proxy.rb,
lib/cocoapods-core/specification/dsl/attribute_support.rb,
lib/cocoapods-core/specification/root_attribute_accessors.rb

Overview

The Pod modules name-spaces all the classes of CocoaPods.

Defined Under Namespace

Modules: CoreUI, GitHub, HTTP, Metrics, Vendor Classes: DSLError, Dependency, Informative, Lockfile, PlainInformative, Platform, Podfile, Requirement, Source, Specification, StandardError, Version, YAMLHelper

Constant Summary collapse

Spec =

TODO: Fix

Specification
CORE_VERSION =
'0.38.0.beta.2'

Validation collapse

Class Method Details

._eval_podspec(string, path) ⇒ Object (private)

Evaluates the given string in the namespace of the Pod module.

Parameters:

  • string (String)

    The string containing the Ruby description of the Object to evaluate.

  • path (Pathname)

    The path where the object to evaluate is stored.

Returns:

  • (Object)

    it can return any object but, is expected to be called on podspec files that should return a #Specification.


620
621
622
623
624
625
626
627
628
629
630
# File 'lib/cocoapods-core/specification.rb', line 620

def self._eval_podspec(string, path)
  # rubocop:disable Eval
  eval(string, nil, path.to_s)
  # rubocop:enable Eval

  # rubocop:disable Lint/RescueException
rescue Exception => e
  # rubocop:enable Lint/RescueException
  message = "Invalid `#{path.basename}` file: #{e.message}"
  raise DSLError.new(message, path, e.backtrace, string)
end