/camo-ruby

Ruby client for Camo - the SSL image proxy

Primary LanguageRubyMIT LicenseMIT

Camo Ruby

Ruby client for Camo and Go-Camo - the SSL image proxy đź”’

Build Status

Installation

Add this line to your application’s Gemfile:

gem "camo"

Getting Started

Add your Camo host and key to your environment or create an initializer config/initializers/camo.rb.

ENV["CAMO_HOST"] = "https://camo.herokuapp.com"
ENV["CAMO_KEY"] = "rzsJbU5YxDfdP3FXHjshtgEN"

You can now use the camo method in your views and controllers.

<%= image_tag camo("https://placekitten.com/g/200/300") %>

Credit

Thanks to Corey Donohoe for creating Camo and providing most of the Ruby code for this gem.

History

View the changelog

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

To get started with development:

git clone https://github.com/ankane/camo-ruby.git
cd camo-ruby
bundle install
go-camo -k 461fbf74af826c3a1020
bundle exec rake test