On 9 Ιούν, 22:35, Walton Hoops <m... / waltonhoops.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 6/9/2011 1:15 PM, Ilias Lazaridis wrote: > > > ruby 1.9.2p180 Windows 7 > > > Rubygems is included in ruby 1.9. > > > Because it's included, I expect that it will work out-of-the-box, > > without the need to use > > > ruby -rubygems myscript.rb > > > and especially not > > > require "rubygems" > > > within *.rb files > > > - > > C:\Users\walton.hoops\repos>ruby --version > ruby 1.9.2p180 (2011-02-18) [i386-mingw32] same version here. > C:\Users\walton.hoops\repos>irb > irb(main):001:0> require 'sinatra' > => true > irb(main):002:0> > > Works for me. > Does it not for you? It works. And in my file, I've removed "require 'rubygems' " now, and it works, too (to my surprise). But I'm sure it did not. After I installed via the "one-click- installer", I had to use "require 'rubygems' " in order to make it work. I've now uninstalled everything including the gems, and reinstalled: It works again. I can't recreate it on this machine anymore. > If not can you give us some more > information, such as a simple demo that reproduces the issue? It was really not much more than: require 'rubygems' #add this, thus files can be started with double- click on windows-explorer require 'sinatra' require 'json' #some code to test rest & json . -- http://lazaridis.com