Forum: Ruby-core autoload Can't Require Gems

F24ff61beb80aa5f13371aa22a35619c?d=identicon&s=25 mame (Yusuke Endoh) (Guest)
on 2012-11-24 03:31
(Received via mailing list)
Issue #4233 has been updated by mame (Yusuke Endoh).

Target version changed from 2.0.0 to next minor

Thank you drbrain for the explanation!
Recently, nahi is not so active.  So, I'm sorry but I recognize this as
a (bad) spec of 2.0.0.

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Feature #4233: autoload Can't Require Gems
https://bugs.ruby-lang.org/issues/4233#change-33745

Author: runpaint (Run Paint Run Run)
Status: Assigned
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: core
Target version: next minor


=begin
 Is it intentional that when used via `autoload`, `require` can't handle
Gem names?

     run@desktop:~/mir/ruby$  →  ruby -e 'p require "nokogiri"'
     true
     run@desktop:~/mir/ruby$  →  ruby -e 'autoload(:N, "nokogiri"); p N'
     -e:1:in `<main>': cannot load such file -- nokogiri (LoadError)
=end
This topic is locked and can not be replied to.