提交 89a12c93 编写于 作者: X Xavier Noria

README.rdoc -> README.md for newly generated applications

README.rdoc was generated to support the doc:app task. Now that
this task is gone we can switch to Markdown, which is nowadays
a better default.
上级 cd7cc525
* Newly generated applications get a `README.md` in Markdown.
*Xavier Noria*
* Remove the documentation tasks `doc:app`, `doc:rails`, and `doc:guides`. * Remove the documentation tasks `doc:app`, `doc:rails`, and `doc:guides`.
*Xavier Noria* *Xavier Noria*
......
...@@ -38,7 +38,7 @@ def rakefile ...@@ -38,7 +38,7 @@ def rakefile
end end
def readme def readme
copy_file "README.rdoc", "README.rdoc" copy_file "README.md", "README.md"
end end
def gemfile def gemfile
......
== README ## README
This README would normally document whatever steps are necessary to get the This README would normally document whatever steps are necessary to get the
application up and running. application up and running.
......
...@@ -222,14 +222,14 @@ def test_route_should_add_data_to_the_routes_block_in_config_routes ...@@ -222,14 +222,14 @@ def test_route_should_add_data_to_the_routes_block_in_config_routes
def test_readme def test_readme
run_generator run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root) Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
assert_match "application up and running", action(:readme, "README.rdoc") assert_match "application up and running", action(:readme, "README.md")
end end
def test_readme_with_quiet def test_readme_with_quiet
generator(default_arguments, quiet: true) generator(default_arguments, quiet: true)
run_generator run_generator
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root) Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
assert_no_match "application up and running", action(:readme, "README.rdoc") assert_no_match "application up and running", action(:readme, "README.md")
end end
def test_log def test_log
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
DEFAULT_APP_FILES = %w( DEFAULT_APP_FILES = %w(
.gitignore .gitignore
README.rdoc README.md
Gemfile Gemfile
Rakefile Rakefile
config.ru config.ru
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册