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

Fix linting source of a spec for certain URLs #84

Merged
merged 3 commits into from
Apr 1, 2014

Conversation

neonichu
Copy link
Member

@neonichu neonichu commented Apr 1, 2014

Fixes linting URLs to local and SSH repos, as reported in #82

@fabiopelosin
Copy link
Member

Looks good to me... @kylef?

@kylef
Copy link
Contributor

kylef commented Apr 1, 2014

Looks good.

Couple of things from Rubycopy:

Offenses:
lib/cocoapods-core/specification/linter.rb:336:28: C: Do not use :: for method calls.
          if git =~ /^#{URI::regexp}$/
                           ^^
lib/cocoapods-core/specification/linter.rb:339:15: C: Avoid more than 3 levels of block nesting.
              unless git.end_with?('.git')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/cocoapods-core/specification/linter.rb:342:15: C: Avoid more than 3 levels of block nesting.
              unless git_uri.scheme == 'https'
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 files inspected, 3 offenses detected
RuboCop failed!

end
unless git_uri.scheme == 'https'
warning "Github repositories should use `https` link."
if git =~ /^#{URI::regexp}$/
Copy link
Member

Choose a reason for hiding this comment

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

This can be:

return unless git =~ /^#{URI::regexp}$/

Copy link
Member

Choose a reason for hiding this comment

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

And URI::regexp cab be converted to URI.regexp

Copy link
Member Author

Choose a reason for hiding this comment

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

Will change those, thanks. 🍻

@fabiopelosin
Copy link
Member

Thank you for contributing man... and finally don't forget that even this repo gained a changelog recently 😄 (I love changelogs!)

@neonichu
Copy link
Member Author

neonichu commented Apr 1, 2014

Makes a much cleaner diff as well :)

@neonichu
Copy link
Member Author

neonichu commented Apr 1, 2014

So with the new Core CHANGELOG, do we still update the main one for merged PRs?

@fabiopelosin
Copy link
Member

Ace! I check all the changelogs and port the relevant entries (this is one) manually before a release... however if you want to submit a pull request that will be very welcome 🍷

@fabiopelosin
Copy link
Member

I'm waiting for Travis and the I will merge!

@neonichu
Copy link
Member Author

neonichu commented Apr 1, 2014

Sure will, trying to get to the first line on http://cocoapods.org/about contributors list ;)

@orta
Copy link
Member

orta commented Apr 1, 2014

Hah! So bold!

@fabiopelosin
Copy link
Member

You can do much better: you can get before @supermarin 💥!

@x2on
Copy link

x2on commented Apr 1, 2014

👍 Please make also a new release of CocoaPods soon :)

@dsexton
Copy link

dsexton commented Apr 1, 2014

👍 Please make also a new release of CocoaPods soon :)

👍

fabiopelosin added a commit that referenced this pull request Apr 1, 2014
Fix linting source of a spec for certain URLs
@fabiopelosin fabiopelosin merged commit b02a101 into CocoaPods:master Apr 1, 2014
@fabiopelosin
Copy link
Member

Ace thanks!

@neonichu
Copy link
Member Author

neonichu commented Apr 1, 2014

Sorry for screwing it up in the first place.

b7e

@fabiopelosin
Copy link
Member

released as CocoaPods 0.31.1

@fabiopelosin
Copy link
Member

@neonichu not big deal, the important is that we fixed it... also thanks for the amazing number of contributions in the Bash!

@alloy
Copy link
Member

alloy commented Apr 1, 2014

@neonichu No worries, man. These types of issues are only fixed by either knowing all issues upfront or finding out by putting it out into the real world. Now we know and we have the tests, so, yay!

@fabiopelosin
Copy link
Member

The important is how fast you stand up after you fall down!

@neonichu
Copy link
Member Author

neonichu commented Apr 1, 2014

You guys are too nice. 💖

@x2on
Copy link

x2on commented Apr 1, 2014

Thank you - that was really fast!

Am Dienstag, 1. April 2014 schrieb Fabio Pelosin :

released as CocoaPods 0.31.1

Reply to this email directly or view it on GitHubhttps://github.com//pull/84#issuecomment-39214893
.

@Superbil
Copy link

Superbil commented Apr 1, 2014

@neonichu Thank you, you fix it so fast.

Ashton-W pushed a commit to Ashton-W/Core that referenced this pull request Nov 2, 2015
Fix linting source of a spec for certain URLs
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.

8 participants