Sha256: f8c51afb87d5507750d8a586b53b9ff69c1f243389c9f0fad0fb88373ca6be86

Contents?: true

Size: 848 Bytes

Versions: 16

Compression:

Stored size: 848 Bytes

Contents


require 'cocoapods-meitu-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

16 entries across 16 versions & 1 rubygems

Version Path
cocoapods-meitu-bin-2.0.0 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.4.1 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.4.0 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.3.2 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.3.1 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.3.0 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.2.3 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.2.2 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.2.1 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.2.0 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.1.5 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.1.4 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.1.3 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.1.2 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.1.1 lib/cocoapods-meitu-bin/native/podspec_finder.rb
cocoapods-meitu-bin-1.0.0 lib/cocoapods-meitu-bin/native/podspec_finder.rb