[Ruby] nokogiri issue

apps

#1

Hello! I’m trying to get nokogiri up and running…
It seems that the gem has been installed as it should inside my .gems directory…

Now… this is what I try using irb…

[host]$ irb
irb(main):001:0> require ‘/home//.gems/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri’
=> true
irb(main):002:0> require ‘open-uri’
=> true
irb(main):003:0> doc = Nokogiri::HTML(open(‘http://www.google.com/search?q=tenderlove’))
NoMethodError: undefined method `HTML’ for Nokogiri:Module
from (irb):3
from /usr/lib/ruby/1.8/uri/generic.rb:479

As you can see… the requirements are met.
But when it comes to define the method it fails.

Any ideas why?

Thanks for your help

-andreas