# Temporary hacked gem for Hpricot to work on 1.9

**URL:** <https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201>\
**Category:** Ruby\
**Created:** [December 26, 2007, 11:02am UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201 "2007-12-26T11:02:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mifi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mifi](https://www.ruby-forum.com/u/mifi)\
**Post date:** [December 26, 2007, 11:02am UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201/1 "2007-12-26T11:02:46Z")

</div>

I just spent a while to port Hpricot to ruby 1.9 and finally had  
success. The gem can be found at

[http://weez-int.com/gem/hpricot-0.6.gem](http://weez-int.com/gem/hpricot-0.6.gem)

But more important i think is to share information on how to create  
the gem, here are the:  
fixed ext/hpricot\_scan/extconf.rb: [http://p.ramaze.net/19](http://p.ramaze.net/19)  
fixed Rakefile: [http://p.ramaze.net/20](http://p.ramaze.net/20)

The most important changes here are patching the C generated by ragel  
(i have no knowledge of ragel, that should be probably fixed on their  
side, i guess) and that ruby1.9 has no ::Config module anymore, it’s  
RbConfig.  
I’ll post the same information to hpricots bugtracker, but i figured  
it’s a commonly used gem and so more people should be able to enjoy it  
on 1.9 😉

^ manveru

---

<div class="post-metadata">

**Author:** ![mifi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mifi](https://www.ruby-forum.com/u/mifi)\
**Post date:** [December 26, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201/2 "2007-12-26T18:46:11Z")

</div>

On Wed, Dec 26, 2007 at 07:02:14PM +0900, Michael F. wrote:

> I just spent a while to port Hpricot to ruby 1.9 and finally had  
> success. The gem can be found at
> 
> [http://weez-int.com/gem/hpricot-0.6.gem](http://weez-int.com/gem/hpricot-0.6.gem)

Oh, hey, that’s great! Just checked changes into Hpricot trunk to  
reflect this.

\_why

---

<div class="post-metadata">

**Author:** ![mifi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mifi](https://www.ruby-forum.com/u/mifi)\
**Post date:** [December 26, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201/3 "2007-12-26T21:10:22Z")

</div>

\_why wrote:

> 

Thanks!! Now all I need is “rcov” and I can start testing BDD with Ruby  
1.9.0-0!!

---

<div class="post-metadata">

**Author:** ![mifi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@mifi](https://www.ruby-forum.com/u/mifi)\
**Post date:** [January 2, 2008, 2:03am UTC](https://www.ruby-forum.com/t/temporary-hacked-gem-for-hpricot-to-work-on-1-9/124201/4 "2008-01-02T02:03:50Z")

</div>

And another… [http://p.ramaze.net/60](http://p.ramaze.net/60)

[http://code.whytheluckystiff.net/hpricot/ticket/135](http://code.whytheluckystiff.net/hpricot/ticket/135)

Aman G.

\_why wrote:

> On Wed, Dec 26, 2007 at 07:02:14PM +0900, Michael F. wrote:
> 
> > I just spent a while to port Hpricot to ruby 1.9 and finally had  
> > success. The gem can be found at
> > 
> > [http://weez-int.com/gem/hpricot-0.6.gem](http://weez-int.com/gem/hpricot-0.6.gem)
> 
> Oh, hey, that’s great! Just checked changes into Hpricot trunk to  
> reflect this.
> 
> \_why
