module Pod

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

Constants

CORE_VERSION

The version of the cocoapods-core.

Spec

TODO: Fix

Public Class Methods

_eval_podspec(string, path) click to toggle source

@visibility private

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

@param [String] string

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

@param [Pathname] path

The path where the object to evaluate is stored.

@return [Object] it can return any object but, is expected to be called on

`podspec` files that should return a #{Specification}.
# File lib/cocoapods-core/specification.rb, line 836
def self._eval_podspec(string, path)
  # rubocop:disable Security/Eval
  eval(string, nil, path.to_s)
  # rubocop:enable Security/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, string)
end