1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use exact Rails version when verifying.

This commit is contained in:
Kasper Timm Hansen 2017-07-25 21:58:33 +02:00
parent ef2683573d
commit 3addcdbca0
No known key found for this signature in database
GPG key ID: 191153215EDA53D8

View file

@ -154,8 +154,13 @@ namespace :all do
task verify: :install do
app_name = "pkg/verify-#{version}-#{Time.now.to_i}"
sh "rails new #{app_name}"
sh "rails _#{version}_ new #{app_name} --skip-bundle" # Generate with the right version.
cd app_name
# Replace the generated gemfile entry with the exact version.
File.write("Gemfile", File.read("Gemfile").sub(/^gem 'rails.*/, "gem 'rails', '#{version}'"))
sh "bundle"
sh "rails generate scaffold user name admin:boolean && rails db:migrate"
puts "Booting a Rails server. Verify the release by:"