https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-05-10T00:09:53ZRuby Issue Tracking SystemRuby master - Bug #6420: undefined local variable or method `parser' for URI::Generic:Classhttps://bugs.ruby-lang.org/issues/6420?journal_id=265542012-05-10T00:09:53Zcap10morgan (Wes Morgan)cap10morgan@gmail.com
<ul></ul><p>=begin</p>
<p>Obviously that code line above should read:</p>
<p>(({URI::Generic.build2(path: "/foo bar/baz")}))</p>
<p>=end</p> Ruby master - Bug #6420: undefined local variable or method `parser' for URI::Generic:Classhttps://bugs.ruby-lang.org/issues/6420?journal_id=265552012-05-10T00:12:50Zcap10morgan (Wes Morgan)cap10morgan@gmail.com
<ul></ul><p>Pull request issued: <a href="https://github.com/ruby/ruby/pull/124" class="external">https://github.com/ruby/ruby/pull/124</a></p> Ruby master - Bug #6420: undefined local variable or method `parser' for URI::Generic:Classhttps://bugs.ruby-lang.org/issues/6420?journal_id=265562012-05-10T00:23:37Zzzak (zzak _)
<ul><li><strong>File</strong> <a href="/attachments/2673">add_uri_generic_parser_class_method.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2673/add_uri_generic_parser_class_method.patch">add_uri_generic_parser_class_method.patch</a> added</li></ul><p>I've added Wes' patch from GH#124</p> Ruby master - Bug #6420: undefined local variable or method `parser' for URI::Generic:Classhttps://bugs.ruby-lang.org/issues/6420?journal_id=265572012-05-10T01:25:52Zayumin (Ayumu AIZAWA)ayumu.aizawa@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>akira (akira yamada)</i></li></ul> Ruby master - Bug #6420: undefined local variable or method `parser' for URI::Generic:Classhttps://bugs.ruby-lang.org/issues/6420?journal_id=266972012-05-18T16:32:10Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r35692.<br>
Wes, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>
<p>lib/uri/generic.rb (URI::Generic.build): duplicate args before adding<br>
new items. (don't change arguments)</p>
</li>
<li>
<p>lib/uri/generic.rb (URI::Generic.build): use URI::Generic::COMPONENT<br>
if this method is called from URI::Generic.</p>
</li>
<li>
<p>lib/uri/generic.rb (URI::Generic.build2): escape only if the item is<br>
a String.</p>
</li>
<li>
<p>lib/uri/generic.rb (URI::Generic.build2): use DEFAULT_PARSER because<br>
it doesn't have parser method. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: undefined local variable or method `parser' for URI::Generic:Class (Closed)" href="https://bugs.ruby-lang.org/issues/6420">#6420</a>]</p>
</li>
</ul>