livingsocial/rake-pipeline — Issue #61: Easy way to add gems' assets as input directories
Author: jamesarosen
Created: 2012-02-20 20:19:39+00:00
State: open

For example, I'd like to be able to have a project with [bootstrap-sass](http://rubygems.org/gems/bootstrap-sass) in the Gemfile and easily be able to add its `vendor/assets/*` [folders](https://github.com/thomas-mcdonald/bootstrap-sass/tree/master/vendor/assets) to the input paths. It doesn't have to be as auto-magical as Rails+Sprockets (where anything in `lib/assets/*` is added to Sprockets's path), but it would be nice to have a shorter version of

```ruby
Dir.glob(Pathname.new(Gem.loaded_specs["bootstrap-sass"].gem_dir).join('vendor/assets/*').to_s).each do |path|
input path
end
```