-
Notifications
You must be signed in to change notification settings - Fork 41
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
Inherit Jekyll's rubocop config for consistency #48
Conversation
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.
Whoops. Looks like we went too far and broke things.
lib/jekyll-gist/gist_tag.rb
Outdated
[matched[1].strip, matched[2].strip] if matched && matched.length >= 3 | ||
end | ||
|
||
private | ||
|
||
def context_contains_key?(context, key) | ||
if context.respond_to?(:has_key?) | ||
context.has_key?(key) |
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.
Nope. Look at the context; this needs to be has_key
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.
Thanks @pathawks, I kinda suspected this, but script/cibuild
didn't fail locally.
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.
And now Travis is passing 🎉
Thanks Frank!
@jekyllbot: merge +dev |
This PR is the result of adding
inherit_gem:\n jekyll: .rubocop.yml
to.rubocop.yml
and runningrubocop -a
so that this project follows Jekyll core's coding styles for consistency like other core plugins. This way, as Jekyll's Ruby style changes, so too will this project's.