Get on Merb Edge pre 1.0


Merb 1.0 is almost ready to be pushed out and you might be impatient to start playing with some of the goodies not yet available in the latest stable release. Before getting started, you should know that not everything has been ironed out yet so don’t expect to have a fully stable Edge.

The easiest way to get started requires that you have git installed as well as a gem called thor.

I let you take care of installing git on your machine, Ruby dev without git became quite challenging since GitHub started ruling the Ruby OSS world.

sudo gem install wycats-thor -s http://gems.github.com
Hops, used primarily as a flavoring and stability agent in beer, and also in other beverages and in herbal medicine.

Hops, used primarily as a flavoring and stability agent in beer, and also in other beverages and in herbal medicine.

Thor is a sort if mix between rake, sake with a better argument parser and based on Ruby classes.

Thor on its own won’t be very helpful, we need some thor tasks.

Create a folder where you want to store Merb’s source code and cd in it.

Once there download the latest merb thor tasks:

curl -L http://merbivore.com/merb.thor > merb.thor

You can now look at the available task by doing

thor -T


At this point you be overwhelmed by the multitude of options, we are working on making things a be nicer for 1.0. But anyways, let’s get started:

sudo thor merb:edge --install

The command above will install extlib, merb-core and merb-more from git HEAD. You now have the latest version of Merb’s libs installed locally as gems.

You might also want to install Merb extra plugins, if that’s the case do:

 sudo thor merb:edge:plugins --install

If you decided to use DataMapper instead of ActiveRecord or Sequel, you will also need to install the gems you might need:

Install data_objects and an adapter: (replace mysql by the adapter you want to install)

 sudo thor merb:edge:do mysql --install

Install DataMapper core from Git HEAD

 sudo thor merb:edge:dm_core --install

Install DataMapper more from Git HEAD

 sudo thor merb:edge:dm_more --install

You should be all setup by now.


Next time you want to update, just come back to the same folder and do the same thing. Hopefully by then we will have a 1 task solution and will offer a merb-stack version of our gems to let you install everything at once with all setup done.

p.s: this post is dedicated Derek Neighbors ;)


Similar Posts

, , ,

  1. #1 by Graham Ashton - October 5th, 2008 at 10:32

    Hi Matt. The URL for merb.thor seems to be broken — it redirects to an HTML page on wycats’ github repo for merb-more…

  2. #2 by Matt Aimonetti - October 5th, 2008 at 10:45

    @ Graham problem fixed. Thanks.

  3. #3 by R. Elliott Mason - October 6th, 2008 at 17:59

    That was quite painless, especially considering I’m on Windows.

  4. #4 by Geoffrey Grosenbach - October 10th, 2008 at 08:53

    And here’s a rake task to call all those with a single command.

    http://gist.github.com/16098

  5. #5 by Graham Ashton - October 22nd, 2008 at 00:38

    merb.thor has changed a bit recently – I used to have a script to automate the above, but it’s no longer necessary. See http://effectif.com/2008/10/5/installing-merb-with-thor.

Comments are closed.