require 'set' module Spring module Client class Binstub < Command SHEBANG = /\#\!.*\n/ # If loading the bin/spring file works, it'll run spring which will # eventually call Kernel.exit. This means that in the client process # we will never execute the lines after this block. But if the spring # client is not invoked for whatever reason, then the Kernel.exit won't # happen, and so we'll fall back to the lines after this block, which # should cause the "unsprung" version of the command to run. LOADER = <