From: Tanaka Akira Date: 2005-09-19T11:45:43+09:00 Subject: [ruby-dev:27152] File.expand_path(Pathname.new("a")) 最近、 http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20050919T060510.txt.gz 以来 2) Failure: test_remove_entry_secure(TestFileUtils) [/home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/fileutils/test_fileutils.rb:554]: Exception raised: Class: Message: <"can't convert Pathname into String"> ---Backtrace--- /home/akr/chkbuild/tmp/build/ruby-trunk/20050919T060510/lib/ruby/1.9/fileutils.rb:671:in `expand_path' /home/akr/chkbuild/tmp/build/ruby-trunk/20050919T060510/lib/ruby/1.9/fileutils.rb:671:in `remove_entry_secure' /home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/fileutils/test_fileutils.rb:555:in `test_remove_entry_secure' /home/akr/chkbuild/tmp/build/ruby-trunk/ruby/test/fileutils/test_fileutils.rb:554:in `test_remove_entry_secure' --------------- と失敗するようになって気がついたのですが、File.expand_path は Pathname を受け付けないようです。 % ./ruby -v -rpathname -e 'File.expand_path(Pathname.new("a"))' ruby 1.9.0 (2005-09-18) [i686-linux] -e:1:in `expand_path': can't convert Pathname into String (TypeError) from -e:1 これは意図的でしょうか? -- [田中 哲][たなか あきら][Tanaka Akira]