<p>A pull request in response to <a href="https://github.com/gravitystorm" class="user-mention">@gravitystorm</a>'s <a href="https://github.com/gravitystorm/openstreetmap-website/issues/2">list of ideas</a>.</p>
<p>This</p>
<ul>
<li>adds the <code>annotate</code> gem</li>
<li>introduces a rake task at <code>lib/tasks/auto_annotate_models.rake</code> via <code>rails g annotate:install</code>
</li>
<li>tweaks that task to annotate only models at the <code>bottom</code> of their <code>.rb</code>.</li>
</ul>
<p><code>annotate</code> polarizes developers, in my experience, and this approach is usually an acceptable intervention.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/1280'>https://github.com/openstreetmap/openstreetmap-website/pull/1280</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Add annotate gem and associated rake task. Annotate models. Accept new line changes in test/fixtures.</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-0">Gemfile</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-1">Gemfile.lock</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-2">app/models/access_token.rb</a>
(36)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-3">app/models/acl.rb</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-4">app/models/changeset.rb</a>
(27)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-5">app/models/changeset_comment.rb</a>
(21)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-6">app/models/changeset_tag.rb</a>
(17)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-7">app/models/client_application.rb</a>
(31)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-8">app/models/diary_comment.rb</a>
(24)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-9">app/models/diary_entry.rb</a>
(28)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-10">app/models/friend.rb</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-11">app/models/language.rb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-12">app/models/message.rb</a>
(26)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-13">app/models/node.rb</a>
(23)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-14">app/models/node_tag.rb</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-15">app/models/note.rb</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-16">app/models/note_comment.rb</a>
(24)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-17">app/models/oauth2_token.rb</a>
(36)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-18">app/models/oauth2_verifier.rb</a>
(36)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-19">app/models/oauth_nonce.rb</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-20">app/models/oauth_token.rb</a>
(36)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-21">app/models/old_node.rb</a>
(26)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-22">app/models/old_node_tag.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-23">app/models/old_relation.rb</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-24">app/models/old_relation_member.rb</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-25">app/models/old_relation_tag.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-26">app/models/old_way.rb</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-27">app/models/old_way_node.rb</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-28">app/models/old_way_tag.rb</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-29">app/models/redaction.rb</a>
(17)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-30">app/models/relation.rb</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-31">app/models/relation_member.rb</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-32">app/models/relation_tag.rb</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-33">app/models/request_token.rb</a>
(36)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-34">app/models/trace.rb</a>
(27)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-35">app/models/tracepoint.rb</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-36">app/models/tracetag.rb</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-37">app/models/user.rb</a>
(43)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-38">app/models/user_block.rb</a>
(26)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-39">app/models/user_preference.rb</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-40">app/models/user_role.rb</a>
(21)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-41">app/models/user_token.rb</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-42">app/models/way.rb</a>
(19)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-43">app/models/way_node.rb</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-44">app/models/way_tag.rb</a>
(13)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-45">lib/tasks/auto_annotate_models.rake</a>
(48)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-46">test/fixtures/changeset_comments.yml</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280/files#diff-47">test/fixtures/user_tokens.yml</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1280.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/1280.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/1280.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/1280.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1280">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLcDr3V2_bIwyk6zgdudMy-pYhTCRks5qoPexgaJpZM4J4usV">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLZ94-yBoMgyxYcljzHemeezht3e2ks5qoPexgaJpZM4J4usV.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/1280"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Add annotate gem and associated rake task. Annotate models. Accept new line changes in test/fixtures. (#1280)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1280"}}}</script>