-
Notifications
You must be signed in to change notification settings - Fork 349
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
Update comments/docs to indicate :skip will skip pch generation #412
Conversation
# | ||
# @example | ||
# | ||
# spec.prefix_header_file = 'iphone/include/prefix.pch' | ||
# spec.prefix_header_file = ':skip' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably use a symbol instead of a string? Since :skip
could very well be a valid file path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or spec.prefix_header_file = false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
is good. Made that change. Thanks!
# | ||
attribute :prefix_header_file, | ||
:types => [TrueClass, FalseClass, String], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will setting it to true do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added true for symmetry with false. If it is set, it will behave the same as if the option is not set at all and the default CocoaPods pch file will be generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 but we should doc it
@@ -25,6 +25,12 @@ def requires_arc | |||
attributes_hash['requires_arc'] | |||
end | |||
|
|||
# @return [Bool, String] The prefix_header_file value. | |||
# | |||
def prefix_header_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method is specified within root_attribute_accessor
but within dsl.rb
the declaration of of the attribute itself does not use root_attribute
but rather attribute
.
Is this the right place to include this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but I modeled it after the requires_arc
implementation which does the same thing.
Yea probably a mistake in #393... I can make another PR to clean this up, but i think |
Gonna go ahead and merge this. |
@paulb777 can you update the cocoapods PR? thank you! |
Thanks @dnkoutso! CocoaPods/CocoaPods#7044 is now squashed, rebased and green. |
Replacing #406 based on discussion at CocoaPods/CocoaPods#6815
The corresponding CocoaPods PR is CocoaPods/CocoaPods#7044
This PR does not change any Core functionality.