summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2016-03-23 18:28:30 -0800
committerRyan Davis <ryand@zenspider.com>2016-03-23 18:28:30 -0800
commit380fb69579f45f88b28333c2b55f7258c93474a1 (patch)
tree885039eda5cdcae19c0956f449426f4783653f74 /lib
parent215e47bb1e201ea1bef28f919393babc764e05a5 (diff)
downloadhoe-380fb69579f45f88b28333c2b55f7258c93474a1.tar.gz
- Fixed running rdoc if it was satisfied outside of GEM_HOME.
[git-p4: depot-paths = "//src/hoe/dev/": change = 10539]
Diffstat (limited to 'lib')
-rw-r--r--lib/hoe/publish.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hoe/publish.rb b/lib/hoe/publish.rb
index c9d8d2f..4a8b656 100644
--- a/lib/hoe/publish.rb
+++ b/lib/hoe/publish.rb
@@ -206,6 +206,11 @@ module Hoe::Publish
title = "#{group_name}'s #{title}" if group_name != name
rdoc = Gem.bin_wrapper "rdoc"
+ unless File.exists? rdoc then
+ warn "Can't find #{rdoc}. Falling back."
+ rdoc = "rdoc"
+ end
+
%W[#{rdoc}
--title #{title}
-o #{local_rdoc_dir}