From f75bc896d9f2b608e04470f1a11358ac13d42596 Mon Sep 17 00:00:00 2001 From: mgi166 Date: Thu, 24 Dec 2015 22:19:24 +0900 Subject: [PATCH] require "spring/commands" after boot_server * Calls `require "bundler/setup"` in `require "spring/commands"`. `require "bundler/setup"` overrides Gem.path, so changes the env which pass spawned process and child process does not found bundler. Therefore requires "bundler/setup" after calling Spring::Run#boot_server. --- lib/spring/client/run.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spring/client/run.rb b/lib/spring/client/run.rb index d42da4b4..f69b9edb 100644 --- a/lib/spring/client/run.rb +++ b/lib/spring/client/run.rb @@ -1,4 +1,3 @@ -require "spring/commands" require "rbconfig" require "socket" require "bundler" @@ -120,6 +119,8 @@ def connect_to_application(client) end def run_command(client, application) + require "spring/commands" + log "sending command" application.send_io STDOUT