Are there plugins available for Hpricot or Mechanize

Hi All.

Does anyone know if there are plugins available for Hpricot or
Mechanize? I’d like to install plugins into my rails app instead of
using gems if that’s possible.

THANKS!

Does anyone know if there are plugins available for Hpricot or
Mechanize? I’d like to install plugins into my rails app instead of
using gems if that’s possible.

Why not vendor the gems into your rails app?

Philip H. wrote:

Why not vendor the gems into your rails app?

This code is kept up through multiple machines and rather than require
gem installs for each of them, we wanted to put it into subversion with
the application if that’s possible.

Philip H. wrote:

rake gems:build # Build any native extensions for
unpacked gems
rake gems:unpack # Unpacks the specified gem into vendor/
gems.
rake gems:unpack:dependencies # Unpacks the specified gems and its
depende…

Do I need to run a rake gems:install command? Also, do I just create a
new section in environment.rb and drop this code there?

Thanks.

Why not vendor the gems into your rails app?

This code is kept up through multiple machines and rather than require
gem installs for each of them, we wanted to put it into subversion
with
the application if that’s possible.

Right. This should work for you and is part of Rails…

rake gems:build # Build any native extensions for
unpacked gems
rake gems:unpack # Unpacks the specified gem into vendor/
gems.
rake gems:unpack:dependencies # Unpacks the specified gems and its
depende…

As a follow-up to how to enable these gems to be packaged within the
application… how does it work across multiple OS’s? I have Windows
environments and Linux environments. Is it possible to put these gems
in vendor/gems and have them work across systems?

I also saw this for Rails 2.1 that I could put into the environment.rb
file.

config.gem “hpricot”, :version => ‘0.6’, :source
=>http://code.whytheluckystiff.net"

If I put this code in environment.rb, then I’ll still need to run
rake:gems install on each machine that this application is installed on,
correct? I’d really like to avoid needing to do an additional step if
gems need to be installed.

Can I create a rake task (rake:install, etc.) that would automatically
install the gem if it’s not already on the system prior to starting the
server?