When I require 'nokogiri' in Ruby 2.0, it has an error
require 'nokogiri'
`require': cannot load such file -- nokogiri/2.0/nokogiri (LoadError)
Does nokogiri really not support Ruby 2.0? I see nokogiri on the gem list
gem list
Nokogiri now supports Ruby 2.0, even on Windows, see HERE
Ruby 2.0 support is not yet available for Windows. Follow here for updates:
Yes, it works fine:
RUBY_VERSION # => "2.0.0" require 'nokogiri' doc = Nokogiri::HTML('<html><body><p>foo</p></body></html>') doc.at('p').text # => "foo"