<p></p>
<p dir="auto">If anybody does want to hack their install you need to look at <code class="notranslate">consumer.rb</code> and at the top change this:</p>
<div class="highlight highlight-source-ruby" dir="auto"><pre class="notranslate"> <span class="pl-c1">CA_FILES</span><span class="pl-kos">.</span><span class="pl-en">each</span> <span class="pl-k">do</span> |<span class="pl-s1">ca_file</span>|
<span class="pl-k">if</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">exists?</span><span class="pl-kos">(</span><span class="pl-s1">ca_file</span><span class="pl-kos">)</span>
<span class="pl-c1">CA_FILE</span> <span class="pl-c1">=</span> <span class="pl-s1">ca_file</span>
<span class="pl-k">break</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">to this:</p>
<div class="highlight highlight-source-ruby" dir="auto"><pre class="notranslate"> <span class="pl-c1">CA_FILES</span><span class="pl-kos">.</span><span class="pl-en">each</span> <span class="pl-k">do</span> |<span class="pl-s1">ca_file</span>|
<span class="pl-k">if</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">exist?</span><span class="pl-kos">(</span><span class="pl-s1">ca_file</span><span class="pl-kos">)</span>
<span class="pl-c1">CA_FILE</span> <span class="pl-c1">=</span> <span class="pl-s1">ca_file</span>
<span class="pl-k">break</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">It's because it is class scope code that runs when the file is loaded that monkey patching is not really possible.</p>
<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/issues/4083#issuecomment-1630617370">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNYTWB25ZFXU62H4YTXPUXCTANCNFSM6AAAAAA2FZZXSQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJ3VRDQDY7QR553MC3XPUXCTA5CNFSM6AAAAAA2FZZXSSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBGE7RU.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/issues/4083/1630617370</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/issues/4083#issuecomment-1630617370",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4083#issuecomment-1630617370",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>