[#29994] NULLCMD — Takahiro Kambe <taca@...>
こんにちは。
5 messages
2006/12/05
[#30002] 1.8.5 Christmas release? — Urabe Shyouhei <shyouhei@...>
卜部です。1.8.5-p2リリースの際には御世話になりました。
9 messages
2006/12/09
[#30006] Re: 1.8.5 Christmas release?
— Yukihiro Matsumoto <matz@...>
2006/12/12
まつもと ゆきひろです
[#30007] Re: 1.8.5 Christmas release?
— Urabe Shyouhei <shyouhei@...>
2006/12/12
卜部です。
[#30021] Ruby 1.8.5-p11 preview — Urabe Shyouhei <shyouhei@...>
Hi,
9 messages
2006/12/18
[#30023] autoloading static linked extension — Nobuyoshi Nakada <nobu@...>
なかだです。
4 messages
2006/12/18
[#30039] CVS freeze — SASADA Koichi <ko1@...>
Hi,
8 messages
2006/12/20
[#30045] 1.8.5 の svn 移行でちょっと問題 — Urabe Shyouhei <shyouhei@...>
卜部です。
5 messages
2006/12/23
[#30050] BigDecimal#!= — Minero Aoki <aamine@...>
青木です。
6 messages
2006/12/25
[#30060] merge YARV — SASADA Koichi <ko1@...>
Hi,
20 messages
2006/12/31
[#30061] Re: merge YARV
— SASADA Koichi <ko1@...>
2006/12/31
ささだです。
[#30064] Re: merge YARV
— "U.Nakamura" <usa@...>
2007/01/02
こんにちは、なかむら(う)です。
[ruby-dev:30000] lib/irb/locale.rb uses File.exists?
From:
"Yutaka Kanemoto" <kinpoco@...>
Date:
2006-12-08 19:47:41 UTC
List:
ruby-dev #30000
金本ともうします。
おせわになります。
すでにお気づきかもしれませんが、1.9のirbでおこられました。
/home/ykane/r19/lib/ruby/1.9/irb/locale.rb:156:in `search_file':
undefined method `exists?' for File:Class (NoMethodError)
こんな感じでしょうか。
Index: lib/irb/locale.rb
===================================================================
RCS file: /src/ruby/lib/irb/locale.rb,v
retrieving revision 1.9
diff -U2 -r1.9 locale.rb
--- lib/irb/locale.rb 26 Aug 2005 05:36:23 -0000 1.9
+++ lib/irb/locale.rb 8 Dec 2006 19:37:24 -0000
@@ -154,6 +154,6 @@
def search_file(path, file)
- if File.exists?(p1 = path + lc_path(file, "C"))
- if File.exists?(p2 = path + lc_path(file))
+ if File.exist?(p1 = path + lc_path(file, "C"))
+ if File.exist?(p2 = path + lc_path(file))
return p2
else
これで、
% find . -name \*.rb -exec fgrep -li File.exists\? '{}' \;
にひっかかるのはとりあえずありませんでした。
よろしくお願いいたします。
--
Yutaka KANEMOTO
http://d.hatena.ne.jp/kinpoco/