Posts Tagged ‘gem’

Release 0.4.0

Wednesday, March 26th, 2008

It’s finally here! The release you’ve all been waiting for, 0.4.0!! What’s new in this one? Well, the big one, DISTRIBUTED ROUTING!!! Now you can share your routes between all of your Mack applications.

I’m very excited about this release. This is one of the first features that starts to set Mack apart from other Ruby frameworks such as Rails and Merb.  Mack is trying to set itself as the framework for doing multiple, distributed, portal applications. This release gets us headed in that direction.

There will be a tutorial post and app in the next few days. In the meantime I highly encourage you to download this release and check it out.

Changelog:

  • Added Distributed Routes!
  • gem: mack_ruby_core_extensions 0.1.3
  • removed gem: ruby_extensions
$ sudo gem install mack

Announcing Mack Ruby Core Extensions

Wednesday, March 26th, 2008

Mack has been using a combination of the ruby_extensions gem as well some local extensions to the Ruby core in order to make Mack as wonderful as it is. In an effort to make life a little simpler, as well as to help share the wealth, the ruby_extensions gem and the Mack extensions have been combined into a single new gem called mack_ruby_core_extensions.

One of the main Mack pieces that has been broken out into this new gem is the inflection system. Now you can have inflections as part of any Ruby application just by requiring the gem. As far as I can tell this is the first stand alone inflection system for Ruby. I know because I couldn’t find one for Mack, that’s why I had to write one.

This gem will continually be updated, outside of the core Mack code. The forthcoming release of Mack, 0.4.0, will be converted to use the new gem.

Those who wish to contribute to the gem can find it on GitHub at: http://github.com/markbates/mack_ruby_core_extensions

The API for mack_ruby_core_extensions can be found at:
http://mrce-api.mackframework.com/

 $ sudo gem install mack_ruby_core_extensions

Release 0.2.0

Tuesday, March 11th, 2008

A couple of really cool features in this release. In controllers and views you can  now call:

render(:url=> "http://www.mycoolurl.com")

Developers can now also develop their own custom rendering systems, without monkey patching the core:

class Mack::Rendering::Pdf < Mack::Rendering::Base
  def render
    # do work to render stuff as a PDF
  end
end

Now add this to the list of available render systems:

app_config.mack.rendering_systems << :pdf

You should now be able to do this in your controller:

class MyAwesomeController < Mack::Controller::Base
  def pdf
    render(:pdf => "my_pdf_template")
  end
end

Install:

$ sudo gem install mack

Changelog:

  • ticket: 3 Render url in Controllers/Views
  • ticket: 5 Render Extension System.

Release 0.1.0

Tuesday, March 4th, 2008

Rejoice! Yet another new release. Please be patient for the gem mirrors to pick it up.

Changelog:

  • Added an inflections system. The default inflections are from Jeremy McAnally’s great Rails plugin, acts_as_good_speeler. Thanks Jeremy! http://www.jeremymcanally.com/
  • Added a to_params method to Hash to help with testing.
  • Added rake generate:scaffold task.

Release 0.0.7.0

Monday, March 3rd, 2008

Nothing exciting at all in this release. It’s just a reorganization of the gem. No need to rush out and download the latest gem.

$ sudo gem install mack

Changelog:

  • Fixed [#18488] Recommend moving files under lib/