<p dir="auto">Hi 👋🏾 , openstreetmap newbie here, somewhat familiar with Rails. I wanted to try <code class="notranslate">openstreetmap-website</code> locally and ran into the undefined method <code class="notranslate">File.exists?</code> error described <a href="https://github.com/openstreetmap/openstreetmap-website/issues/4083" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4083/hovercard">here</a> with Ruby 3.2.2.</p>
<p dir="auto">The installation instructions do not explicitly rule out Ruby 3.2 so I found it a bit surprising. As said in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1798646400" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4083" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4083/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4083">#4083</a> the only reason this happens is the legacy oauth gem at 0.4.7, which is <a href="https://github.com/openstreetmap/operations/issues/867" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/operations/issues/867/hovercard">going to be removed eventually</a>. Do you think the hack in this PR is an acceptable band-aid to ease the first-time developer experience until the oauth gem is removed? It's a bit ugly I admit, but couldn't think of a better way apart from forking the gem.</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/4399'>https://github.com/openstreetmap/openstreetmap-website/pull/4399</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4399/commits/ee47663f9436cc694f9a5a0c5b349601b03c3555" class="commit-link">ee47663</a> Prevent the legacy oauth gem from crashing on Ruby >=3.2</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4399/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4399/files#diff-c1fd91cb1911a0512578b99f657554526f3e1421decdb9e908712beab57e10f9">config/application.rb</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4399/files#diff-f48b26bab4a7e8eeeb8b69d7e51321d2bcb3c1832c17ab3187a3399d1b668533">lib/legacy_oauth_gem_support.rb</a>
(4)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4399.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4399.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4399.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4399.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/4399">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNL2DXHQNL7SVN7JZLYI4X7FAVCNFSM6AAAAABAQBMZMSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTMMBVGQ4TCMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIVUJRXLJLJD2E2OBLYI4X7FA5CNFSM6AAAAABAQBMZMSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHSW53P4.gif" height="1" width="1" alt="" /><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/4399</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/4399",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4399",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>