rubinius/rubinius — pull request #1204 by bjeanes (2011-10-09 04:48:21+00:00)
Title: Fix behavior of Tempfile#size/length in 1.9

Before this commit `Tempfile#size` returns `0` if the file has been closed. After this commit, it still returns the size of the file on disk, as per the previously failing spec.

The "fails" tag has been removed from the relevant specs and 1.8 behavior is preserved.

I copied `tempfile.rb` into `lib/18/` and `lib/19/` and modified the 1.9 version. This seems to be how divergent behavior between ruby versions is handled elsewhere, but let me know if there is a better way to do this (for example, shared behavior remaining in `lib/` and just divergent behavior in the versioned directories.