From 286ded5b4dea27e075884e3841cf9433226643d5 Mon Sep 17 00:00:00 2001 From: Code Ass Date: Tue, 13 Sep 2016 07:17:25 +0900 Subject: [PATCH] Bypass recursive RubyGems require --- lib/bundler/plugin/api/source.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/plugin/api/source.rb b/lib/bundler/plugin/api/source.rb index 78514563f7a..65c5c0eb1ad 100644 --- a/lib/bundler/plugin/api/source.rb +++ b/lib/bundler/plugin/api/source.rb @@ -1,6 +1,4 @@ # frozen_string_literal: true -require "uri" -require "digest/sha1" module Bundler module Plugin @@ -41,6 +39,8 @@ class API # is present to be compatible with `Definition` and is used by # rubygems source. module Source + require "uri" + require "digest/sha1" attr_reader :uri, :options, :name attr_accessor :dependency_names