Commit 1f99b4ea authored by Samuel Giddins's avatar Samuel Giddins

[PodspecFinder] Only consider toplevel podspecs

parent 17fcb6d3
...@@ -10,7 +10,7 @@ module Pod ...@@ -10,7 +10,7 @@ module Pod
def podspecs def podspecs
return @specs_by_name if @specs_by_name return @specs_by_name if @specs_by_name
@specs_by_name = {} @specs_by_name = {}
spec_files = Pathname.glob(root + '{,*,*/*}.podspec{,.json}') spec_files = Pathname.glob(root + '{,*}.podspec{,.json}')
spec_files.sort_by { |p| -p.to_path.split(File::SEPARATOR).size }.each do |file| spec_files.sort_by { |p| -p.to_path.split(File::SEPARATOR).size }.each do |file|
begin begin
spec = Specification.from_file(file) spec = Specification.from_file(file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment