backframe 0.0.47 → 0.0.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backframe/image_cache/image_cache.rb +6 -1
- data/lib/backframe/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: 33bfaca0fa4068e96d0d97908d0c2aca7f2c9216
|
4
|
+
data.tar.gz: ed3776005ef5fb4892b9f4365243e74bb470db51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bbd6976376d7370b085a3270d1e145b748ee5fb56e89ab9855c21d779ab5c41a27a995c4f448e4042b9a3a665cdc92aa9f1bb645706236dc0bfbd0cfa037df7
|
7
|
+
data.tar.gz: bbe0f17970e19ff6569ef82dd93abc6065eef6b37e86668720ec822ce10d446197ac165f8ae41b2cbc718bf19bec970e724dbe2e562e62d58712d9209a9a4e17
|
@@ -23,13 +23,18 @@ module Backframe
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def url(filepath, conversions)
|
26
|
-
|
26
|
+
cdn_root(conversions) + path(filepath, conversions)
|
27
27
|
end
|
28
28
|
|
29
29
|
def cdn_url(filepath, conversions)
|
30
30
|
Rails.application.config.cdn_url + path(filepath, conversions)
|
31
31
|
end
|
32
32
|
|
33
|
+
def cdn_root(conversions)
|
34
|
+
root = Rails.application.config.root_url
|
35
|
+
(conversions.key?(:secure) && !conversions[:secure]) ? root.gsub('https', 'http') : root
|
36
|
+
end
|
37
|
+
|
33
38
|
end
|
34
39
|
|
35
40
|
end
|
data/lib/backframe/version.rb
CHANGED