Sha256: ac51571fa75b6bdbf838d701dafdc1e19854c6f94d8bb7a698c2d4f568141b1d

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

# paperclip-deflater

[![Gem Version][gem-image]][gem-link]
[![Dependency Status][deps-image]][deps-link]
[![Build Status][build-image]][build-link]
[![Coverage Status][cov-image]][cov-link]
[![Code Climate][gpa-image]][gpa-link]

Deflate files in Paperclip before upload.

## Installation

Add the paperclip-deflater gem to your Gemfile.

```ruby
gem "paperclip-deflater"
```

And run `bundle install`.

## Setup

```ruby
class Something
  has_attached_file :js,
    s3_metadata: { content_encoding: 'gzip' },
    styles: { gzip: {processors: [:deflater], format: '.gz'} },
    path: "test/:id.:extension:format"
end
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new [Pull Request](../../pull/new/master)

## Copyright

Copyright (c) 2014 Daisuke Taniwaki. See [LICENSE](LICENSE) for details.




[gem-image]:   https://badge.fury.io/rb/paperclip-deflater.svg
[gem-link]:    http://badge.fury.io/rb/paperclip-deflater
[build-image]: https://secure.travis-ci.org/dtaniwaki/paperclip-deflater.png
[build-link]:  http://travis-ci.org/dtaniwaki/paperclip-deflater
[deps-image]:  https://gemnasium.com/dtaniwaki/paperclip-deflater.svg
[deps-link]:   https://gemnasium.com/dtaniwaki/paperclip-deflater
[cov-image]:   https://coveralls.io/repos/dtaniwaki/paperclip-deflater/badge.png
[cov-link]:    https://coveralls.io/r/dtaniwaki/paperclip-deflater
[gpa-image]:   https://codeclimate.com/github/dtaniwaki/paperclip-deflater.png
[gpa-link]:    https://codeclimate.com/github/dtaniwaki/paperclip-deflater

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paperclip-deflater-0.0.2 README.md
paperclip-deflater-0.0.1 README.md