diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-05 09:18:10 +0000 |
commit | cdc527db342eda4c58b62c5dc2a14441a395df5d (patch) | |
tree | 237c953b345a00333d1600706a7f2484b4ad408c /lib/rdoc/rubygems_hook.rb | |
parent | 0a0eb2807ed745e1cdf7f4698fe805b4aaaee2c6 (diff) | |
download | ruby-cdc527db342eda4c58b62c5dc2a14441a395df5d.tar.gz |
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0
Release note: https://github.com/rdoc/rdoc/blob/b825775647f62c5b525e9780a28ff2fbb1d5bf6f/History.rdoc#500--2016-11-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 |