-
Notifications
You must be signed in to change notification settings - Fork 352
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
[JSON] Generated podspec should have a newline at the end of the file #139
Comments
Are you talking about when running Why would you want a newline at the end? It seems like none of the specs in https://github.com/CocoaPods/Specs have newlines at the end... |
ping |
The spec's generated by trunk are not using Core to save the JSON, but instead pretty printing the JSON and adding a newline to those specs would have to be done in trunk.cocoapods.org. |
Closing until @segiddins provides evidence that the change is needed. |
It's not needed, but I feel like files should always have a newline at the end. |
@segiddins Why is it personal preference or there is a more definite reason that we can discuss? |
It's a UNIX standard, http://stackoverflow.com/questions/729692/why-should-files-end-with-a-newline - we should probably do it because of git anyway. |
Good point. |
@fabiopelosin ec7a76e Only affects |
Why not? Isn't push using this method? https://github.com/CocoaPods/cocoapods-trunk/blob/master/lib/pod/command/trunk.rb#L290 |
@fabiopelosin Yes, but it's not saved to the repository as that. It's prettified using https://github.com/CocoaPods/trunk.cocoapods.org/blob/master/app/controllers/api/pods_controller.rb#L76 which won't keep the |
Oh I see what you mean... Good call: CocoaPods/trunk.cocoapods.org#103 |
Great, I wasn't sure on the scope of this issue, it was never really clear. Great stuff 👍. |
No description provided.
The text was updated successfully, but these errors were encountered: