Sha256: 47d47890ec05db7fb3d4b9b7c9048c17d26585e22c273e2f59f9d49ffacedd49

Contents?: true

Size: 580 Bytes

Versions: 64

Compression:

Stored size: 580 Bytes

Contents

module Pod
  class Specification
    def recursive_dep_names(all_specs)
      base_deps = all_dependencies.map(&:name)

      loop do
        last_deps_count = base_deps.count
        
        all_specs.each do |s|
          unless s != self
            next
          end

          specs_deps = s.all_dependencies.map(&:name)
          if base_deps.include?(s.name)
            base_deps += specs_deps
            base_deps.uniq!
          end
        end
        
        break unless last_deps_count != base_deps.count
      end 

      return base_deps
    end    
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
pod-builder-1.9.4 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.9.3 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.9.2 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.9.1 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.9.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.8.2 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.8.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.7.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.6.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.5.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.4.1 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.4.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.3.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.2.1 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.2.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.1.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-1.0.0 lib/pod_builder/cocoapods/specification.rb
pod-builder-0.9.9 lib/pod_builder/cocoapods/specification.rb
pod-builder-0.9.8 lib/pod_builder/cocoapods/specification.rb
pod-builder-0.9.7 lib/pod_builder/cocoapods/specification.rb