From 3ed23a541f9132d8b8ddc03dc59531daec260f74 Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 11 Jul 2003 09:39:09 +0000 Subject: [PATCH] * instruby: do not handle directories. [ruby-dev:20613] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ instruby.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 563da96328..d32aca1d28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jul 11 18:37:37 2003 WATANABE Hirofumi + + * instruby: do not handle directories. [ruby-dev:20613] + Fri Jul 11 16:09:09 2003 Yukihiro Matsumoto * util.c (ruby_strtod): exp should be less than MDMAXEXPT. diff --git a/instruby.rb b/instruby.rb index 362b25bfcb..3f39865eff 100644 --- a/instruby.rb +++ b/instruby.rb @@ -179,7 +179,7 @@ if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/ end Dir.glob("*.[1-9]") do |mdoc| - next unless open(mdoc){|fh| fh.read(1) == '.'} + next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'} section = mdoc[-1,1]