[MacRuby-devel] [MacRuby] #396: open method from open-uri not working in macruby 0.5

MacRuby ruby-noreply at macosforge.org
Wed Oct 21 20:06:39 PDT 2009


#396: open method from open-uri not working in macruby 0.5
------------------------------+---------------------------------------------
 Reporter:  dmlary@…          |       Owner:  lsansonetti@…        
     Type:  defect            |      Status:  new                  
 Priority:  minor             |   Milestone:  MacRuby 0.5          
Component:  MacRuby           |    Keywords:  open-uri, openuri    
------------------------------+---------------------------------------------

Comment(by lsansonetti@…):

 Looks like open-uri.rb is unable to replace Kernel#open, I suspect a bug
 of #module_function.

 In the interim, calling the open-uri stuff manually seems to work.

 {{{
 $ macruby -r open-uri -e "p URI.parse('http://google.com').open.read(42)"
 "<!doctype html><html><head><meta http-equi"
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/396#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list