[macruby-changes] [3724] MacRuby/branches/icu/lib/rubygems/remote_fetcher.rb

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 9 17:54:47 PST 2010


Revision: 3724
          http://trac.macosforge.org/projects/ruby/changeset/3724
Author:   lsansonetti at apple.com
Date:     2010-03-09 17:54:46 -0800 (Tue, 09 Mar 2010)
Log Message:
-----------
String.__new_bytestring__ -> String.new

Modified Paths:
--------------
    MacRuby/branches/icu/lib/rubygems/remote_fetcher.rb

Modified: MacRuby/branches/icu/lib/rubygems/remote_fetcher.rb
===================================================================
--- MacRuby/branches/icu/lib/rubygems/remote_fetcher.rb	2010-03-10 01:54:21 UTC (rev 3723)
+++ MacRuby/branches/icu/lib/rubygems/remote_fetcher.rb	2010-03-10 01:54:46 UTC (rev 3724)
@@ -263,9 +263,7 @@
       if data.nil?
         raise Gem::RemoteFetcher::FetchError, "error when fetching data from #{uri}"
       end
-      string = String.__new_bytestring__(data)
-      #block.call(string) if block
-      return string
+      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/20100309/f5c963f4/attachment.html>


More information about the macruby-changes mailing list