cdn_asset_gem 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cdn_asset_gem/view/helpers.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b6edfeb279d963a66865fec3c3d75f0053580146e0911b3b5b00968c6a38b28
|
4
|
+
data.tar.gz: 29e1d741e65304bc70924767b9b78d4bb908aeb027cbb28c3e09a97115881197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b55d01df8eff4f087ae9c6f843f9212f3b5d6b203c066db13e4b1ec6ca52c595a232d9b24a57c6f2e6881510f6e4a04cca7398cdd74966bac76bb000060992b
|
7
|
+
data.tar.gz: 514bab86984859442d0c5636634f2c320775f9b965fff2592e94c31b28c2e5029a26e2f44de35b6cbf167be19a0b325ff2f5435ef9da98def22efa79e210c63d
|
@@ -9,9 +9,7 @@ module CdnAssetGem
|
|
9
9
|
"#{root_path}/assets"
|
10
10
|
end
|
11
11
|
manifest_hash = Rails.cache.fetch("cdn-asset-#{root_path}-#{asset_name}", expires_in: 5.minutes) do
|
12
|
-
|
13
|
-
response = HTTP.get(uri)
|
14
|
-
Rails.logger.info "CdnAssetGem INFO: uri: #{uri}"
|
12
|
+
response = HTTP.get("#{ENV['CDN_URL']}#{assets_path}/rev-manifest.json")
|
15
13
|
Rails.logger.info "CdnAssetGem INFO: response #{response}"
|
16
14
|
if response.code == '200'
|
17
15
|
JSON.parse(response)
|