You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/05/17 03:39:57 UTC

svn commit: r657275 - in /incubator/buildr/trunk: NOTICE lib/buildr/core/transports.rb

Author: assaf
Date: Fri May 16 18:39:57 2008
New Revision: 657275

URL: http://svn.apache.org/viewvc?rev=657275&view=rev
Log:
Removed ultraviolet mention from NOTICE since we're not longer using it.
Fix for when content_length returned by Net::HTTP is nil.

Modified:
    incubator/buildr/trunk/NOTICE
    incubator/buildr/trunk/lib/buildr/core/transports.rb

Modified: incubator/buildr/trunk/NOTICE
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/NOTICE?rev=657275&r1=657274&r2=657275&view=diff
==============================================================================
--- incubator/buildr/trunk/NOTICE (original)
+++ incubator/buildr/trunk/NOTICE Fri May 16 18:39:57 2008
@@ -26,6 +26,3 @@
 
 * ColorCons - http://www.mouserunner.com/
 Copyright (c) 2006 Ken Saunders
-
-* Ultraviolet stylesheets - http://ultraviolet.rubyforge.org
-Copyright (c) 2007 FIX

Modified: incubator/buildr/trunk/lib/buildr/core/transports.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/buildr/core/transports.rb?rev=657275&r1=657274&r2=657275&view=diff
==============================================================================
--- incubator/buildr/trunk/lib/buildr/core/transports.rb (original)
+++ incubator/buildr/trunk/lib/buildr/core/transports.rb Fri May 16 18:39:57 2008
@@ -258,7 +258,7 @@
     # The block is yielded with a progress object that implements a single method.
     # Call << for each block of bytes down/uploaded.
     def with_progress_bar(show, file_name, size, &block) #:nodoc:
-      options = { :total=>size, :title=>file_name }
+      options = { :total=>size || 0, :title=>file_name }
       options[:hidden] = true unless show
       ProgressBar.start options, &block
     end