livingsocial/rake-pipeline — pull request #101 by twinturbo (2012-10-19 14:38:33+00:00)
Title: GsubFilter for stripping and replacing

See docs and tests.

Here are the additions to the DSL:

```ruby
match "**/*js" do
# basic gsubbing
gsub /\/\/\w+$/, "no comments allowed!"

# block syntax works
gsub /.+/ do |match|
# process things
end

# gsub filter with no replacement
strip /Ember.assert\(.+\);/
end
```