Commit b276e290 authored by Fabio Pelosin's avatar Fabio Pelosin

[External sources] Fix pod lint --local

parent 189917d7
......@@ -9,6 +9,7 @@
- Pre install hooks are called before the Pods are cleaned.
- Fixed and issue which prevent the inclusion of OTHER_CFLAGS and
OTHER_CPLUSPLUSFLAGS in the release builds of the Pods project.
- Fixed `pod lint --local`
## 0.17.0.rc2
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.0.rc1...0.17.0.rc2)
......
......@@ -319,7 +319,11 @@ module Pod
declared_path = params[:local].to_s
path_with_ext = File.extname(declared_path) == '.podspec' ? declared_path : "#{declared_path}/#{name}.podspec"
path_without_tilde = path_with_ext.gsub('~', ENV['HOME'])
absolute_path = Pathname(podfile_path).dirname + path_without_tilde
if podfile_path
absolute_path = Pathname(podfile_path).dirname + path_without_tilde
else
absolute_path = Pathname.new(path_without_tilde)
end
unless absolute_path.exist?
raise Informative, "No podspec found for `#{name}` in `#{params[:local]}`"
......
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