Method: Pod._eval_podspec
- Defined in:
- lib/cocoapods-core/specification.rb
._eval_podspec(string, path) ⇒ Object (private)
Evaluates the given string in the namespace of the Pod module.
843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/cocoapods-core/specification.rb', line 843 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 = "Invalid `#{path.basename}` file: #{e.message}" raise DSLError.new(, path, e, string) end |