Merb-0.5.0 is out.

Posted by ezmobius Thu, 10 Jan 2008 08:45:00 GMT

We’ve just cut the 0.5.0 release of merb. This release has numerous improvements and features, such as:

  • Improved Haml support including pre-compiling and fast inlining of haml partials.
  • built in Sass support, just add a sass directory in public/stylesheets, it will automatically regenerate the CSS in dev mode as well if you change the .sass files.
  • Refactor server.rb into config.rb and boot_loader.rb
  • Got rid of MERB_ROOT and other ugly constants and replaced them with Merb.root and friends.
  • Asset Bundling
  • New param protection plugin
  • Built in support for ruby-debug
  • New releases of the merb_datamapper, merb_sequel, merb_activerecord and merb_helpers plugins.
  • better support for namespaced routes
  • More generators, including Part generators
  • Removed FormControlMixin, use merb_helpers instead.
  • Improved spec and test helpers.

This release cleans up the merb boot and configuration process and got rid of a bunch of constants and replaced them with the Merb object. See this pastie for the mapping from the old constants used to the new way of accessing the same info. If you are updating your 0.4.x merb app to 0.5 you will need to update your merb_init.rb, boot.rb and dependencies.rb to reflect the new style of accessing config values. Generate a fresh app and make your app match the changes in these 3 files.

This release has a lot of contributions from the growing merb community. Merb is still a young one though at 0.5 and we have some big(and little) plans for the next release. We will be splitting the framework into merb-core and merb-more. Merb-core will be all the HTTP tooling code as well as the dispatcher, router, controller, views and glue to hold them together. Everything else will be moved to merb-more or a plugin. There will still be a merb gem, but it will just install merb-core and merb-more as dependencies.

The whole idea of merb-core is to keep a very small tight core framework that deals with the infrastructure needed to write highly scalable, fast web services and back-ends. merb-core plus merb-more will be a more full featured framework. This way Merb can scale your apps from tiny to as large as you need instead of assuming you need the whole kitchen sink, allowing you to start with merb-core and cherry pick the features you need from merb-more.

So gem install merb should get you the 0.5.0 release now. If you want to follow or help with merb development the trac is here

This is the “Thanks Zed” release. Thanks for mongrel Zed, it has truly been a great dog. You will be missed.

Tags , ,  | 23 comments


  1. Michael Siebert said 12 minutes later:
    There is also a new Plugin for Merb: attachmerb_fu! Like the name suggests, its a port of Rick Olson's famous attachment_fu rails plugin to merb. Check it out via "gem install attachmerb_fu"
  2. sergiu said about 2 hours later:
    thanks for this Ezra! If you keep focusing on speed and small memory print, Merb might become really good alternative to Rails. Btw, at the beginning of Merb, you didn't recommend it as a replacement for Rails. What do you think now? :) I started experimenting with it because of the speed and small amount of memory needed.
  3. QaDeS said about 2 hours later:
    Great stuff! Can't wait playing around with the new pack. The link should go to though ;o)
  4. john said about 5 hours later:
    Ive been using merb for a while now and im loving the performance and simplicity. Personally I would choose merb over rails for most projects!! Ezra, fantastic job with merb!! I know u love performance. Have u tried thin yet? How does it perform?
  5. JonMagic said about 5 hours later:
    We have been using merb for all of our internal apps for several months now, and we're about to take 4 of our internal apps (internal to my little IT firm) and hopefully make them available to the world... merb (with datamapper) has made this faster, stabler, and more fun to code than any of the rails projects we worked on before... So thank you for another great release, we'll continue to put in bug reports and patches as we can...
  6. dominic said about 5 hours later:
    Seems like you messed something. I´m getting this error when running rake in a merb directory: --- rake aborted! undefined method `app_loaded?' for Merb::Server:Class /path/to/sample/merbapp/Rakefile:20 --- It worked fine with 0.4.2
  7. Steve Martocci said about 5 hours later:
    Thanks Ezra and the core team. We just started using merb to replace a part of our rails app that needed optimizing. I love the flexibility and think this is really going to start becoming our primary framework as things progress. I would have never considered using merb if it wasn't for the expertise over at Engine Yard. Thanks again all!
  8. dominic said about 6 hours later:
    Nevermind, I just forgot to update merb_datamapper. Thanks for the release! :)
  9. ynw said about 7 hours later:
    Thanks Zed and thanks eZra! 'z' and short names should have something to do with doing great code...
  10. Zack said about 7 hours later:
    Well done Ezra and contributors!
  11. Jeff Casimir said about 8 hours later:
    EZ, Congrats on another release - it looks like this project is really building steam. Don't work too hard - you need to sleep a little. BTW, make plans to go to SXSW this year!
  12. Ben Reubenstein said about 9 hours later:
    Nice release! Is there a gotcha page going for the 0.5.0? I had an issue with .xerb not being a valid extension for XmlBuilder, now .builder.
  13. David Parker said about 10 hours later:
    Great work Ezra! Rails was my gateway drug into Ruby, but recently I've been exploring all the facets of Ruby... looking into Merb, Shoes, etc. Keep up the good work!
  14. Niket Patel said about 11 hours later:
    Thanks, Ezra for merb. I started using Merb on one large project. after some initial frustrations (largely , because some convention I learned in past. and some tiny bugs), Now I started enjoying coding in merb.
    Thanks Zed!
  15. JK said about 12 hours later:
    Thanks Ezra, Merb is fantastic. So - when's Merbconf ? :)
  16. Dado said about 16 hours later:
    The more I use Merb the more fond of it I become. +1 to separate merb_core and merb_more! I am using it for fast restful services and I would have to see it bloat like Rails. Keep up with the good work! P.S.: what's the new version of merb_datamapper... it did not seem to update together with merb 0.5
  17. Dermot said 1 day later:
    Thanks for the release! Just wanted to add that when I was updating from merb 0.4 to 0.5 I had to update the Rakefile in the merb root as well as the three other files mentioned (merb_init, dependencies and boot).
  18. Carl said 1 day later:
    We've been using Merb for a couple of months and we're loving it. Keep up the good work!
  19. Anonymous said 1 day later:
    Also, don't forget to update test_helper.rb to the new style config.
  20. Clint said 1 day later:
    Any chance between releases that the default app lost it's default page? I get a route (400) error in brand new apps. No biggie - just want to assure I have a correct install.
  21. meekish said 1 day later:
    I just found vintage ( and had a thought that Merb was destined to outgrow its britches (like Rails). Splitting the framework into merb-core and merb-more has given Merb a much brighter future; long live Merb!
  22. Eric Davis said 5 days later:
    Awesome. I've been hearing a lot about Merb and it looks like this will be the final push I need to try it out.
  23. Jack said 28 days later:
    I will try Merb out.

(leave url/email »)

   Preview comment