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

[Project] Change config defines to be prefixed #4702

Merged
merged 7 commits into from
Dec 30, 2015
Merged

Conversation

segiddins
Copy link
Member

Closes #4143.
Closes #4148.

\c @mrackwitz

# @return [String] The preprocessor definition to set for the configuration.
#
def define_for_build_configuration(name)
"POD_CONFIGURATION_#{name}".gsub(/[^a-zA-Z0-9_]/, '_').upcase
Copy link
Member

Choose a reason for hiding this comment

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

Let's prefix that with .underscore, so that camelcase configuration names will yield to a nicer output.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@segiddins
Copy link
Member Author

This is a breaking change, please review?

#
# @return [String] The preprocessor definition to set for the configuration.
#
def define_for_build_configuration(name)
Copy link
Member

Choose a reason for hiding this comment

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

As this method doesn't have any side-effect, I don't think it should be named by the leading verb convention. I'd prefer definition_for_… here.

@mrackwitz
Copy link
Member

👍 LGTM beside my last comment

@neonichu
Copy link
Member

LGTM

segiddins added a commit that referenced this pull request Dec 30, 2015
[Project] Change config defines to be prefixed
@segiddins segiddins merged commit 13b7803 into master Dec 30, 2015
@segiddins segiddins deleted the seg-config-defines branch December 30, 2015 20:09
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.

3 participants