summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2017-06-05 16:52:48 -0800
committerRyan Davis <ryand@zenspider.com>2017-06-05 16:52:48 -0800
commit5c95366b0985ce10e8fb2182fa10c3eab016a5ad (patch)
tree932fb678e578a3e39b429fe0db108bba9cc8958c /lib
parent9190498ea8eb06ee7eda79d142a46957cbabd012 (diff)
downloadhoe-5c95366b0985ce10e8fb2182fa10c3eab016a5ad.tar.gz
- Better handling of rdoc finding failures.
[git-p4: depot-paths = "//src/hoe/dev/": change = 11342]
Diffstat (limited to 'lib')
-rw-r--r--lib/hoe/publish.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hoe/publish.rb b/lib/hoe/publish.rb
index 999f283..cc11603 100644
--- a/lib/hoe/publish.rb
+++ b/lib/hoe/publish.rb
@@ -206,12 +206,15 @@ module Hoe::Publish
title = "#{group_name}'s #{title}" if group_name != name
rdoc = Gem.bin_wrapper "rdoc"
+ extra = nil
+
unless File.exist? rdoc then
warn "Can't find #{rdoc}. Falling back."
rdoc = "rdoc"
+ extra = "-S"
end
- %W[#{Gem.ruby}
+ %W[#{Gem.ruby} #{extra}
#{rdoc}
--title #{title}
-o #{local_rdoc_dir}