[MacRuby] #396: open method from open-uri not working in macruby 0.5
#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 ------------------------------+--------------------------------------------- ~> macruby --version MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] ~> macruby -r 'open-uri' -e 'open "http://www.google.com"' core:in `open:': No such file or directory - open() failed (Errno::ENOENT) from -e:1:in `<main>' -- Ticket URL: <http://www.macruby.org/trac/ticket/396> MacRuby <http://macruby.org/>
#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/>
#396: open method from open-uri not working in macruby 0.5 -------------------------------+-------------------------------------------- Reporter: dmlary@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: open-uri, openuri | -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Should be fixed by r2942: {{{ $ macruby -r 'open-uri' -e 'p open "http://www.google.com"' ##-<StringIO:0x20021ef20 @string="<!doctype html><html><head>.............. }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/396#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby