[LRUG] Bundler : A gem to bundle gems

Damian Janowski damian.janowski at gmail.com
Wed Jul 29 06:32:03 PDT 2009


On Wed, Jul 29, 2009 at 3:58 AM, Anthony Green<email at acgreen.co.uk> wrote:
> Interesting project from Wycats -
>
> "Bundler is a tool that manages gem dependencies for your ruby application.
> It takes a gem manifest file and is able to fetch, download, and install the
> gems and all child dependencies specified in this manifest."
>
> http://github.com/wycats/bundler/tree/master

Yeah, he's extracting the Rails mechanism into a separate gem.

Along the same lines, but with a much simpler approach, I started to
work on Dependencies: http://github.com/djanowski/dependencies.

Given a simple ./dependencies file:

  rack ~> 1.0
  sinatra
  webrat (test) git://github.com/brynary/webrat.git

You get a correct $LOAD_PATH (then it's up to you to do the actual
require's) and simple commands to help you:

  $ dep list
  rack ~> 1.0
  sinatra

  $ dep list test
  rack ~> 1.0
  sinatra
  webrat (test)

  $ dep vendor webrat
  ...
  $ tree -L 2 vendor
  vendor/
  `-- webrat
      |-- History.txt
      |-- MIT-LICENSE.txt
      |-- README.rdoc
      |-- Rakefile
      |-- install.rb
      |-- lib
      |-- spec
      `-- vendor

Ok, you get the idea. As you'll see from the examples we're using this
on Sinatra projects and it's working great for us.

D.



More information about the Chat mailing list