--- date: "2006-01-12T21:32:04Z" title: Recent Ruby Patches --- <p>I've submitted a couple of patches to <a href="http://ruby-lang.org/">Ruby</a> in the last month or so. <a href="http://diff.pablotron.org/ruby-1.8.4-cgi_headers.diff">The first patch</a>, which has been accepted for <a href="http://ruby-lang.org/">Ruby</a> 1.9, and possibly 1.8, adds several missing <acronym title='HyperText Transfer Protocol'>HTTP</acronym> headers to <a href="http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html">Ruby <acronym title='Common Gateway Interface'>CGI</acronym></a>, including the ever-important <code>If-Modified-Since</code> and <code>If-None-Match</code> headers.</p> <p><a href="http://diff.pablotron.org/ruby-1.8.4-rdoc_html_cleanup.diff">The second patch</a>, which (as of today) is still floating on <code>ruby-core</code>, improves the <acronym title='HyperText Markup Language'>HTML</acronym> output of <a href="http://rdoc.sourceforge.net/">RDoc</a> by adding proper encoding and language declarations, closing dangling <code><img></code> and <code><br/></code> elements, and fixing a handful of other annoyances.</p> <p>Without any further ado, each of the patches and their respective descriptions from <code>ruby-core</code>:</p> <ul> <li><a href="http://diff.pablotron.org/ruby-1.8.4-cgi_headers.diff">ruby-1.8.4-cgi_headers.diff</a> (<a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/6906">description</a>)</li> <li><a href="http://diff.pablotron.org/ruby-1.8.4-rdoc_html_cleanup-3.diff">ruby-1.8.4-rdoc_html_cleanup-3.diff</a> (<a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/7028">description</a>)</li> </ul> <p>(Second post written using <a href='http://daringfireball.net/projects/markdown/'>Markdown</a>; I could get used to this...)</p> <p><b>Update:</b> Updated to reflect latest version of second patch.</p>