From 818d92b45ce0b54552ef1375a382331e3231d637 Mon Sep 17 00:00:00 2001 From: Fred Snyder Date: Sat, 2 May 2020 03:15:27 -0400 Subject: [PATCH] Workspace evaluates gem specs without binding. --- lib/solargraph/workspace.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solargraph/workspace.rb b/lib/solargraph/workspace.rb index db1348397..ed48c161b 100644 --- a/lib/solargraph/workspace.rb +++ b/lib/solargraph/workspace.rb @@ -170,7 +170,7 @@ def generate_require_paths Dir.chdir base do begin # @type [Gem::Specification] - spec = eval(File.read(file), binding, file) + spec = eval(File.read(file), nil, file) next unless Gem::Specification === spec @gemnames.push spec.name result.concat(spec.require_paths.map { |path| File.join(base, path) })