Skip to content

Commit 89a12c9

Browse files
committed
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.
1 parent cd7cc52 commit 89a12c9

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

railties/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Newly generated applications get a `README.md` in Markdown.
2+
3+
*Xavier Noria*
4+
15
* Remove the documentation tasks `doc:app`, `doc:rails`, and `doc:guides`.
26

37
*Xavier Noria*

railties/lib/rails/generators/rails/app/app_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def rakefile
3838
end
3939

4040
def readme
41-
copy_file "README.rdoc", "README.rdoc"
41+
copy_file "README.md", "README.md"
4242
end
4343

4444
def gemfile

railties/lib/rails/generators/rails/app/templates/README.rdoc renamed to railties/lib/rails/generators/rails/app/templates/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
== README
1+
## README
22

33
This README would normally document whatever steps are necessary to get the
44
application up and running.

railties/test/generators/actions_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ def test_route_should_add_data_to_the_routes_block_in_config_routes
222222
def test_readme
223223
run_generator
224224
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
225-
assert_match "application up and running", action(:readme, "README.rdoc")
225+
assert_match "application up and running", action(:readme, "README.md")
226226
end
227227

228228
def test_readme_with_quiet
229229
generator(default_arguments, quiet: true)
230230
run_generator
231231
Rails::Generators::AppGenerator.expects(:source_root).times(2).returns(destination_root)
232-
assert_no_match "application up and running", action(:readme, "README.rdoc")
232+
assert_no_match "application up and running", action(:readme, "README.md")
233233
end
234234

235235
def test_log

railties/test/generators/app_generator_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
DEFAULT_APP_FILES = %w(
77
.gitignore
8-
README.rdoc
8+
README.md
99
Gemfile
1010
Rakefile
1111
config.ru

0 commit comments

Comments
 (0)