cdn_asset_gem 1.0.17 → 1.0.18

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
  SHA256:
3
- metadata.gz: 76004edfba5f9dbe8159c1d3916804115067a3dcd72b34470e06c982a3efc30f
4
- data.tar.gz: 36d0a41101d70a3ac3771ff09a93d3bf3c848e3aa7d3085ad55861bcf2762bb3
3
+ metadata.gz: 212b138de2f19c8428059d70978772e411510cc41f5044325e062a80d15a08fc
4
+ data.tar.gz: 492c0a85eb630398db438089a15bc4c85a26c5e655771a2ad3ccc9ac0090fbb4
5
5
  SHA512:
6
- metadata.gz: 5ed21f3a2ff48cb24d1784093baac18941a16e6d93143479d5bc03fdfde135a2b44fe8892684e367dbdb792806dd40968782c71e0354708523d8e88d43148a06
7
- data.tar.gz: 63be1c430c73cb1a22b2f453bce52917fd33b988ad7d0b039c7016cf429f750d68d123c097d0b0e95c69f22c14528c21c6f231607aa57c4c590dfdd8aea0b8ed
6
+ metadata.gz: 707a56a6b9f3263463c72f040e06827865613d9a598ce1190e71d9e23ef11c42fece4f2eaf667661cd34ea8cca8f2b51b2805b0ee06be220ffff476e6e62c746
7
+ data.tar.gz: a6530823ebb178c31061cdc5150de605426d2292ad04bf0a16892b6868f21e762c663d8baa6fe10b5c9d7cf9accc1df66a373b3fdb61775ac3723c268cfaa04d
@@ -11,7 +11,7 @@ module CdnAssetGem
11
11
  begin
12
12
  puts "CdnAssetGem INFO: file #{file}"
13
13
  puts "CdnAssetGem INFO: assets_path #{assets_path}"
14
- Rails.cache.fetch("cdn-asset-#{root_path}-#{asset_name}", expires_in: 5.minutes) do
14
+ Rails.cache.fetch("cdn-asset-#{root_path}-#{file}", expires_in: 5.minutes) do
15
15
  response = HTTP.get("#{ENV['CDN_URL']}#{assets_path}/rev-manifest.json")
16
16
  puts "CdnAssetGem INFO: response #{response}"
17
17
  "#{ENV['CDN_URL']}#{assets_path}/#{JSON.parse(response)[file]}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdn_asset_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Baker