Skip to content

Make comment annotations work #518

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No 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? No Sign in to your account

Merged
merged 3 commits into from
Oct 13, 2017
Merged

Make comment annotations work #518

merged 3 commits into from
Oct 13, 2017

Conversation

dslh
Copy link
Contributor

@dslh dslh commented Oct 13, 2017

This is a follow up for issue #433. PR #459 implements the feature, but forgets to hook it up to either the rake task or the command line executable. I've added it to both ☺️

I've also fixed a bug where with_comment would fail if any columns of a table were uncommented. The feature will also now turn itself off if a table has no comments at all.

Rubocop complained about various complexity metrics on the get_schema_info method, so I've moved a couple of bits of code into private methods. After that I've rebuilt .rubocop-todo.yml, which is looking a bit better than the last time it was generated. The only cop that's gotten worse is Metrics/BlockLength, which has gone up due to the increased size of the OptionParser.new block in bin/annotate 😬

Thanks very much for this gem, I hope this PR will be useful to others 🙂

@ctran ctran added this to the v2.7.3 milestone Oct 13, 2017
@ctran ctran added the feature label Oct 13, 2017
@ctran ctran merged commit 7a96e90 into ctran:develop Oct 13, 2017
@ctran
Copy link
Owner

ctran commented Oct 13, 2017

Thanks!!! Do you mind updating the README file with this new flag?

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants