--disable-gems permanent?

R

Roger Pack

Before I report a bug report to core on this one, thought I'd see if
anybody had some feedback first.

Currently with 1.9.1, if you run
$ ruby --disable-gems test.rb

where

test.rb is:
require 'rubygems'
require 'gem_name'


I get:


C:\installs\ruby191p376\lib\ruby\gems\1.9.1\gems\redcar-0.3.3>ruby -v
--disable-gems test.rb
ruby 1.9.2dev (2010-03-24) [i386-mingw32]
Warning:C:/installs/ruby_trunk_installed/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:34:
Win32API is deprecated after Ruby 1.9.1; use dl directly instead
test.rb:2:in `require': no such file to load -- win32/api (LoadError)
from test.rb:2:in `<main>'

and am forced to instead fo

require 'rubygems'
gem 'gem_name'
require 'gem_name'

I assume this is unexpected to others, as well?
Thanks.
-rp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top