waz-sync 0.0.3.7 → 0.0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ namespace :waz do
34
34
  folders.each{|folder|
35
35
 
36
36
  puts("\t=> Syncing #{folder}")
37
- pbar = ProgressBar.new("\t Progress", 100)
37
+ pbar = ProgressBar.create("\t Progress", 100)
38
38
  container = azure.find_or_create_container(folder)
39
39
 
40
40
  i = Dir.glob("#{Rails.root.to_s}/public/#{folder}/**/*").size
data/lib/waz_sync.rb CHANGED
@@ -19,7 +19,6 @@ class WazSync
19
19
 
20
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
-
23
22
  if !obj || (obj.railsetag != Digest::MD5.hexdigest(File.read(file)))
24
23
  Rails.logger.info("Create / Updating : #{filename}")
25
24
  content_type = MIME::Types.type_for(file).to_s.blank? ? "text/plain" : MIME::Types.type_for(file).to_s
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.7'
4
+ gem.version = '0.0.3.8'
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
- - 7
10
- version: 0.0.3.7
9
+ - 8
10
+ version: 0.0.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Guillaume MONTARD