Sha256: 2a21904499e8eed5eb77fb3020f10dbb22dfe19c7d1ea1ec48fe3b5c081d144f

Contents?: true

Size: 664 Bytes

Versions: 8

Compression:

Stored size: 664 Bytes

Contents


require 'cocoapods-tj/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}')
        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

8 entries across 8 versions & 1 rubygems

Version Path
cocoapods-tj-1.0.7 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.6 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.5 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.4 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.3 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.2 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.1 lib/cocoapods-tj/native/podspec_finder.rb
cocoapods-tj-1.0.0 lib/cocoapods-tj/native/podspec_finder.rb