Skip to content

Commit bb11959

Browse files
author
Arthur Nogueira Neves
authored
Merge pull request #473 from morgoth/fix-setting-gem-paths
Use Gem.use_paths method for setting paths
2 parents a89e602 + efb5050 commit bb11959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/client/binstub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Binstub < Command
3838
require 'bundler'
3939
4040
if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
41-
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
41+
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
4242
gem 'spring', match[1]
4343
require 'spring/binstub'
4444
end

0 commit comments

Comments
 (0)