diff options
author | Ryan Davis <ryand@zenspider.com> | 2017-06-05 16:52:48 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2017-06-05 16:52:48 -0800 |
commit | 5c95366b0985ce10e8fb2182fa10c3eab016a5ad (patch) | |
tree | 932fb678e578a3e39b429fe0db108bba9cc8958c | |
parent | 9190498ea8eb06ee7eda79d142a46957cbabd012 (diff) | |
download | hoe-5c95366b0985ce10e8fb2182fa10c3eab016a5ad.tar.gz |
- Better handling of rdoc finding failures.
[git-p4: depot-paths = "//src/hoe/dev/": change = 11342]
-rw-r--r-- | lib/hoe/publish.rb | 5 |
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} |