waz-sync 0.0.3.6 → 0.0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +1 -1
  2. data/lib/waz_sync.rb +2 -2
  3. data/waz-sync.gemspec +1 -1
  4. metadata +2 -2
data/README.rdoc CHANGED
@@ -119,7 +119,7 @@ Tests !!!!
119
119
 
120
120
  === Meta
121
121
 
122
- Written by Guillaume Montard
122
+ Written by Guillaume Montard for Vodeclic SAS (http://www.vodeclic.com)
123
123
 
124
124
  Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
125
125
 
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.6'
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}
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.0.3.6
9
+ - 7
10
+ version: 0.0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume MONTARD