File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,8 @@ def exec_name
501501 app . await_reload
502502
503503 assert_failure %(bin/rails runner 'require "sqlite3"') , stderr : "sqlite3"
504+
505+ File . write ( app . gemfile , app . gemfile . read . gsub ( %{# gem 'sqlite3'} , %{gem 'sqlite3'} ) )
504506 end
505507
506508 if RUBY_VERSION >= "2.0.0"
@@ -514,6 +516,11 @@ def exec_name
514516 app . await_reload
515517
516518 assert_failure %(bin/rails runner 'require "sqlite3"') , stderr : "sqlite3"
519+
520+ File . write ( app . gems_rb , app . gems_rb . read . gsub ( %{# gem 'sqlite3'} , %{gem 'sqlite3'} ) )
521+
522+ FileUtils . mv ( app . gems_rb , app . gemfile )
523+ FileUtils . mv ( app . gems_locked , app . gemfile_lock )
517524 end
518525 end
519526
@@ -547,6 +554,9 @@ def exec_name
547554 RUBY
548555
549556 assert_success [ %(bin/rails runner 'load Rails.root.join("script.rb")') , timeout : 60 ]
557+
558+ FileUtils . mv ( app . gems_rb , app . gemfile )
559+ FileUtils . mv ( app . gems_locked , app . gemfile_lock )
550560 end
551561 end
552562
You can’t perform that action at this time.
0 commit comments