Ruby client for Camo and Go-Camo - the SSL image proxy đź”’
Add this line to your application’s Gemfile:
gem "camo"
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") %>
Thanks to Corey Donohoe for creating Camo and providing most of the Ruby code for this gem.
View the changelog
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
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