Skip to content

Commit 72f3c13

Browse files
committed
[RAILS] Updated URLs for getting raw assets from Github in the 03-expert.rb template
Related: 358
1 parent 2352c2f commit 72f3c13

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

elasticsearch-rails/lib/rails/templates/03-expert.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Article < ActiveRecord::Base
157157
gsub_file "#{Rails::VERSION::STRING > '4' ? 'test/models' : 'test/unit' }/article_test.rb", %r{assert_equal 'foo', definition\[:query\]\[:multi_match\]\[:query\]}, "assert_equal 'foo', definition.to_hash[:query][:bool][:should][0][:multi_match][:query]"
158158

159159
# copy_file File.expand_path('../searchable.rb', __FILE__), 'app/models/concerns/searchable.rb'
160-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/searchable.rb',
160+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/searchable.rb',
161161
'app/models/concerns/searchable.rb'
162162

163163
insert_into_file "app/models/article.rb", after: "ActiveRecord::Base" do
@@ -186,7 +186,7 @@ class Article < ActiveRecord::Base
186186
run "bundle install"
187187

188188
# copy_file File.expand_path('../indexer.rb', __FILE__), 'app/workers/indexer.rb'
189-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/indexer.rb',
189+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/indexer.rb',
190190
'app/workers/indexer.rb'
191191

192192
git add: "Gemfile* app/workers/"
@@ -218,18 +218,18 @@ def index
218218
end
219219

220220
# copy_file File.expand_path('../search_controller_test.rb', __FILE__), 'test/controllers/search_controller_test.rb'
221-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/search_controller_test.rb',
221+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/search_controller_test.rb',
222222
'test/controllers/search_controller_test.rb'
223223

224224
route "get '/search', to: 'search#index', as: 'search'"
225225
gsub_file 'config/routes.rb', %r{root to: 'articles#index'$}, "root to: 'search#index'"
226226

227227
# copy_file File.expand_path('../index.html.erb', __FILE__), 'app/views/search/index.html.erb'
228-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/index.html.erb',
228+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/index.html.erb',
229229
'app/views/search/index.html.erb'
230230

231231
# copy_file File.expand_path('../search.css', __FILE__), 'app/assets/stylesheets/search.css'
232-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/search.css',
232+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/search.css',
233233
'app/assets/stylesheets/search.css'
234234

235235
git add: "app/controllers/ test/controllers/ config/routes.rb"
@@ -281,12 +281,12 @@ def index
281281
puts '-'*80, ''; sleep 0.25
282282

283283
# copy_file File.expand_path('../articles.yml.gz', __FILE__), 'db/articles.yml.gz'
284-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/articles.yml.gz',
284+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/articles.yml.gz',
285285
'db/articles.yml.gz'
286286

287287
remove_file 'db/seeds.rb'
288288
# copy_file File.expand_path('../seeds.rb', __FILE__), 'db/seeds.rb'
289-
get 'https://raw.github.com/elasticsearch/elasticsearch-rails/templates/elasticsearch-rails/lib/rails/templates/seeds.rb',
289+
get 'https://raw.githubusercontent.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/seeds.rb',
290290
'db/seeds.rb'
291291

292292
rake "db:reset"

0 commit comments

Comments
 (0)