[macruby-changes] [3924] MacRuby/trunk/lib/rubygems/remote_fetcher.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 13 17:33:49 PDT 2010


Revision: 3924
          http://trac.macosforge.org/projects/ruby/changeset/3924
Author:   martinlagardette at 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:
--------------
    MacRuby/trunk/lib/rubygems/remote_fetcher.rb

Modified: MacRuby/trunk/lib/rubygems/remote_fetcher.rb
===================================================================
--- 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100413/08d7aa1f/attachment.html>


More information about the macruby-changes mailing list