Archive for September, 2008

Configatron 2.1.1 Released!

Thursday, September 18th, 2008

On the heels of yesterday’s release of Configatron 2.0.0, Cody Maggard has generously donated a patch to add the following methods: unprotect, protect_all!, and unprotect_all!

Cody is also the developer of the configatron-rails plugin which makes integrating configatron into your Rails app pretty darn easy. You can checkout his project on GitHub. Thanks Cody!

Configatron 2.0.0 Released!

Wednesday, September 17th, 2008

I’ve spent the last few days incorporating Configatron 1.x into the Mack framework, for our forth coming 0.8.0 release. During that time, I’ve released that Configatron could be better, and that it should be better. I got quickly annoyed with the multiple lines of code I needed to write to just to set a single ‘nested’ parameter. I got frustrated trying to set default values for libraries, after, I had already loaded the user’s configurations. Why couldn’t I easily check to see if a parameter was nil or not? So taking all that into account, as well as some great feedback from users, Configatron 2.0.0 was born. It’s a complete rewrite of the library. It’s quicker, and easier to use.

Just take a look at this example:

It definitely doesn’t get much easier than that!

With this new release you can protect parameters to prevent end users from modifying them:

Since most configurations systems get loaded before outside libraries, you can run into a problem where the library is expecting certain parameters to be set, but your end user hasn’t set them all, they’ve just set the few that are important to them. So what do you do? You don’t want to override the end user’s settings, Configatron can now help you with that:

Of course, these are just some of the enhancements in 2.x Please read the README file and checkout the API for more information.

Mack @ RubyConf ‘08

Thursday, September 11th, 2008

Mark your calendars, on Day One, from 1.15PM – 2.00PM, in Room 2, I’ll be delivering a presentation on building distributed applications.

http://www.rubyconf.org/talks/15

Building multiple applications that all need to share data and other information between can be a daunting and challenging task. Mark will help to demystify the use of Ruby systems such as Rinda and DRb and show you how they can be used to link applications together. Through the development of the Mack framework and its use in building Helium.com, Mark will share the highlights and the pitfalls of distributed application development.

Make sure and sign up for the conference today, as attendance is limited to only 500.

Configatron 1.2.1 Released

Wednesday, September 10th, 2008

Thanks to Brandon Dimcheff for contributing a patch that let’s you call .to_hash on configatron to get your configuration settings out as a Hash.

Please take a moment and checkout Brandon’s blog at: http://its.arubything.com/

Thanks again Brandon

Configatron 1.2.0 Released

Monday, September 8th, 2008

Thanks to Simon Menke for contributing a great patch to Configatron that will automatically ‘namespace’ your configuration settings if you use the configure_from_hash or the configure_from_yaml methods.


Both give you the same results:

If you get a chance visit Simon’s blog at: http://5xm.org/ and say hi. Thanks again Simon.