0.0
No commit activity in last 3 years
No release in over 3 years
Any absolute URL you pass to image_tag will be rewritten if it is not https.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.10.0

Runtime

~> 3.0
 Project Readme

CamoImageTag¶ ↑

This plugin makes it easy to have your non-HTTPS image tags rewritten to take advantage of a Camo proxy

Installation¶ ↑

To use it, add it to your Gemfile:

gem 'camo_image_tag'

Configuration¶ ↑

You should specify two environment variables to tell Rails where to find your Camo proxy.

CAMO_KEY=0x24FEEDFACEDEADBEEFCAFE
CAMO_HOST=http://localhost:8081

If you do not specify them, they will use the Camo defaults (above). You’ll probably want to change these for a production app. Make sure your host uses https, since that’s the whole point.

Testing¶ ↑

Camo Image Tag uses RSpec for its test coverage. Inside the gem directory, you can run the specs for Ruby on Rails 3.x with:

rake spec

Author¶ ↑

  • Jason Garber

Copyright © 2012 Jason Garber (jasongarber.com/). Released under the MIT license