carrierwaveuploader/carrierwave — pull request #1271 by Robovirtuoso (2013-11-20 21:07:47+00:00)
Title: Add support for custom Paperclip mappings

Paperclip supports custom interpolations in images' paths. In order to
ease transition into CarrierWave, support the same functionality with the
`Paperclip::Compatibility` module.

The public api is similar to Paperclip's

```ruby
class CustomUploader < CarrierWave::Uploader::Base
include CarrierWave::Compatibility::Paperclip

interpolate :some_method do |custom, style|
custom.model.some_method
end
end
```

This is accomplished by appending the desired functionality into
`CarrierWave::Compatibility::Paperclip#mappings`

In addition, we removed some double stated dependencies (timecop & nokogiri)
and resolved a problem with bundling dependencies for mime-types.