[Spec::Lint] Don't recurse to find podspecs

parent f80bb0a8
...@@ -16,6 +16,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -16,6 +16,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#5236](https://github.com/CocoaPods/CocoaPods/issues/5236) [#5236](https://github.com/CocoaPods/CocoaPods/issues/5236)
* Don't recurse into child directories to find podspecs when running
`pod spec lint`.
[Samuel Giddins](https://github.com/segiddins)
[#5244](https://github.com/CocoaPods/CocoaPods/issues/5244)
## 1.0.0.rc.1 (2016-04-30) ## 1.0.0.rc.1 (2016-04-30)
......
...@@ -99,7 +99,7 @@ module Pod ...@@ -99,7 +99,7 @@ module Pod
end end
files << output_path files << output_path
elsif (pathname = Pathname.new(path)).directory? elsif (pathname = Pathname.new(path)).directory?
files += Pathname.glob(pathname + '**/*.podspec{.json,}') files += Pathname.glob(pathname + '*.podspec{.json,}')
raise Informative, 'No specs found in the current directory.' if files.empty? raise Informative, 'No specs found in the current directory.' if files.empty?
else else
files << (pathname = Pathname.new(path)) files << (pathname = Pathname.new(path))
......
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