Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

UnderpantsGnome edited this page · 2 revisions
Clone this wiki locally

GemTools

I use this to manage gem versions in my apps, it has a rake task to install gems and a load util to load them on startup.

Install or update required gems


rake gems:install
</pre>

Make sure they are loaded with the right versions during startup, by adding the following to environment.rb


GemTools.load_gems
</pre>

The config file looks like


:source: http://local_mirror.example.com # this is optional
:gems:
  - :name: mongrel
    :version: "1.0"
  1. this gem has a specfic source URL
    :source: ‘http://mongrel.rubyforge.org/releases’
- :name: hpricot :version: ‘0.4’
  1. this tells us to load not just install
    :load: true
- :name: postgres :version: ‘0.7.1’ :load: true
  1. any extra config that needs to be passed to gem install
    :config: ‘—with-pgsql-include-dir=/usr/local/pgsql/include —with-pgsql-lib-dir=/usr/local/pgsql/lib’
Something went wrong with that request. Please try again.