Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed inhibit_all_warnings? and merged with inhibit_warnings_for_pod? #12

Merged
merged 1 commit into from
Apr 8, 2013

Conversation

supermarin
Copy link

Probably not ready to be merged yet;
First checkpoint from CocoaPods/CocoaPods#942 solved.

@coveralls
Copy link

Coverage decreased (-0.0%) when pulling 91076d0 on unify_inhibit_warnings into 9084f2a on master.

View Details

#
def inhibits_warnings_for_pod?(pod_name)
return true if inhibit_warnings_hash['all'] || (parent.inhibits_warnings_for_pod?(name) unless root?)

inhibit_warnings_hash['for_pods'] ||= []
inhibit_warnings_hash['for_pods'].include? pod_name
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this implementation the target definition will inherit the inhibit_all_warnings! DSL directive but not will not inherit it when the users specify it per pod. I don't have any strong opinion about the inheritance but I think that they should be consistent.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd appreciate if you could paste a real world example, it would make it a bit more clear to me

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example A

target :ZipApp do
  inhibit_all_warnings!
  pod 'SSZipArchive'
  target :test do
  end
end

The test target inherits SSZipArchive and will inhibit the warnings.

Example B

target :ZipApp do
  pod 'SSZipArchive', :inhibit_warnings => true
  target :test do
  end
end

The test target inherits SSZipArchive and will not inhibit the warnings.

@fabiopelosin
Copy link
Member

Other than the comment point this pull looks good. :shipit:

fabiopelosin added a commit that referenced this pull request Apr 8, 2013
removed inhibit_all_warnings? and merged with inhibit_warnings_for_pod?
@fabiopelosin fabiopelosin merged commit 1d509d3 into master Apr 8, 2013
@fabiopelosin fabiopelosin deleted the unify_inhibit_warnings branch April 8, 2013 10:48
Ashton-W pushed a commit to Ashton-W/Core that referenced this pull request Nov 2, 2015
removed inhibit_all_warnings? and merged with inhibit_warnings_for_pod?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants