rharriso/bower-rails — pull request #4 by fddayan (2013-04-06 15:39:29+00:00)
Title: Bower dependencies with Ruby DSL similar to Bundler Gemfile

### I put this together quick to illustrate the idea. It might need some cleaning.

It's a Ruby DSL to for Bower instead of JSON similar to Gemfile

Good thing is that is Ruby and similar to Bundler
Bad thing is that if the way Bower expects the JSON changes/updates, the dsl has to get updated (However, not big deal I think)

In your `rails` app root dir create a `Jsfile` and put

group :vendor do
js "jquery", "git://github.com/components/jquery.git"
js "backbone","latest"
end

group :lib do
js "jquery","git://github.com/components/jquery.git"
js "backbone","latests"
end

Then run

`rake bower:dsl:install`

It creates a `component.json` under:

`:group_name/assets/javascript`

so, you will find a `component.js` in
`lib/assets/javascript/component.js`
`vendor/assets/javascript/component.js`

Then runs `bower install`

of course `bower update` is also available

### Let me know if you would consider this and I can clean it up. I might suggest others fancy features too.

# NOTE:
I have also added a `Rakefile` and a `Gemfile` to manage the gem thru `Bundler`