2cdn 0.1.6 → 0.1.7

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: 679a88b1224ae0a22b399878f26db8a7f29b953f
4
- data.tar.gz: 6f594d2515bd4872c910e230a0b28d586225bba7
3
+ metadata.gz: 3c996bcc49f1bca833dba20e11da6c94df4623ef
4
+ data.tar.gz: f8969fcce81a249e8c41cfb86da20ed5b8341384
5
5
  SHA512:
6
- metadata.gz: cd4f930d5076d7c58346ba4b4bc64ec27b869f1349e0d903288073982072ed66f5e0e81bf81577231edc6dcdbd0f0068e7bf6fba7c8a3215728378690a7433e4
7
- data.tar.gz: 4caa111d1e5b95b5ab740bc719e082928f39734b79653a52cf14bd58500da63971adb8164ea29a3df8795d6693a8dabadb0b51b315f3937eb2c7e06f06a11de5
6
+ metadata.gz: a3054742ee178d240cebfc1b87c883680e4a90fb2e7332fe3d8237c3ad9508df1f750b8a587822db2735ba3ba507ee2982357ac8d5d487a4970d27d9b7c34bc7
7
+ data.tar.gz: 9a51696e1f77c49e93974060335d8eae02c9fadbc8dcf8ad3d3571867f3329907ed017a527d8b904aea9495067c13184717bab58d7c4f95a3b95366fe9b4936d
@@ -70,7 +70,7 @@ module AutoAliCDN
70
70
  res_type = res_path.gsub(/^.*\//, '')
71
71
  suffix = "."+name.split(/\./).last
72
72
  new_name = rename ? name.gsub(/#{suffix}$/, "-#{file_md5}#{suffix}"): name
73
- object_key = config.site_resource_path+"/#{res_type}/#{new_name}"
73
+ object_key = config.site_resource_path+"/#{Time.now.strftime("%F %H:%M")}/#{new_name}"
74
74
  if bucket.object_exists?(object_key)
75
75
  puts "#{name} --> #{object_key}".color(:dimgray)
76
76
  replace_res_path.call(res_type+'/'+name, config.domain_name+'/'+object_key)
@@ -1,3 +1,3 @@
1
1
  module AutoAliCDN
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 2cdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - liuxi