From 1a801e47ef29a79bdccc826dfba5f647ddba83fb Mon Sep 17 00:00:00 2001 From: Fabio Pelosin Date: Sat, 9 Mar 2013 17:22:09 +0100 Subject: [PATCH] [Command::Push] Respect allow warnings option Closes #835 --- CHANGELOG.md | 2 ++ lib/cocoapods/command/push.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57f8ced7c9..8120b8db01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - 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` +- Fixed the `--allow-warnings` of `pod push` + [#835](https://github.com/CocoaPods/CocoaPods/issues/835) ###### Ancillary enhancements diff --git a/lib/cocoapods/command/push.rb b/lib/cocoapods/command/push.rb index bb52bc3012..4dc84043df 100644 --- a/lib/cocoapods/command/push.rb +++ b/lib/cocoapods/command/push.rb @@ -63,6 +63,7 @@ def validate_podspec_files UI.puts "\nValidating #{'spec'.pluralize(count)}".yellow podspec_files.each do |podspec| validator = Validator.new(podspec) + validator.only_errors = @allow_warnings begin validator.validate rescue Exception