waz-sync 0.0.3.6 → 0.0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/lib/waz_sync.rb +2 -2
- data/waz-sync.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
data/lib/waz_sync.rb
CHANGED
@@ -17,13 +17,13 @@ class WazSync
|
|
17
17
|
return(container)
|
18
18
|
end
|
19
19
|
|
20
|
-
def send_or_update(container, file, filename)
|
20
|
+
def send_or_update(container, file, filename, options = {:x_ms_blob_cache_control=>"max-age=315360000, public"})
|
21
21
|
obj = container[filename] rescue nil
|
22
22
|
|
23
23
|
if !obj || (obj.railsetag != Digest::MD5.hexdigest(File.read(file)))
|
24
24
|
Rails.logger.info("Create / Updating : #{filename}")
|
25
25
|
content_type = MIME::Types.type_for(file).to_s.blank? ? "text/plain" : MIME::Types.type_for(file).to_s
|
26
|
-
container.store(filename, File.read(file), content_type) rescue 'error'
|
26
|
+
container.store(filename, File.read(file), content_type, options) rescue 'error'
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/waz-sync.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = 'waz-sync'
|
4
|
-
gem.version = '0.0.3.
|
4
|
+
gem.version = '0.0.3.7'
|
5
5
|
gem.date = '2012-04-20'
|
6
6
|
gem.description = %q{A simple client library aim to sync assets to Windows Azure CDN, using a modified version of the great waz-storage gem}
|
7
7
|
gem.summary = %q{Client library for Syncing assets to Windows Azure CDN}
|