rails/rails — pull request #4385 by r-stu31 (2012-01-08 11:41:53+00:00)
Title: Sprockets::StaticCompiler: option ":zip_files"

I'd like to use the ```Sprockets::StaticCompiler``` for assets, which include SVG files.

This change extends the set of files gzip-compressed by default by ```Sprockets::StaticCompiler``` to files with any of following extensions: css, html, js, svg, txt, xml. Without this change it copresses only css and js files.

This change enables the users of Sprockets::StaticCompiler to handle over in (constructor argument) ```options``` the regexp determining which files to gzip. Without this change it hardcodes the ```/\.(css|js)$/``` regexp.