Skip to content

Commit

Permalink
Handle case of Bootsnap
Browse files Browse the repository at this point in the history
  Bootsnap passes full feature path to require. We should use returned
  value of find_gem, not true/false.
  • Loading branch information
hsbt committed Dec 12, 2023
1 parent f64485a commit 7cd9a5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundled_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def self.find_gem(path)
else
return
end
EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
EXACT[n] && n or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
end

def self.warning?(name, specs: nil)
Expand Down

0 comments on commit 7cd9a5d

Please sign in to comment.