ruby - Is `require "rubygems"` returning `false` ok? -


requiring "rubygems" gives false, requiring "appium_lib" gives true. i.e.,

require 'rubygems' # => false require 'appium_lib' # => true 

is ok? not trying require doesn't exist, i.e.:

require 'does_not_existxxxxxxx' # => loaderror: cannot load such file -- does_not_existxxxxxxx 

it should fine. requiring file second time results in false response. load, it's different thing, load (require) file each time requested.

so means irb starting rubygems required, not surprise.

for example, load heavily used in rails' development mode, changes can shown.

since ruby 1.9 rubygems automatically required.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -