From 3edd27790f1d7805f89b58b8cea51da45a7a5267 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Tue, 22 Dec 2015 20:30:41 +0900 Subject: [PATCH] Revert "Changed the default output directory of the rdoc task to 'doc'." --- lib/rdoc/task.rb | 4 ++-- test/test_rdoc_task.rb | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rdoc/task.rb b/lib/rdoc/task.rb index 1cffb42fcb..a83939090d 100644 --- a/lib/rdoc/task.rb +++ b/lib/rdoc/task.rb @@ -107,7 +107,7 @@ class RDoc::Task < Rake::TaskLib attr_accessor :markup ## - # Name of directory to receive the html output files. (default is "doc") + # Name of directory to receive the html output files. (default is "html") attr_accessor :rdoc_dir @@ -192,7 +192,7 @@ def clobber_task_description def defaults @name = :rdoc @rdoc_files = Rake::FileList.new - @rdoc_dir = 'doc' + @rdoc_dir = 'html' @main = nil @title = nil @template = nil diff --git a/test/test_rdoc_task.rb b/test/test_rdoc_task.rb index 08f863dfba..610684e540 100644 --- a/test/test_rdoc_task.rb +++ b/test/test_rdoc_task.rb @@ -41,7 +41,7 @@ def test_markup_option rd.markup = "tomdoc" end - assert_equal %w[-o doc --markup tomdoc], rdoc_task.option_list + assert_equal %w[-o html --markup tomdoc], rdoc_task.option_list end def test_tasks_creation @@ -49,7 +49,7 @@ def test_tasks_creation assert Rake::Task[:rdoc] assert Rake::Task[:clobber_rdoc] assert Rake::Task[:rerdoc] - assert_equal ["doc/created.rid"], Rake::Task[:rdoc].prerequisites + assert_equal ["html/created.rid"], Rake::Task[:rdoc].prerequisites end def test_tasks_creation_with_custom_name_symbol @@ -73,7 +73,7 @@ def test_tasks_option_parser assert rdoc_task.rdoc_files.include?("README.md") assert rdoc_task.options.include?("--all") - args = %w[--all -o doc --main README.md] << "--title" << "Test Tasks Option Parser" << "README.md" + args = %w[--all -o html --main README.md] << "--title" << "Test Tasks Option Parser" << "README.md" assert_equal args, rdoc_task.option_list + rdoc_task.rdoc_files end @@ -82,7 +82,7 @@ def test_generator_option rd.generator = "ri" end - assert_equal %w[-o doc -f ri], rdoc_task.option_list + assert_equal %w[-o html -f ri], rdoc_task.option_list end def test_main_option @@ -90,7 +90,7 @@ def test_main_option rd.main = "README.md" end - assert_equal %w[-o doc --main README.md], rdoc_task.option_list + assert_equal %w[-o html --main README.md], rdoc_task.option_list end def test_output_dir_option @@ -158,7 +158,7 @@ def test_template_option rd.template = "foo" end - assert_equal %w[-o doc -T foo], rdoc_task.option_list + assert_equal %w[-o html -T foo], rdoc_task.option_list end def test_title_option @@ -166,7 +166,7 @@ def test_title_option rd.title = "Test Title Option" end - assert_equal %w[-o doc] << "--title" << "Test Title Option", rdoc_task.option_list + assert_equal %w[-o html] << "--title" << "Test Title Option", rdoc_task.option_list end end if defined?(Rake::Task)