Running Jruby 1.1.1, I have the following problem (<a href="http://jira.codehaus.org/browse/JRUBY-2476">http://jira.codehaus.org/browse/JRUBY-2476</a>):<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<span class="Apple-style-span" style="font-family: Arial; font-size: 12px; ">I untar JRuby 1.1.1, and then the following happens when I attempt to list out of date gems:</span><br><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; "><br>
</span></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; ">$ jruby -S gem outdated</span><br>
<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; ">Bulk updating Gem source index for:&nbsp;<span class="nobr"><a href="http://gems.rubyforge.org/">http://gems.rubyforge.org/<sup><img class="rendericon" src="http://jira.codehaus.org/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></sup></a></span></span><br>
<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; ">ERROR: While executing gem ... (Gem::RemoteSourceException)</span><br><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; ">Error fetching remote gem cache: NameError: uninitialized constant Gem::RemoteFetcher::StringIO reading</span><br>
<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; "><a href="http://gems.rubyforge.org/yaml">http://gems.rubyforge.org/yaml<sup><img class="rendericon" src="http://jira.codehaus.org/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></sup></a></span><br>
<span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><br></span></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; ">I get this same error when I try to do the following:</span><br>
<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 12px; ">$ jruby -S gem sources -a&nbsp;<span class="nobr"><a href="http://gems.github.com/">http://gems.github.com<sup><img class="rendericon" src="http://jira.codehaus.org/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; "></sup></a></span></span><br>
<span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><br></span></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; ">I&#39;ve also tried this on Linux with Java 1.6, and I get the same error.</span><br>
<span class="Apple-style-span" style="font-family: Arial; font-size: 12px; "><br></span></blockquote><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; ">If I open up&nbsp;<tt>jruby-1.1.1/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb</tt>&nbsp;and add&nbsp;<tt>require &#39;stringio&#39;</tt>&nbsp;to the top, it fixes the problem.</span><br>
</blockquote><div><div><br></div><div>The remote_fetcher.rb file uses StringIO, but does not directly require stringio. It works on MRI because someone else requires stringio for us, but on JRuby this isn&#39;t happening. I think it might be yaml.rb, which doesn&#39;t require stringio on JRuby but does on MRI.</div>
<div><br></div><div>If I recompile my jruby with a &quot;require &#39;stringio&#39;&quot; in my yaml.rb, the problem goes away.</div><div><br></div><div>What do you think?</div><div><br></div><div>-- <br>Caleb Land
</div></div>