Permalink
Browse files

- Fixed the rdoc command for ruby installed with --program-suffix.

[git-p4: depot-paths = "//src/hoe/dev/": change = 7178]
  • Loading branch information...
1 parent fe8d787 commit 7d1dcb30a5e765b361a11d69d5ae64d909333c36 @drbrain drbrain committed Mar 12, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −0 Manifest.txt
  2. +5 −5 lib/hoe/publish.rb
View
@@ -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
View
@@ -99,18 +99,18 @@ def initialize_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 @@ def define_publish_tasks
desc "Generate rdoc"
task :docs => [:clobber_docs, :isolate] do
- ruby make_rdoc_cmd
+ ruby(*make_rdoc_cmd)
end
desc "Generate rdoc coverage report"

0 comments on commit 7d1dcb3

Please sign in to comment.