From 8cf155b5cac0a69a7f167816ce6f26cb331bcecf Mon Sep 17 00:00:00 2001 From: Justin Smestad Date: Tue, 7 Feb 2017 17:17:08 -0700 Subject: [PATCH] Update 03-expert to work with README.md Latest Rails versions do not have a README.rdoc, use README.md --- elasticsearch-rails/lib/rails/templates/03-expert.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/elasticsearch-rails/lib/rails/templates/03-expert.rb b/elasticsearch-rails/lib/rails/templates/03-expert.rb index ec098a420..193c7f410 100644 --- a/elasticsearch-rails/lib/rails/templates/03-expert.rb +++ b/elasticsearch-rails/lib/rails/templates/03-expert.rb @@ -1,6 +1,6 @@ # $ rails new searchapp --skip --skip-bundle --template https://raw.github.com/elasticsearch/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/03-expert.rb -unless File.read('README.rdoc').include? '== [2] Pretty' +unless File.read('README.md').include? '== [2] Pretty' say_status "ERROR", "You have to run the 01-basic.rb and 02-pretty.rb templates first.", :red exit(1) end @@ -21,9 +21,9 @@ exit(1) end -append_to_file 'README.rdoc', <<-README +append_to_file 'README.md', <<-README -== [3] Expert +## [3] Expert The `expert` template changes to a complex database schema with model relationships: article belongs to a category, has many authors and comments. @@ -39,7 +39,7 @@ README -git add: "README.rdoc" +git add: "README.md" git commit: "-m '[03] Updated the application README'" # ----- Add gems into Gemfile ---------------------------------------------------------------------