Skip to content

Commit

Permalink
Don't register bundler as a default spec
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Apr 6, 2019
1 parent c003a3b commit 745f540
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,8 @@ class << self
#

def register_default_spec(spec)
return if spec.name == "bundler"

new_format = Gem.default_gems_use_full_paths? || spec.require_paths.any? {|path| spec.files.any? {|f| f.start_with? path } }

if new_format
Expand Down

0 comments on commit 745f540

Please sign in to comment.