diff options
author | Ryan Davis <ryand@zenspider.com> | 2016-03-23 18:28:30 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2016-03-23 18:28:30 -0800 |
commit | 380fb69579f45f88b28333c2b55f7258c93474a1 (patch) | |
tree | 885039eda5cdcae19c0956f449426f4783653f74 /lib | |
parent | 215e47bb1e201ea1bef28f919393babc764e05a5 (diff) | |
download | hoe-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.rb | 5 |
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} |