Skip to content

Commit

Permalink
[Command::Push] Respect allow warnings option
Browse files Browse the repository at this point in the history
Closes #835
  • Loading branch information
fabiopelosin committed Mar 9, 2013
1 parent 058b4e6 commit 1a801e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lib/cocoapods/command/push.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1a801e4

Please sign in to comment.