Commit ecd17b35 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[Lib] Automatically detect JSON podspecs when running pod lib lint

Closes https://github.com/CocoaPods/CocoaPods/issues/3477
parent cb6c770c
...@@ -13,6 +13,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -13,6 +13,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#3471](https://github.com/CocoaPods/CocoaPods/issues/3471) [#3471](https://github.com/CocoaPods/CocoaPods/issues/3471)
* Automatically detect JSON podspecs in `pod lib lint`.
[Samuel Giddins](https://github.com/segiddins)
[#3477](https://github.com/CocoaPods/CocoaPods/issues/3477)
## 0.37.0.rc.1 ## 0.37.0.rc.1
......
...@@ -187,7 +187,7 @@ module Pod ...@@ -187,7 +187,7 @@ module Pod
if !@podspecs_paths.empty? if !@podspecs_paths.empty?
Array(@podspecs_paths) Array(@podspecs_paths)
else else
podspecs = Pathname.glob(Pathname.pwd + '*.podspec{.yaml,}') podspecs = Pathname.glob(Pathname.pwd + '*.podspec{.json,}')
if podspecs.count.zero? if podspecs.count.zero?
raise Informative, 'Unable to find a podspec in the working ' \ raise Informative, 'Unable to find a podspec in the working ' \
'directory' 'directory'
......
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