From: kevid on
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.
From: Eric Hodel on
On Apr 27, 2010, at 10:20, kevid wrote:

> 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.

gem install hpricot


From: Francesco Vollero on
Il 27/04/10 20.13, Eric Hodel ha scritto:
> On Apr 27, 2010, at 10:20, kevid wrote:
>
>
>> 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.
>>
>>
>>
> gem install hpricot
>
>
You miss the question... He didnt want to install as gem...

Kevid: look here http://github.com/whymirror/hpricot and... here
http://github.com/whymirror/hpricot/tree/master/ext/hpricot_scan/

Regards,

Francesco


 | 
Pages: 1
Prev: Client server
Next: custom rbconfig.rb