diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-18 21:10:47 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-18 21:10:47 +0000 |
commit | 71b4ecb3d3068c23809983e1ce556056c0d2172a (patch) | |
tree | 7a09f8601e7fb8b85452fc7a85c46c524a3a609f /lib/rdoc/options.rb | |
parent | dbd68031e02e0933601d6f247581aeb2d08766e5 (diff) |
Import RDoc r104. Various test fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/options.rb')
-rw-r--r-- | lib/rdoc/options.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb index 4fedb40b9c..886d9f77cd 100644 --- a/lib/rdoc/options.rb +++ b/lib/rdoc/options.rb @@ -154,7 +154,7 @@ class RDoc::Options attr_reader :webcvs - def initialize(generators) # :nodoc: + def initialize(generators = {}) # :nodoc: @op_dir = "doc" @op_name = nil @show_all = false @@ -613,8 +613,8 @@ Usage: #{opt.program_name} [options] [names...] def check_files @files.each do |f| - stat = File.stat f rescue abort("File not found: #{f}") - abort("File '#{f}' not readable") unless stat.readable? + stat = File.stat f + raise RDoc::Error, "file '#{f}' not readable" unless stat.readable? end end |