Skip to content

Commit 9bfce31

Browse files
committed
Merge pull request #472 from morgoth/fix-setting-gem-path
Set GEM_PATH as string as it does not accept arrays in RubyGems 2.6.0+
2 parents d746e51 + e31716d commit 9bfce31

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 }
41+
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
4242
gem 'spring', match[1]
4343
require 'spring/binstub'
4444
end

0 commit comments

Comments
 (0)