diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-11 09:39:09 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-11 09:39:09 +0000 |
commit | 3ed23a541f9132d8b8ddc03dc59531daec260f74 (patch) | |
tree | 18cf2ffeda46d176a3e1c1d0d3d01557aa47df2a | |
parent | 37f26903b0ed779c56ef1f20cd71875622a1e429 (diff) |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | instruby.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Jul 11 18:37:37 2003 WATANABE Hirofumi <eban@ruby-lang.org> + + * instruby: do not handle directories. [ruby-dev:20613] + Fri Jul 11 16:09:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * 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] |