Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

[RubygemsExt] Add missing require rubygems/source #4944

Merged
merged 4 commits into from
Sep 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/bundler/rubygems_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@

require "rubygems"
require "rubygems/specification"

begin
# Possible use in Gem::Specification#source below and require
# shouldn't be deferred.
require "rubygems/source"
rescue LoadError
# Not available before Rubygems 2.0.0, ignore
nil
end

require "bundler/match_platform"

module Gem
Expand Down