Stephan KçÎper ha scritto: > With gems you need to > > require 'rubygems' > > before > > require 'session' > > for some reason. > I guess the point is, that this way rubygems is able to install a > missing gem. the reason is that rubygems uses require_gem to load a gem with a specific version, and that method is not built in. > > What I don't like as much is that I have to think whether I installed > something as a gem or not. I'd rather my ruby installation would find a > gem-installed file even without 'require "rubygems"' (although I might > not have the additional service of installing/updating missing and/or > outdated gems during runtime). see the latest announce. Something like setting RUBYOPT="rubygems" should be enough for you to get away ignoring if you're using gems or something else.