Sha256: 5ba19db6c9c677a007a0a3bbaeb4fab95926de230fafe1bf8e21737dcec365a6
Contents?: true
Size: 854 Bytes
Versions: 8
Compression:
Stored size: 854 Bytes
Contents
require 'cocoapods-tj/native/specification' module Pod module ExternalSources # Provides support for fetching a specification file from a path local to # the machine running the installation. # class PathSource < AbstractExternalSource def normalized_podspec_path(declared_path) extension = File.extname(declared_path) if extension == '.podspec' || extension == '.json' path_with_ext = declared_path else path_with_ext = Specification::VALID_EXTNAME .map { |extname| "#{declared_path}/#{name}#{extname}" } .find { |file| File.exist?(file) } || "#{declared_path}/#{name}.podspec" end podfile_dir = File.dirname(podfile_path || '') File.expand_path(path_with_ext, podfile_dir) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems