https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-04-11T09:40:10ZRuby Issue Tracking SystemRuby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=258202012-04-11T09:40:10Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Assignee</strong> changed from <i>matz (Yukihiro Matsumoto)</i> to <i>marcandre (Marc-Andre Lafortune)</i></li></ul><p>OK, accepted, include adding nil.to_h.<br>
Marc, could you make patch and check in?</p>
<p>Matz.</p> Ruby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=258212012-04-11T11:19:29Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul></ul><p>Great.</p>
<p>I'll do it with pleasure, expect a slight delay as I'm going in vacation for 10 days.</p>
<p>Thanks</p> Ruby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=259182012-04-16T12:15:43Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<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 r35339.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>hash.c: Add Hash#to_h [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]<br>
[rubyspec:84b7fe3f24d2]</li>
</ul> Ruby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=259242012-04-16T14:24:22Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li></ul><p>You didn't add tests for test-all.<br>
If you won't add them, I'll revert them.</p> Ruby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=259312012-04-16T21:02:56Znahi (Hiroshi Nakamura)nakahiro@gmail.com
<ul></ul><p>+1 to Naruse-san. Apparently test in the same repository is a must.</p> Ruby master - Feature #6276: to_h as explicit conversion to Hashhttps://bugs.ruby-lang.org/issues/6276?journal_id=259802012-04-18T12:59:17Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>This issue was solved with changeset r35383.<br>
Marc-Andre, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>Revert r35339-35343 because of no tests.</p>
<ul>
<li>
<p>hash.c: Alias ENV.to_h to ENV.to_hash [ref <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]</p>
</li>
<li>
<p>lib/ostruct.rb: Add OpenStruct#to_h [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]</p>
</li>
<li>
<p>struct.c: Add Struct#to_h [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]</p>
</li>
<li>
<p>object.c: Add NilClass#to_h [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]</p>
</li>
<li>
<p>hash.c: Add Hash#to_h [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: to_h as explicit conversion to Hash (Closed)" href="https://bugs.ruby-lang.org/issues/6276">#6276</a>]</p>
</li>
</ul>