Skip to content

Commit

Permalink
readme, dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Juraszek committed Jun 19, 2017
1 parent ae45b9f commit c7c2794
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Carrierwave::Kraken

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/carrierwave/kraken`. To experiment with that code, run `bin/console` for an interactive prompt.

TODO: Delete this and the text above, and describe your gem
Gem enables kraken image optimisation for carrierwave

## Installation

Expand All @@ -22,7 +20,21 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
Include extension to uploader class
```ruby
class ImageUploader < CarrierWave::Uploader::Base
include CarrierWave::Kraken::CarrierWaveExtension
```

Call `process :optimize` in uploader. I.e:

```ruby
version :thumbnail do
process optimize: [{lossy: true}]
end
```

Don't forget to specify ENV['KRAKEN_API_KEY'] and ENV['KRAKEN_API_SECRET'] variables

## Known issues

Expand All @@ -36,8 +48,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/carrierwave-kraken. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

Bug reports and pull requests are welcome on GitHub at https://github.com/tiramizoo/carrierwave-kraken.

## License

Expand Down
5 changes: 3 additions & 2 deletions carrierwave-kraken.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_development_dependency "carrierwave"
spec.add_development_dependency "kraken-io", "~> 0.1.3"
spec.add_dependency "carrierwave"
spec.add_dependency "kraken-io", "~> 0.1.3"

spec.add_development_dependency "bundler", "~> 1.13"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "minitest", "~> 5.0"
Expand Down

0 comments on commit c7c2794

Please sign in to comment.