lib/pod/src/rewriter.rb in cocoapods-git_url_rewriter-1.0.0 vs lib/pod/src/rewriter.rb in cocoapods-git_url_rewriter-1.0.1
- old
+ new
@@ -28,10 +28,10 @@
url.start_with?(key)
end
end
def user_options
- @options ||= podfile.plugins['cocoapods-git_url_rewriter']
+ @options ||= podfile && podfile.plugins && podfile.plugins['cocoapods-git_url_rewriter']
Pod::UI.notice('No options have been specified for rewriting') unless @options
@options
end
def podfile