Sha256: d9ecf1e737500a090d275aa34d966fc8925696138dd637ace5d792430983785d

Contents?: true

Size: 846 Bytes

Versions: 19

Compression:

Stored size: 846 Bytes

Contents


require 'cocoapods-imy-bin/native/specification'

module Pod
  class Sandbox
    class PodspecFinder
      def podspecs
        return @specs_by_name if @specs_by_name

        @specs_by_name = {}
        spec_files = Pathname.glob(root + '{,*}.podspec{,.json}')
        # pod 指向分支时,如果目标组件有 subspec ,并且有 template spec ,request 之后使用的 spec 不应该为 template spec
        # 这里做下过滤
        spec_files = spec_files.reject { |p| Specification::DEFAULT_TEMPLATE_EXTNAME.find { |e| p.to_s.end_with?(e) } }
        spec_files.sort_by { |p| -p.to_path.split(File::SEPARATOR).size }.each do |file|
          spec = Specification.from_file(file)
          spec.validate_cocoapods_version
          @specs_by_name[spec.name] = spec
        end
        @specs_by_name
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
cocoapods-imy-bin-0.3.1.21 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.6 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.5 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.3 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.2 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.1 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-hycan-bin-0.1.0 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.3.1.3 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.3.1.2 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.3.0.11 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.9.1 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.9 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.8 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.7 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.6 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.5 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.3 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.2 lib/cocoapods-imy-bin/native/podspec_finder.rb
cocoapods-imy-bin-0.2.1 lib/cocoapods-imy-bin/native/podspec_finder.rb