Project

General

Profile

Actions

Bug #3590

closed

RubyGems is Broken

Added by sorah (Sorah Fukumori) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]
Backport:
[ruby-core:31377]

Description

=begin
Hi,

Rubygems is broken in ruby 1.9.3dev.
This problem can occur in any gems (I expect).

--
The following code reproduces this problem:

begin # Can't load active_record
p require 'active_record'
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! # So it's raise NameError.

p require 'rubygems'
begin # Can load after require 'rubygems'
p require 'active_record' #it returns true
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! #but NameError is raised.


And the result of that code in r28695:

#<LoadError: cannot load such file -- active_record>
#<NameError: uninitialized constant ActiveRecord>
false
true
#<NameError: uninitialized constant ActiveRecord>


In a reference, this is result of that code in ruby1.9.1:

true
ActiveRecord
false
false
ActiveRecord


And more result (ruby -d) available in here: http://gist.github.com/483826
=end

Actions #1

Updated by evanphx (Evan Phoenix) over 13 years ago

=begin
I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).

  • Evan // via iPhone

On Jul 20, 2010, at 6:17 PM, Sora Harakami wrote:

Bug #3590: RubyGems is Broken
http://redmine.ruby-lang.org/issues/show/3590

Author: Sora Harakami
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]

Hi,

Rubygems is broken in ruby 1.9.3dev.
This problem can occur in any gems (I expect).

--
The following code reproduces this problem:

begin # Can't load active_record
p require 'active_record'
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! # So it's raise NameError.

p require 'rubygems'
begin # Can load after require 'rubygems'
p require 'active_record' #it returns true
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! #but NameError is raised.


And the result of that code in r28695:

#<LoadError: cannot load such file -- active_record>
#<NameError: uninitialized constant ActiveRecord>
false
true
#<NameError: uninitialized constant ActiveRecord>


In a reference, this is result of that code in ruby1.9.1:

true
ActiveRecord
false
false
ActiveRecord


And more result (ruby -d) available in here: http://gist.github.com/483826


http://redmine.ruby-lang.org

=end

Actions #2

Updated by sorah (Sorah Fukumori) over 13 years ago

=begin
Hi, Evan.

Thanks for fix and waiting for that. :-)

On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix wrote:

I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).

 - Evan // via iPhone

On Jul 20, 2010, at 6:17 PM, Sora Harakami wrote:

Bug #3590: RubyGems is Broken
http://redmine.ruby-lang.org/issues/show/3590

Author: Sora Harakami
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]

Hi,

Rubygems is broken in ruby 1.9.3dev.
This problem can occur in any gems (I expect).

--
The following code reproduces this problem:

begin # Can't load active_record
 p require 'active_record'
rescue LoadError => e
 p e
end
p ActiveRecord rescue p $! # So it's raise NameError.

p require 'rubygems'
begin # Can load after require 'rubygems'
 p require 'active_record' #it returns true
rescue LoadError => e
 p e
end
p ActiveRecord rescue p $! #but NameError is raised.


And the result of that code in r28695:

#<LoadError: cannot load such file -- active_record>
#<NameError: uninitialized constant ActiveRecord>
false
true
#<NameError: uninitialized constant ActiveRecord>


In a reference, this is result of that code in ruby1.9.1:

true
ActiveRecord
false
false
ActiveRecord


And more result (ruby -d) available in here: http://gist.github.com/483826


http://redmine.ruby-lang.org

--
Sora Harakami - @sora_h
Blog: http://codnote.net/
Detail: http://sorah.cosmio.net/

=end

Actions #3

Updated by evanphx (Evan Phoenix) over 13 years ago

=begin

On Jul 20, 2010, at 8:04 PM, Sora Harakami wrote:

Hi, Evan.

Thanks for fix and waiting for that. :-)

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.

Let me know if you still have issues! Thanks!

  • Evan

On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix wrote:

I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).

  • Evan // via iPhone

On Jul 20, 2010, at 6:17 PM, Sora Harakami wrote:

Bug #3590: RubyGems is Broken
http://redmine.ruby-lang.org/issues/show/3590

Author: Sora Harakami
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]

Hi,

Rubygems is broken in ruby 1.9.3dev.
This problem can occur in any gems (I expect).

--
The following code reproduces this problem:

begin # Can't load active_record
p require 'active_record'
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! # So it's raise NameError.

p require 'rubygems'
begin # Can load after require 'rubygems'
p require 'active_record' #it returns true
rescue LoadError => e
p e
end
p ActiveRecord rescue p $! #but NameError is raised.


And the result of that code in r28695:

#<LoadError: cannot load such file -- active_record>
#<NameError: uninitialized constant ActiveRecord>
false
true
#<NameError: uninitialized constant ActiveRecord>


In a reference, this is result of that code in ruby1.9.1:

true
ActiveRecord
false
false
ActiveRecord


And more result (ruby -d) available in here: http://gist.github.com/483826


http://redmine.ruby-lang.org

--
Sora Harakami - @sora_h
Blog: http://codnote.net/
Detail: http://sorah.cosmio.net/

=end

Actions #4

Updated by Anonymous over 13 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28703.
Sora, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Actions #5

Updated by sorah (Sorah Fukumori) over 13 years ago

=begin
I checked it. Thank you! :-)

On Wed, Jul 21, 2010 at 3:35 PM, Evan Phoenix wrote:

On Jul 20, 2010, at 8:04 PM, Sora Harakami wrote:

Hi, Evan.

Thanks for fix and waiting for that. :-)

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.

Let me know if you still have issues! Thanks!

 - Evan

On Wed, Jul 21, 2010 at 11:16 AM, Evan Phoenix wrote:

I have a fix for this, sorry about the breakage. I'll commit the fix later this evening (Pacific time).

 - Evan // via iPhone

On Jul 20, 2010, at 6:17 PM, Sora Harakami wrote:

Bug #3590: RubyGems is Broken
http://redmine.ruby-lang.org/issues/show/3590

Author: Sora Harakami
Status: Open, Priority: Normal
ruby -v: ruby 1.9.3dev (2010-07-21 trunk 28695) [x86_64-darwin10.4.0]

Hi,

Rubygems is broken in ruby 1.9.3dev.
This problem can occur in any gems (I expect).

--
The following code reproduces this problem:

begin # Can't load active_record
 p require 'active_record'
rescue LoadError => e
 p e
end
p ActiveRecord rescue p $! # So it's raise NameError.

p require 'rubygems'
begin # Can load after require 'rubygems'
 p require 'active_record' #it returns true
rescue LoadError => e
 p e
end
p ActiveRecord rescue p $! #but NameError is raised.


And the result of that code in r28695:

#<LoadError: cannot load such file -- active_record>
#<NameError: uninitialized constant ActiveRecord>
false
true
#<NameError: uninitialized constant ActiveRecord>


In a reference, this is result of that code in ruby1.9.1:

true
ActiveRecord
false
false
ActiveRecord


And more result (ruby -d) available in here: http://gist.github.com/483826


http://redmine.ruby-lang.org

--
Sora Harakami - @sora_h
Blog: http://codnote.net/
Detail: http://sorah.cosmio.net/

--
Sora Harakami - @sora_h
Blog: http://codnote.net/
Detail: http://sorah.cosmio.net/

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0