<h3 dir="auto">Description</h3>
<p dir="auto">Adds and unignores <code class="notranslate">.ruby-version</code> file to ensure a consistent development Ruby for all contributors. Doing so also helps push contributors onto newer rubies which can sometimes be quite helpful, such as with the latest <a href="https://www.ruby-lang.org/en/news/2025/07/15/ruby-3-4-5-released/" rel="nofollow">Ruby 3.4.5</a> which addressed a ton of GCC 15 gem compilation error issues.</p>
<p dir="auto">Additionally, having a <code class="notranslate">.ruby-version</code> file has become a somewhat standard practice in Ruby development such that the <a href="https://github.com/postmodern/chruby">chruby CLI tool</a> and the <a href="https://marketplace.visualstudio.com/items?itemName=Shopify.ruby-lsp" rel="nofollow">ruby-lsp VSCode extension</a> expect it to exist. There's even a proposal to spec the <code class="notranslate">.ruby-version</code> file format over in rubygems: <a href="https://github.com/orgs/rubygems/discussions/7074">https://github.com/orgs/rubygems/discussions/7074</a>.</p>
<p dir="auto"><strong>Why is <code class="notranslate">.ruby-version</code> currently ignored?</strong></p>
<p dir="auto">Looks like it may have been arbitrarily ignored as a side change in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/14ac1babc2517320a2c90fa9b4ac36a5a6e68018/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/14ac1babc2517320a2c90fa9b4ac36a5a6e68018"><tt>14ac1ba</tt></a> over 10 years ago.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Yes it has been tested. See the screencasts below.</p>
<p dir="auto"><strong>Before</strong> (<code class="notranslate">master</code> branch)</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/55d7605f-c4ce-4914-92ea-8c9ac0319375">https://github.com/user-attachments/assets/55d7605f-c4ce-4914-92ea-8c9ac0319375</a></p>
<p dir="auto"><strong>After</strong> (this branch)</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/cefcc1e8-4156-4d1a-bde8-f427646346f4">https://github.com/user-attachments/assets/cefcc1e8-4156-4d1a-bde8-f427646346f4</a></p>
<p dir="auto">Can also see that the later shell (above screencast i.e. this branch) properly uses Ruby 3.4.5 immediately by default thanks to the <code class="notranslate">.ruby-version</code>, which is highly preferable.</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/6333'>https://github.com/openstreetmap/openstreetmap-website/pull/6333</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6333/commits/e813ea4e933bec4d16bf4bfde7429c3db797e262" class="commit-link">e813ea4</a> Add and unignore .ruby-version file to ensure consistent dev Ruby</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6333/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6333/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947">.gitignore</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6333/files#diff-1bdb3279c7718f7037156f83c80eb81c58d37b286e027219e055b76249082264">.ruby-version</a>
(1)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6333.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6333.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6333.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6333.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6333">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOLIF6AHFNGC6ENDBL3OHRIFAVCNFSM6AAAAACEFLIYGCVHI2DSMVQWIX3LMV43ASLTON2WKOZTGMZTCMBSGIYTAMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6333</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6333",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6333",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>