Module: Pod

Defined in:
lib/cocoapods-core.rb,
lib/cocoapods-core/source.rb,
lib/cocoapods-core/vendor.rb,
lib/cocoapods-core/core_ui.rb,
lib/cocoapods-core/podfile.rb,
lib/cocoapods-core/version.rb,
lib/cocoapods-core/lockfile.rb,
lib/cocoapods-core/platform.rb,
lib/cocoapods-core/dependency.rb,
lib/cocoapods-core/gem_version.rb,
lib/cocoapods-core/podfile/dsl.rb,
lib/cocoapods-core/requirement.rb,
lib/cocoapods-core/specification.rb,
lib/cocoapods-core/standard_error.rb,
lib/cocoapods-core/yaml_converter.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/yaml.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/dsl/attribute.rb,
lib/cocoapods-core/specification/set/presenter.rb,
lib/cocoapods-core/specification/set/statistics.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, Vendor Classes: DSLError, Dependency, Informative, Lockfile, PlainInformative, Platform, Podfile, Requirement, Source, Specification, StandardError, Version, YAMLConverter

Constant Summary collapse

Spec =

TODO: Fix

Specification
FileList =
Rake::FileList
CORE_VERSION =

The version of the cocoapods-core.

'0.18.1'

File representation collapse

Class Method Details

._eval_podspec(path) ⇒ Object

Evaluates the file at the given path in the namespace of the Pod module.

Returns:

  • (Object)

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



574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/cocoapods-core/specification.rb', line 574

def self._eval_podspec(path)
  string = File.open(path, 'r:utf-8')  { |f| f.read }
  # Work around for Rubinius incomplete encoding in 1.9 mode
  if string.respond_to?(:encoding) && string.encoding.name != "UTF-8"
    string.encode!('UTF-8')
  end

  begin
    eval(string, nil, path.to_s)
  rescue Exception => e
    raise DSLError.new("Invalid `#{path.basename}` file: #{e.message}",
                       path, e.backtrace)
  end
end