camo 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/camo.rb +8 -2
- data/lib/camo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a62bc7218238c6b0012704841f3403c35a741578
|
|
4
|
+
data.tar.gz: bdbee0b1db7e6999a7c7fcbc6e26b034ba9764a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
data/lib/camo.rb
CHANGED
|
@@ -11,5 +11,11 @@ module Camo
|
|
|
11
11
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
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
|
data/lib/camo/version.rb
CHANGED