aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/rubygems_hook.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/rubygems_hook.rb')
-rw-r--r--lib/rdoc/rubygems_hook.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb
index b4393114f1..c4eaddbd97 100644
--- a/lib/rdoc/rubygems_hook.rb
+++ b/lib/rdoc/rubygems_hook.rb
@@ -153,7 +153,13 @@ class RDoc::RubygemsHook
options = nil
args = @spec.rdoc_options
- args.concat @spec.require_paths
+
+ if @spec.respond_to? :source_paths then
+ args.concat @spec.source_paths
+ else
+ args.concat @spec.require_paths
+ end
+
args.concat @spec.extra_rdoc_files
case config_args = Gem.configuration[:rdoc]