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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -