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