From: Michael Neumann Date: 2004-11-29T21:57:12+09:00 Subject: Re: [ANN] postgres-pr (pure Ruby PostgreSQL) Stu wrote: > On Fri, 19 Nov 2004 00:12:28 +0900, Michael Neumann > wrote: > > >> > gem install postgres-pr >> > irb -r rubygems >> >>Then in the interactive Ruby interpreter type (replace DBNAME and DBUSER >>accordingly): >> >> require 'postgres-pr/connection' >> c = Connection.new('DBNAME', 'DBUSER') >> c.query('SELECT 1+2') # => [["3"]] >> > > > Am having problems testing... > > I added 0.2.2 via gem install method.. > > and following the above I get; > > E:\ruby\code\postgres-test>irb -r rubygems > irb(main):001:0> require 'postgres-pr/connection' > => true > irb(main):002:0> c = Connection.new('dbtest', 'sgeorge') > NameError: uninitialized constant Connection from (irb):2 I moved everything into the PostgresPR module. c = PostgresPR::Connection.new(...) should work. Rubygems does not automatically inlude Module's. Regards, Michael