News for hackers. Stuff that matters.
Re:Rails Assets: frictionless proxy between Bundler and Bower by timdorr on Thursday December 12, 2013 @08:54AM (#6894373)
Sprockets has had native Bower support for some time. In Rails 3.x, there is a version restriction that prevents upgrading to the latest version, but there is a 2.2.2.backport2 version you can use to get at all the new features: http://stackoverflow.com/questions/16266528/how-to-manage-ja...

You can add a .bowerrc and bower.json file to your project and you'll be able to access those components easily: http://dev.af83.com/2013/01/02/managing-rails-assets-with-bo...

Re:Rails Assets: frictionless proxy between Bundler and Bower by teamon on Thursday December 12, 2013 @09:34AM (#6894582)
There are various solutions to managing assets in a rails application but we didn't like any of them. The one you linked to requires having separate list of dependencies and using bower directly which means hacking standard rails deployment.
Re:Rails Assets: frictionless proxy between Bundler and Bower by bigtunacan on Thursday December 12, 2013 @10:33AM (#6894931)
Love it. Keeping JavaScript libraries up to date in Rails can be a real pain and the sprockets solution just isn't all that great. I like how you have approached this with a dead simple approach to implementation and integrating with the existing tooling (bundler/Gemfile). Good work!
Re:Rails Assets: frictionless proxy between Bundler and Bower by joshpeek on Thursday December 12, 2013 @11:08AM (#6895144)
This doesn't replace Sprockets at all, but integrates with it. It replaces bower "installer" with a pure ruby dependency. Sprocket still handles the runtime operation.
Re:Rails Assets: frictionless proxy between Bundler and Bower by bigtunacan on Thursday December 12, 2013 @01:16PM (#6896031)
joshpeek, I wasn't suggesting this replaces sprockets. I was saying that the sprockets/bower integration out of the box isn't all that great, and this seems like a useful tool to help improve the situation of a common problem.