backframe 0.0.48 → 0.0.49
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 +7 -4
- 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: 7536ce9fab24051dab4ad0edfc6c421ce7971291
|
4
|
+
data.tar.gz: a4830e660dea8edc01d47c3d0b6b5df912ab2365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bd21cd5b6bb8e63af889ff6a89b81bf74ca4225f75ba5a2605b468a9522179c56d1c3cb31db2b21f550883def2110161ee5221ef264be75c3a34bba49063581
|
7
|
+
data.tar.gz: 48a14a62c0bc490c01d599600f0b83a5c1b3bda5c0e8c2faf7cd1b293da94bc6dc1f07d5df26ab6cd28f4c8e531bc429dcf7ebd6f2e66fbb19e3945fe1c21ad9
|
@@ -23,16 +23,19 @@ module Backframe
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def url(filepath, conversions)
|
26
|
-
|
26
|
+
Rails.application.config.root_url + path(filepath, conversions)
|
27
|
+
end
|
28
|
+
|
29
|
+
def http_url(filepath, conversions)
|
30
|
+
url(filepath, conversions).gsub('https', 'http')
|
27
31
|
end
|
28
32
|
|
29
33
|
def cdn_url(filepath, conversions)
|
30
34
|
Rails.application.config.cdn_url + path(filepath, conversions)
|
31
35
|
end
|
32
36
|
|
33
|
-
def
|
34
|
-
|
35
|
-
(conversions.key?(:secure) && !conversions[:secure]) ? root.gsub('https', 'http') : root
|
37
|
+
def http_cdn_url(filepath, conversions)
|
38
|
+
cdn_url(filepath, conversions).gsub('https', 'http')
|
36
39
|
end
|
37
40
|
|
38
41
|
end
|
data/lib/backframe/version.rb
CHANGED