Permalink
Browse files

progress

  • Loading branch information...
1 parent 08466af commit de4aeda5384eb20f2ea1dee0d3bf7840fa3c5cc6 @dallasmarlow committed Apr 23, 2012
Showing with 17 additions and 17 deletions.
  1. +1 −1 lib/s3_multi_upload.rb
  2. +16 −16 s3_multi_upload.gemspec
View
@@ -80,7 +80,7 @@ def process
puts "uploading #{file} to s3://#{options[:bucket]}/#{object.key} using #{options[:threads]} threads in chunks of #{value} #{unit}"
progress if options[:progress_bar]
abort 'upload failed' unless upload
- progress.finish
+ progress.finish if options[:progress_bar]
end
end
View
@@ -1,21 +1,21 @@
-Gem::Specification.new do |s|
- s.name = 's3_multi_upload'
- s.version = '0.0.1'
- s.authors = ['dallas marlow']
- s.email = ['dallasmarlow@gmail.com']
- s.summary = 's3 multipart uploads in parallel'
-
- s.files = [
+Gem::Specification.new do |gem|
+ gem.name = 's3_multi_upload'
+ gem.version = '0.0.1'
+ gem.authors = ['dallas marlow']
+ gem.email = ['dallasmarlow@gmail.com']
+ gem.summary = 's3 multipart uploads in parallel'
+ gem.homepage = 'https://github.com/dallasmarlow/s3_multi_upload'
+
+ gem.files = [
'bin/s3_multi_upload',
'lib/s3_multi_upload.rb',
]
- s.require_paths = ['lib']
- s.executables = ['s3_multi_upload']
- s.default_executable = 's3_multi_upload'
-
- %w[aws-sdk thor progressbar].each do |gem|
- s.add_dependency gem
- end
-end
+ gem.require_paths = ['lib']
+ gem.executables = ['s3_multi_upload']
+ gem.default_executable = 's3_multi_upload'
+ gem.add_dependency 'aws-sdk'
+ gem.add_dependency 'thor'
+ gem.add_dependency 'progressbar'
+end

0 comments on commit de4aeda

Please sign in to comment.