Skip to content

Commit

Permalink
Workspace evaluates gem specs without binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed May 2, 2020
1 parent 63e4d3b commit 818d92b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/workspace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
Expand Down

0 comments on commit 818d92b

Please sign in to comment.