[MacRuby] #919: URI::HTTP path_query method is private in MacRuby but not in MRI

MacRuby ruby-noreply at macosforge.org
Mon Sep 27 13:38:11 PDT 2010


#919: URI::HTTP path_query method is private in MacRuby but not in MRI
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------

Comment(by watson1978@…):

 It seems that URI::HTTP#path_query is private method within CRuby
 also.[[BR]]
 Another problems?
 {{{
 #!ruby
 #$ cat test_uri.rb
 require 'uri'

 uri = URI("http://www.google.co.jp/search?q=macruby")
 p uri.class
 p uri.path_query
 }}}

 {{{
 $ ruby19 -v test_uri.rb
 ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
 URI::HTTP
 test_uri.rb:6:in `<main>': private method `path_query' called for
 #<URI::HTTP:0x0000010109f388> (NoMethodError)

 $ DYLD_LIBRARY_PATH=. ./macruby -I./lib ~/tmp/test_uri.rb       URI::HTTP
 private method `path_query' called for #<URI::HTTP:0x20022df80>
 (NoMethodError)
 }}}

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



More information about the macruby-tickets mailing list