Hpricot files ------

Hi all,

I need to make use of “Hpricot gem”
files. I don’t want to install it as a gem. I copied lib/hpricot/*{all
files} and lib/hpricot.rb to my application.

below is lib/hpricot.rb

begin
require ‘encoding/character/utf-8’
rescue LoadError
end

#require ‘hpricot_scan’
require ‘hpricot/tag’
require ‘hpricot/modules’
require ‘hpricot/traverse’
require ‘hpricot/inspect’
require ‘hpricot/parse’
require ‘hpricot/builder’

ALL files loaded properly except “hpricot_scan”. i can’t find anything
like hpricot_scan.rb in the gem’s folder.

Any help is highly appreciated.

On Apr 27, 2010, at 10:20, kevid wrote:

rescue LoadError
ALL files loaded properly except “hpricot_scan”. i can’t find anything
like hpricot_scan.rb in the gem’s folder.

Any help is highly appreciated.

gem install hpricot

Il 27/04/10 20.13, Eric H. ha scritto:

gem install hpricot

You miss the question… He didnt want to install as gem…

Kevid: look here GitHub - whymirror/hpricot: A swift, liberal HTML parser with a fantastic library and… here
hpricot/ext/hpricot_scan at master · whymirror/hpricot · GitHub

Regards,

Francesco