markbates / configatron

A super cool, simple, and feature rich configuration system for Ruby apps.

Home Page:http://www.metabates.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No install docs

mrichman opened this issue · comments

How do I install and configure this? Is it a gem, plugin, etc?

It's a gem. You can install it with:

$ sudo gem install configatron

or if you want to live on the edge:

$ sudo gem install markbates-configatron --source=http://gems.github.com

Since it's a gem I added this to my environment.rb:

config.gem "markbates-configatron", :lib => "configatron", :version => "2.3.2", :source => "http://gems.github.com"

and ran 'rake gems:install'. It didn't work:

ERROR: could not find gem markbates-configatron locally or in a repository

Where am I going wrong?

Thanks!

It looks like GitHub is not building the gem, despite me telling it that it should. I'll try to give them a kick and see if they'll build the gem again. In the meantime I would use the official release version:

config.gem 'configatron'

That will definitely work. I'll let you know if GitHub builds the gem.

GitHub has now built the gem. So you should be able to pull it from there.

FYI, if you want to use the GitHub version you will need to lose the :version parameter, or alter it to be >= 2.3.2. The reason for this is I build all my GitHub gems with the current date appended to them.

Example:
markbates-configatron (2.3.2.20090731134515)

The canonical versions are all RubyForge.