Method: Pod::Source#load_spec_gracefully
- Defined in:
- lib/cocoapods-core/source.rb
#load_spec_gracefully(name) ⇒ Specification, Nil (private)
Loads the specification for the given Pod gracefully.
430 431 432 433 434 435 436 437 438 |
# File 'lib/cocoapods-core/source.rb', line 430 def load_spec_gracefully(name) versions = versions(name) version = versions.sort.last if versions specification(name, version) if version rescue Informative Pod::CoreUI.warn "Skipping `#{name}` because the podspec " \ 'contains errors.' nil end |