Revision
3924
Author
martinlagardette@apple.com
Date
2010-04-13 17:33:49 -0700 (Tue, 13 Apr 2010)

Log Message

Make RubyGems a little more verbose

Since MacRuby reimplements the download part, the verbose disappeared. This is just a simple "fix"

Modified Paths

Diff

Modified: MacRuby/trunk/lib/rubygems/remote_fetcher.rb (3923 => 3924)


--- MacRuby/trunk/lib/rubygems/remote_fetcher.rb	2010-04-13 21:13:55 UTC (rev 3923)
+++ MacRuby/trunk/lib/rubygems/remote_fetcher.rb	2010-04-14 00:33:49 UTC (rev 3924)
@@ -264,11 +264,13 @@
       # removed once we re-implement the IO subsystem (and therefore Net::HTTP)
       # on top of CF.
       framework 'Foundation'
+      say "Fetching #{uri.to_s}" if Gem.configuration.really_verbose
       url = NSURL.URLWithString(uri.to_s)
       data = NSMutableData.dataWithContentsOfURL(url)
       if data.nil?
         raise Gem::RemoteFetcher::FetchError, "error when fetching data from #{uri}"
       end
+      say "OK" if Gem.configuration.really_verbose
       return String.new(data)
     end
     raise "block is dead" if block_given?