waz-sync 0.0.3.2 → 0.0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/waz_sync.rb +1 -1
- data/waz-sync.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -46,7 +46,7 @@ Then you can use the rake task
|
|
46
46
|
By default it does sync your images, javascripts and stylesheets folders, but you can specify which folder to sync
|
47
47
|
rake waz:sync folders=images,foo,bar
|
48
48
|
|
49
|
-
===
|
49
|
+
=== Capistrano recipe
|
50
50
|
|
51
51
|
If you use capistrano to deploy you app it's a good idea to sync you assets during each deploy.
|
52
52
|
Add this line to your deploy.rb
|
data/lib/waz_sync.rb
CHANGED
@@ -21,7 +21,7 @@ class WazSync
|
|
21
21
|
obj = container[filename] rescue nil
|
22
22
|
|
23
23
|
if !obj || (obj.railsetag != Digest::MD5.hexdigest(File.read(file)))
|
24
|
-
logger.info("Create / Updating : #{filename}")
|
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
26
|
container.store(filename, File.read(file), content_type) rescue 'error'
|
27
27
|
end
|
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.3'
|
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}
|