waz-sync 0.0.3.8 → 0.0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/waz_sync/tasks.rb +3 -3
  2. data/waz-sync.gemspec +2 -2
  3. metadata +39 -50
@@ -1,4 +1,4 @@
1
- require 'progressbar'
1
+ require 'ruby-progressbar'
2
2
 
3
3
  namespace :waz do
4
4
  task :app_env do
@@ -34,7 +34,7 @@ namespace :waz do
34
34
  folders.each{|folder|
35
35
 
36
36
  puts("\t=> Syncing #{folder}")
37
- pbar = ProgressBar.create("\t Progress", 100)
37
+ pbar = ProgressBar.create(:title => "\t Progress", :total => 100)
38
38
  container = azure.find_or_create_container(folder)
39
39
 
40
40
  i = Dir.glob("#{Rails.root.to_s}/public/#{folder}/**/*").size
@@ -43,7 +43,7 @@ namespace :waz do
43
43
  if File.file?(file)
44
44
  filename = file.gsub("/public/#{folder}/", "").gsub("#{Rails.root.to_s}", "")
45
45
  azure.send_or_update(container, file, filename)
46
- pbar.set((((j.to_f/i.to_f)*10000).to_i / 100.0).ceil)
46
+ pbar.progress = ((((j.to_f/i.to_f)*10000).to_i / 100.0).ceil)
47
47
  end
48
48
  end
49
49
  pbar.finish
data/waz-sync.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = 'waz-sync'
4
- gem.version = '0.0.3.8'
5
- gem.date = '2012-04-20'
4
+ gem.version = '0.0.3.9'
5
+ gem.date = '2013-04-02'
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}
8
8
  gem.license = 'MIT'
metadata CHANGED
@@ -1,44 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: waz-sync
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 3
9
- - 8
10
- version: 0.0.3.8
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3.9
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Guillaume MONTARD
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-04-20 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: ruby-progressbar
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
31
22
  type: :runtime
32
- version_requirements: *id001
33
- description: A simple client library aim to sync assets to Windows Azure CDN, using a modified version of the great waz-storage gem
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: A simple client library aim to sync assets to Windows Azure CDN, using
31
+ a modified version of the great waz-storage gem
34
32
  email: montard@gmail.com
35
33
  executables: []
36
-
37
34
  extensions: []
38
-
39
35
  extra_rdoc_files: []
40
-
41
- files:
36
+ files:
42
37
  - .gitignore
43
38
  - LICENCE
44
39
  - README.rdoc
@@ -47,35 +42,29 @@ files:
47
42
  - lib/waz_sync/tasks.rb
48
43
  - rakefile
49
44
  - waz-sync.gemspec
50
- has_rdoc: true
51
45
  homepage: https://github.com/gmontard/waz-sync
52
- licenses:
46
+ licenses:
53
47
  - MIT
54
48
  post_install_message:
55
49
  rdoc_options: []
56
-
57
- require_paths:
50
+ require_paths:
58
51
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- segments:
64
- - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- segments:
71
- - 0
72
- version: "0"
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ! '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
73
64
  requirements: []
74
-
75
65
  rubyforge_project: waz-sync
76
- rubygems_version: 1.3.6
66
+ rubygems_version: 1.8.23
77
67
  signing_key:
78
68
  specification_version: 3
79
69
  summary: Client library for Syncing assets to Windows Azure CDN
80
70
  test_files: []
81
-