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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33bfaca0fa4068e96d0d97908d0c2aca7f2c9216
4
- data.tar.gz: ed3776005ef5fb4892b9f4365243e74bb470db51
3
+ metadata.gz: 7536ce9fab24051dab4ad0edfc6c421ce7971291
4
+ data.tar.gz: a4830e660dea8edc01d47c3d0b6b5df912ab2365
5
5
  SHA512:
6
- metadata.gz: 9bbd6976376d7370b085a3270d1e145b748ee5fb56e89ab9855c21d779ab5c41a27a995c4f448e4042b9a3a665cdc92aa9f1bb645706236dc0bfbd0cfa037df7
7
- data.tar.gz: bbe0f17970e19ff6569ef82dd93abc6065eef6b37e86668720ec822ce10d446197ac165f8ae41b2cbc718bf19bec970e724dbe2e562e62d58712d9209a9a4e17
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
- cdn_root(conversions) + path(filepath, conversions)
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 cdn_root(conversions)
34
- root = Rails.application.config.root_url
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Backframe
4
- VERSION = '0.0.48'
4
+ VERSION = '0.0.49'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backframe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.48
4
+ version: 0.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Kops