Fork me on GitHub

Archive for the ‘Updates’ Category

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.

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.

Release 0.7.1

Monday, September 8th, 2008

Although not as sexy a release as 0.7.0, there are some very important bug fixes and some cool new little features in this release. Rack has been upgraded to v0.4.0. DataMapper to 0.9.5. Facets to 2.4.4, and a few other gems as well.

There is now a much nicer session store API that will allow developers to build their own session stores. There’s also a couple of new session stores that ship with 0.7.1. There’s a DataMapper session store, and a cookie session store, which is now the default session store. The previous Cachetastic based session store can be used by requiring the mack-caching gem in gems.rb and putting the following setting in your app_config/*.yml file:

mack::session_store: cachetastic

There is now built-in support to help prevent cross-site scripting attacks on forms. Some view helper methods have nice updates such as :disable_with and :confirm, and asset hosts.

And a whole host of other little improvements across the board. Enjoy!

Changelog:

  • [#153] Emails with just a single ‘part’ are now being sent correctly.
  • [#147] Added :confirm to button helpers.
  • [#146] [Diogo Almeida] Added :disable_with to submit_button form helper.
  • [#145] Added rake generate:<generator_name>:desc task to ‘describe’ a Genosaurus generator
  • [#144] INCOMPATIBILITY NOTICE: rake server is no more. Please use mackery server instead.
  • [#142] INCOMPATIBILITY NOTICE: rake console is no more. Please use mackery console instead.
  • [#140] Added Mack::BootLoader
  • [#139] Added ability to change the pattern for test files
  • [#137] Added subdomains method on request.
  • [#130] Added ability to ‘reload’ the console
  • [#129] DataMapper 0.9.5 support
  • [#128] Updated json_pure to 1.1.3 and removed ruby-debug dependency
  • [#127] Moved mack-paths into core
  • [#126] XSS Prevention
  • [#125] Cookie store is now the default session store, not cachetastic
  • [#124] Opened up the session store API
  • [#122] Added DataMapper session store.
  • [#121] Cookie session store support.
  • [#120] Added PassengerGenerator to generate the necessary files to run Mack with Passenger Phusion (mod_rails)
  • [#118] Mack/mack-more can be loaded from vendor/framework/mack and vendor/framework/mack-more
  • [#117] Added rake task: mack:freeze:edge
  • [#107] Updated to Rack 0.4.0
  • [#95] Removed deprecated model_* methods
  • [#94] Removed deprecated submit_tag
  • [#40] Added Mack::Utils::ContentLengthHandler so response will now have ‘Content-Length’ in its header.
  • [#21] Asset Hosts
  • gem: rack 0.4.0
  • gem: json_pure 1.1.3
  • gem: data_mapper 0.9.5
  • gem: genosaurus 1.2.4
  • gem: ezcrypto 0.7
  • gem: facets 2.4.4

 

 

Configatron 1.1.0 Released

Thursday, September 4th, 2008

On the heels of last week’s successful release of Configatron 1.0.0 comes version 1.1.0. The big addition, feature wise, to 1.1.0 is the ability to now load configurations from a YAML file.

configatron.configure_from_yaml('/path/to/file.yml')

When reload is called on configatron any YAML files will be read back in from disk, allowing you to change your configurations and reload them.

Enjoy!