diff options
Diffstat (limited to 'lib/rdoc/rubygems_hook.rb')
-rw-r--r-- | lib/rdoc/rubygems_hook.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb index e2afb1fa91..e9351b7280 100644 --- a/lib/rdoc/rubygems_hook.rb +++ b/lib/rdoc/rubygems_hook.rb @@ -153,13 +153,7 @@ class RDoc::RubygemsHook options = nil args = @spec.rdoc_options - - if @spec.respond_to? :source_paths then - args.concat @spec.source_paths - else - args.concat @spec.require_paths - end - + args.concat @spec.source_paths args.concat @spec.extra_rdoc_files case config_args = Gem.configuration[:rdoc] @@ -183,7 +177,7 @@ class RDoc::RubygemsHook @rdoc.options = options store = RDoc::Store.new - store.encoding = options.encoding if options.respond_to? :encoding + store.encoding = options.encoding store.dry_run = options.dry_run store.main = options.main_page store.title = options.title |