https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112012-01-05T00:43:33ZRuby Issue Tracking SystemRuby master - Bug #5840: URI::MailTo.build - 2 of 3 examples fail on 1.9.2/1.93https://redmine.ruby-lang.org/issues/5840?journal_id=230972012-01-05T00:43:33Zprimerano (Tony Primerano)primerano@tonycode.com
<ul></ul><p>looking at the code it appears the header items should be a hash instead of an array. It makes for a nicer read</p>
<p>m3 = URI::MailTo.build({:to => '<a href="mailto:listman@example.com" class="email">listman@example.com</a>', :headers => {'subject' => 'subscribe', 'body' => 'welcome'}})<br>
=> #<URI::MailTo:0x007fd1632a4c48 URL:<a href="mailto:listman@example.com" class="email">mailto:listman@example.com</a>?subject=subscribe&body=welcome></p>
<p>Hoping the docs will be updated instead of the code as I prefer this syntax.</p> Ruby master - Bug #5840: URI::MailTo.build - 2 of 3 examples fail on 1.9.2/1.93https://redmine.ruby-lang.org/issues/5840?journal_id=234112012-01-23T17:12:56Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</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 r34360.<br>
Tony, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>lib/uri/mailto.rb (URI::MailTo.build): follow Array#to_s change of<br>
Ruby 1.9; use Array#join. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: URI::MailTo.build - 2 of 3 examples fail on 1.9.2/1.93 (Closed)" href="https://redmine.ruby-lang.org/issues/5840">#5840</a>]</li>
</ul>