Nokigiri in Ruby 2.0

When I require 'nokogiri' in Ruby 2.0, it has an error

 `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

+4
source share
3 answers

Nokogiri now supports Ruby 2.0, even on Windows, see HERE

0
source

Ruby 2.0 support is not yet available for Windows. Follow here for updates:

+2
source

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" 
0
source

All Articles