camo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/lib/camo.rb +8 -2
  4. data/lib/camo/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05af8738b193ee4426bce13f86aaeda6849e8cfa
4
- data.tar.gz: 31f44214ee27be4802d9c20abedbc98ac1fe92b7
3
+ metadata.gz: a62bc7218238c6b0012704841f3403c35a741578
4
+ data.tar.gz: bdbee0b1db7e6999a7c7fcbc6e26b034ba9764a6
5
5
  SHA512:
6
- metadata.gz: bd508b0243bc94f1e0d46bc4adc2d8651b7a1609349a32457ade797f38f4e4da1ef6db660e01f9d4ed7d0e510f0b47328ebd2220fb6273e301d955840a496139
7
- data.tar.gz: d0ae2c4b88f0bf7831924560d175e55c39207cb9c33aded51c7dc84bee8c8c379a6fd8fce839c83ce8aafa8f18182d1ac8d056430842014ee0dc569f47b42e89
6
+ metadata.gz: 2bbe77ac6410a700b0cd2b217cc1257062377628e5d94a825ae40fd6e803310a68a13fa459d768f6b668036f3c8fce01f9dd983d44e9a626c65074ef1c87e95b
7
+ data.tar.gz: 93e0465740be332bafa9ff59f63c8073adb630679cd243d31b93d930334e34be5f18b7202d76d93bebb06f1db2bf0c68b807f71db3aef645511e8f9bfd7d4c25
data/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # Camo
2
2
 
3
- Ruby client for [Camo](https://github.com/atmos/camo)
3
+ Ruby client for [Camo](https://github.com/atmos/camo) - the SSL image proxy :lock:
4
4
 
5
5
  ## Get Started
6
6
 
7
+ **Note:** If you have not set up the Camo server, start with [Deploying the Server](#deploying-the-server).
8
+
7
9
  Add this line to your application’s Gemfile:
8
10
 
9
11
  ```ruby
10
12
  gem "camo"
11
13
  ```
12
14
 
13
- Add your camo host and key to your environment or create an initializer `config/initializers/camo.rb`.
15
+ Add your Camo host and key to your environment or create an initializer `config/initializers/camo.rb`.
14
16
 
15
17
  ```ruby
16
18
  ENV["CAMO_HOST"] = "https://camo.herokuapp.com"
@@ -25,7 +27,7 @@ You can now use the `camo` method in your views and controllers.
25
27
 
26
28
  It’s that easy!
27
29
 
28
- ## Deploying to Heroku
30
+ ## Deploying the Server
29
31
 
30
32
  Clone the camo repository.
31
33
 
@@ -54,7 +56,7 @@ heroku open
54
56
 
55
57
  ## Credit
56
58
 
57
- Thanks to [Corey Donohoe](https://github.com/atmos) for creating camo and providing most of the Ruby code for this gem.
59
+ Thanks to [Corey Donohoe](https://github.com/atmos) for creating Camo and providing most of the Ruby code for this gem.
58
60
 
59
61
  ## Contributing
60
62
 
@@ -11,5 +11,11 @@ module Camo
11
11
 
12
12
  end
13
13
 
14
- ActionView::Base.send :include, Camo
15
- ActionController::Base.send :include, Camo
14
+ if defined?(Rails)
15
+ ActionView::Base.send :include, Camo
16
+ ActionController::Base.send :include, Camo
17
+ end
18
+
19
+ if defined?(Sinatra)
20
+ Sinatra::Base.helpers Camo
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Camo
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane