Method: Spring::Client::Run#gem_env
- Defined in:
- lib/spring/client/run.rb
#gem_env ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/spring/client/run.rb', line 81 def gem_env bundle = Bundler.bundle_path.to_s paths = Gem.path + ENV["GEM_PATH"].to_s.split(File::PATH_SEPARATOR) { "GEM_PATH" => [bundle, *paths].uniq.join(File::PATH_SEPARATOR), "GEM_HOME" => bundle } end |