|
|
IronRuby > Documentation > Ruby Standard Library > Modifications
ModificationsFrom $1Table of contents
I'm going to collect some notes here on this page to talk about things that we need to change in the Ruby standard libraries and/or 3rd party libraries to make it compatible with IronRuby. tmpdir.rbThis file contains references to the Win32API library. Since we don't support this library under IronRuby, we need to introduce a new code path. I'm changing it here, and will likely add the changed file to the IronRuby libs directory to put it ahead of where the existing tmpdir.rb shows up on the libraries search path. RubyGems and REXMLNeed to fix implementation of hash methods in REXML and RubyGems. The current implementation is incorrect since it sums hash codes of subcomponents potentially overflowing to Bignum. This issue is mainly exposed when calculating hash of an array. Array#hash calculates its hash code by calling hash on each item and converting the result of the hash method into Fixnum. So if the result if the hash method is a Bignum an error is reported. The patch to be submitted is at http://gist.github.com/160407. A Rubygems bug and a REXML bug have been opened to track the issue.
Tags:
|