Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 7abf92c3929f937a86bfc3eb49f79ba28b72075e https://github.com/MacRuby/MacRuby/commit/7abf92c3929f937a86bfc3eb49f79ba28b... Author: Watson <watson1978@gmail.com> Date: 2011-05-03 (Tue, 03 May 2011) Changed paths: M io.c Log Message: ----------- IO#inspect will return string that include the descriptor number. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions r, w = IO.pipe w.close assert_match(/#<IO:fd \d+>/, r.inspect) assert_equal("#<IO:(closed)>", w.inspect) f = File.open("/tmp/test.txt", "w") assert_equal("#<File:/tmp/test.txt>", f.inspect) f.close assert_equal("#<File:/tmp/test.txt (closed)>", f.inspect) puts :ok }}} Commit: 902230e723d9e37e4593f31949b8c02521427050 https://github.com/MacRuby/MacRuby/commit/902230e723d9e37e4593f31949b8c02521... Author: Watson <watson1978@gmail.com> Date: 2011-05-03 (Tue, 03 May 2011) Changed paths: M io.c Log Message: ----------- IO#inspect will raise a SecurityError when $SAFE is 4. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions r, w = IO.pipe assert_raise(SecurityError) do Thread.new { $SAFE = 4 r.inspect }.join end puts :ok }}} Compare: https://github.com/MacRuby/MacRuby/compare/f0d3850...902230e