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

Check requires arc true false strings #393

Merged

Conversation

VinayGuthal
Copy link
Contributor

This fixes CocoaPods/CocoaPods#6701.
Add a warning if the strings 'true' or 'false' are being used instead of boolean true or false as the value for 'requires_arc' in the pod spec file.

@dnkoutso
Copy link
Contributor

@VinayGuthal please add CHANGELOG entry, run rubocop -a and squash to a single commit.

LGTM.

#
def check_requires_arc_attribute
attributes = DSL.attributes.values
attributes.each do |attr|
Copy link
Contributor

Choose a reason for hiding this comment

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

can you just use attributes.find { |attr| attr.name == :requires_arc } instead?

# @return [void]
#
def check_requires_arc_attribute
attribute = DSL.attributes.values.find{|attr| attr.name == :requires_arc}
Copy link
Contributor

Choose a reason for hiding this comment

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

is the formatting correct here? I think spaces are needed, rubocop -a I believe will take care of it for you.

… true or false

add tests to test the functionality

add tests

use mangos instead of bananas

update mango lib

remove mango corp

typo

address comments

udpate changelog

run rubocop -a
@VinayGuthal VinayGuthal force-pushed the check_requires_arc_true_false_strings branch from 16731ee to ce4734b Compare July 13, 2017 20:46
@dnkoutso
Copy link
Contributor

👌 !

@dantoml or @orta quick check?

@orta
Copy link
Member

orta commented Jul 14, 2017 via email

@VinayGuthal
Copy link
Contributor Author

Is there anything else that I need to take care of here? :)

@orta
Copy link
Member

orta commented Jul 17, 2017

No, I don't think so, let's get this in.

@orta orta merged commit 3f9fb9a into CocoaPods:master Jul 17, 2017
@VinayGuthal VinayGuthal deleted the check_requires_arc_true_false_strings branch July 17, 2017 17:46
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.

Pod install is adding settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; to several files.
3 participants