https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112010-07-21T11:16:35ZRuby Issue Tracking SystemRuby master - Bug #3590: RubyGems is Brokenhttps://bugs.ruby-lang.org/issues/3590?journal_id=124322010-07-21T11:16:35Zevanphx (Evan Phoenix)evan@phx.io
<ul></ul><p>=begin<br>
I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).</p>
<ul>
<li>Evan // via iPhone</li>
</ul>
<p>On Jul 20, 2010, at 6:17 PM, Sora Harakami <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems is Broken (Closed)" href="https://bugs.ruby-lang.org/issues/3590">#3590</a>: RubyGems is Broken<br>
<a href="http://redmine.ruby-lang.org/issues/show/3590" class="external">http://redmine.ruby-lang.org/issues/show/3590</a></p>
<p>Author: Sora Harakami<br>
Status: Open, Priority: Normal<br>
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]</p>
<p>Hi,</p>
<p>Rubygems is broken in ruby 1.9.3dev.<br>
This problem can occur in any gems (I expect).</p>
<p>--<br>
The following code reproduces this problem:</p>
<p>begin # Can't load active_record<br>
p require 'active_record'<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! # So it's raise NameError.</p>
<p>p require 'rubygems'<br>
begin # Can load after require 'rubygems'<br>
p require 'active_record' #it returns true<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! #but NameError is raised.</p>
<hr>
<p>And the result of that code in r28695:</p>
<p>#<LoadError: cannot load such file -- active_record><br>
#<NameError: uninitialized constant ActiveRecord><br>
false<br>
true<br>
#<NameError: uninitialized constant ActiveRecord></p>
<hr>
<p>In a reference, this is result of that code in ruby1.9.1:</p>
<p>true<br>
ActiveRecord<br>
false<br>
false<br>
ActiveRecord</p>
<hr>
<p>And more result (ruby -d) available in here: <a href="http://gist.github.com/483826" class="external">http://gist.github.com/483826</a></p>
<hr>
<p><a href="http://redmine.ruby-lang.org" class="external">http://redmine.ruby-lang.org</a></p>
</blockquote>
<p>=end</p> Ruby master - Bug #3590: RubyGems is Brokenhttps://bugs.ruby-lang.org/issues/3590?journal_id=124342010-07-21T12:04:25Zsorah (Sorah Fukumori)her@sorah.jp
<ul></ul><p>=begin<br>
Hi, Evan.</p>
<p>Thanks for fix and waiting for that. :-)</p>
<p>On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix <a href="mailto:evan@fallingsnow.net" class="email">evan@fallingsnow.net</a> wrote:</p>
<blockquote>
<p>I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).</p>
<p> - Evan // via iPhone</p>
<p>On Jul 20, 2010, at 6:17 PM, Sora Harakami <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems is Broken (Closed)" href="https://bugs.ruby-lang.org/issues/3590">#3590</a>: RubyGems is Broken<br>
<a href="http://redmine.ruby-lang.org/issues/show/3590" class="external">http://redmine.ruby-lang.org/issues/show/3590</a></p>
<p>Author: Sora Harakami<br>
Status: Open, Priority: Normal<br>
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]</p>
<p>Hi,</p>
<p>Rubygems is broken in ruby 1.9.3dev.<br>
This problem can occur in any gems (I expect).</p>
<p>--<br>
The following code reproduces this problem:</p>
<p>begin # Can't load active_record<br>
p require 'active_record'<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! # So it's raise NameError.</p>
<p>p require 'rubygems'<br>
begin # Can load after require 'rubygems'<br>
p require 'active_record' #it returns true<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! #but NameError is raised.</p>
<hr>
<p>And the result of that code in r28695:</p>
<p>#<LoadError: cannot load such file -- active_record><br>
#<NameError: uninitialized constant ActiveRecord><br>
false<br>
true<br>
#<NameError: uninitialized constant ActiveRecord></p>
<hr>
<p>In a reference, this is result of that code in ruby1.9.1:</p>
<p>true<br>
ActiveRecord<br>
false<br>
false<br>
ActiveRecord</p>
<hr>
<p>And more result (ruby -d) available in here: <a href="http://gist.github.com/483826" class="external">http://gist.github.com/483826</a></p>
<hr>
<p><a href="http://redmine.ruby-lang.org" class="external">http://redmine.ruby-lang.org</a></p>
</blockquote>
</blockquote>
<p>--<br>
Sora Harakami - @sora_h<br>
Blog: <a href="http://codnote.net/" class="external">http://codnote.net/</a><br>
Detail: <a href="http://sorah.cosmio.net/" class="external">http://sorah.cosmio.net/</a></p>
<p>=end</p> Ruby master - Bug #3590: RubyGems is Brokenhttps://bugs.ruby-lang.org/issues/3590?journal_id=124402010-07-21T15:35:18Zevanphx (Evan Phoenix)evan@phx.io
<ul></ul><p>=begin</p>
<p>On Jul 20, 2010, at 8:04 PM, Sora Harakami wrote:</p>
<blockquote>
<p>Hi, Evan.</p>
<p>Thanks for fix and waiting for that. :-)</p>
</blockquote>
<p>I've just committed the fix, not sure why the issue wasn't automatically closed. Still figure out how the ruby-core/svn/redmine integration works.</p>
<p>Let me know if you still have issues! Thanks!</p>
<ul>
<li>Evan</li>
</ul>
<blockquote>
<p>On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix <a href="mailto:evan@fallingsnow.net" class="email">evan@fallingsnow.net</a> wrote:</p>
<blockquote>
<p>I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).</p>
<ul>
<li>Evan // via iPhone</li>
</ul>
<p>On Jul 20, 2010, at 6:17 PM, Sora Harakami <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems is Broken (Closed)" href="https://bugs.ruby-lang.org/issues/3590">#3590</a>: RubyGems is Broken<br>
<a href="http://redmine.ruby-lang.org/issues/show/3590" class="external">http://redmine.ruby-lang.org/issues/show/3590</a></p>
<p>Author: Sora Harakami<br>
Status: Open, Priority: Normal<br>
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]</p>
<p>Hi,</p>
<p>Rubygems is broken in ruby 1.9.3dev.<br>
This problem can occur in any gems (I expect).</p>
<p>--<br>
The following code reproduces this problem:</p>
<p>begin # Can't load active_record<br>
p require 'active_record'<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! # So it's raise NameError.</p>
<p>p require 'rubygems'<br>
begin # Can load after require 'rubygems'<br>
p require 'active_record' #it returns true<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! #but NameError is raised.</p>
<hr>
<p>And the result of that code in r28695:</p>
<p>#<LoadError: cannot load such file -- active_record><br>
#<NameError: uninitialized constant ActiveRecord><br>
false<br>
true<br>
#<NameError: uninitialized constant ActiveRecord></p>
<hr>
<p>In a reference, this is result of that code in ruby1.9.1:</p>
<p>true<br>
ActiveRecord<br>
false<br>
false<br>
ActiveRecord</p>
<hr>
<p>And more result (ruby -d) available in here: <a href="http://gist.github.com/483826" class="external">http://gist.github.com/483826</a></p>
<hr>
<p><a href="http://redmine.ruby-lang.org" class="external">http://redmine.ruby-lang.org</a></p>
</blockquote>
</blockquote>
<p>--<br>
Sora Harakami - @sora_h<br>
Blog: <a href="http://codnote.net/" class="external">http://codnote.net/</a><br>
Detail: <a href="http://sorah.cosmio.net/" class="external">http://sorah.cosmio.net/</a></p>
</blockquote>
<p>=end</p> Ruby master - Bug #3590: RubyGems is Brokenhttps://bugs.ruby-lang.org/issues/3590?journal_id=124422010-07-21T15:37:06ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
This issue was solved with changeset r28703.<br>
Sora, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<p>=end</p> Ruby master - Bug #3590: RubyGems is Brokenhttps://bugs.ruby-lang.org/issues/3590?journal_id=124492010-07-21T17:47:12Zsorah (Sorah Fukumori)her@sorah.jp
<ul></ul><p>=begin<br>
I checked it. Thank you! :-)</p>
<p>On Wed, Jul 21, 2010 at 3:35 PM, Evan Phoenix <a href="mailto:evan@fallingsnow.net" class="email">evan@fallingsnow.net</a> wrote:</p>
<blockquote>
<p>On Jul 20, 2010, at 8:04 PM, Sora Harakami wrote:</p>
<blockquote>
<p>Hi, Evan.</p>
<p>Thanks for fix and waiting for that. :-)</p>
</blockquote>
<p>I've just committed the fix, not sure why the issue wasn't automatically closed. Still figure out how the ruby-core/svn/redmine integration works.</p>
<p>Let me know if you still have issues! Thanks!</p>
<p> - Evan</p>
<blockquote>
<p>On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix <a href="mailto:evan@fallingsnow.net" class="email">evan@fallingsnow.net</a> wrote:</p>
<blockquote>
<p>I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).</p>
<p> - Evan // via iPhone</p>
<p>On Jul 20, 2010, at 6:17 PM, Sora Harakami <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems is Broken (Closed)" href="https://bugs.ruby-lang.org/issues/3590">#3590</a>: RubyGems is Broken<br>
<a href="http://redmine.ruby-lang.org/issues/show/3590" class="external">http://redmine.ruby-lang.org/issues/show/3590</a></p>
<p>Author: Sora Harakami<br>
Status: Open, Priority: Normal<br>
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]</p>
<p>Hi,</p>
<p>Rubygems is broken in ruby 1.9.3dev.<br>
This problem can occur in any gems (I expect).</p>
<p>--<br>
The following code reproduces this problem:</p>
<p>begin # Can't load active_record<br>
p require 'active_record'<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! # So it's raise NameError.</p>
<p>p require 'rubygems'<br>
begin # Can load after require 'rubygems'<br>
p require 'active_record' #it returns true<br>
rescue LoadError => e<br>
p e<br>
end<br>
p ActiveRecord rescue p $! #but NameError is raised.</p>
<hr>
<p>And the result of that code in r28695:</p>
<p>#<LoadError: cannot load such file -- active_record><br>
#<NameError: uninitialized constant ActiveRecord><br>
false<br>
true<br>
#<NameError: uninitialized constant ActiveRecord></p>
<hr>
<p>In a reference, this is result of that code in ruby1.9.1:</p>
<p>true<br>
ActiveRecord<br>
false<br>
false<br>
ActiveRecord</p>
<hr>
<p>And more result (ruby -d) available in here: <a href="http://gist.github.com/483826" class="external">http://gist.github.com/483826</a></p>
<hr>
<p><a href="http://redmine.ruby-lang.org" class="external">http://redmine.ruby-lang.org</a></p>
</blockquote>
</blockquote>
<p>--<br>
Sora Harakami - @sora_h<br>
Blog: <a href="http://codnote.net/" class="external">http://codnote.net/</a><br>
Detail: <a href="http://sorah.cosmio.net/" class="external">http://sorah.cosmio.net/</a></p>
</blockquote>
</blockquote>
<p>--<br>
Sora Harakami - @sora_h<br>
Blog: <a href="http://codnote.net/" class="external">http://codnote.net/</a><br>
Detail: <a href="http://sorah.cosmio.net/" class="external">http://sorah.cosmio.net/</a></p>
<p>=end</p>