summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Hodel <drbrain@segment7.net>2012-03-11 16:25:59 -0800
committerEric Hodel <drbrain@segment7.net>2012-03-11 16:25:59 -0800
commit7d1dcb30a5e765b361a11d69d5ae64d909333c36 (patch)
treed493c2fb43ac6f836431d882df6282f59bb30011
parentfe8d787438abf0caa64831b0a8f0528f966161c1 (diff)
downloadhoe-7d1dcb30a5e765b361a11d69d5ae64d909333c36.tar.gz
- Fixed the rdoc command for ruby installed with --program-suffix.
[git-p4: depot-paths = "//src/hoe/dev/": change = 7178]
-rw-r--r--Manifest.txt1
-rw-r--r--lib/hoe/publish.rb10
2 files changed, 6 insertions, 5 deletions
diff --git a/Manifest.txt b/Manifest.txt
index 161a9d9..df3cd68 100644
--- a/Manifest.txt
+++ b/Manifest.txt
@@ -35,4 +35,5 @@ template/test/test_file_name.rb.erb
test/test_hoe.rb
test/test_hoe_debug.rb
test/test_hoe_gemcutter.rb
+test/test_hoe_publish.rb
test/test_hoe_test.rb
diff --git a/lib/hoe/publish.rb b/lib/hoe/publish.rb
index e16b639..7abea77 100644
--- a/lib/hoe/publish.rb
+++ b/lib/hoe/publish.rb
@@ -99,18 +99,18 @@ module Hoe::Publish
def make_rdoc_cmd extra_args = nil
title = "#{name}-#{version} Documentation"
title = "#{rubyforge_name}'s #{title}" if rubyforge_name != name
- rdoc = Gem.bin_wrapper "rdoc"
+ rdoc = Gem.bin_path "rdoc", "rdoc"
cmd = %W[#{rdoc}
- --title "#{title}"
- -o "#{local_rdoc_dir}"
+ --title #{title}
+ -o #{local_rdoc_dir}
] +
spec.rdoc_options +
Array(extra_args) +
spec.require_paths +
spec.extra_rdoc_files
- cmd.join " "
+ cmd
end
##
@@ -124,7 +124,7 @@ module Hoe::Publish
desc "Generate rdoc"
task :docs => [:clobber_docs, :isolate] do
- ruby make_rdoc_cmd
+ ruby(*make_rdoc_cmd)
end
desc "Generate rdoc coverage report"