thoughtbot/paperclip — pull request #1087 by jonberke (2012-11-17 20:17:43+00:00)
Title: Style-specific S3 headers and metadata

Adds the ability to define S3 headers and metadata on specific styles in additional to globally for all styles. For example:

styles: {
compressed: { s3_headers: { 'Content-Encoding' => 'gzip' } }
}

I needed this because I'm storing text attachments on S3 and wanted both compressed and uncompressed versions saved.

I did not update the tests for this because I couldn't figure out how to verify that the style-specific headers were set correctly. If you can provide guidance on how to do this, I will update the tests.