From a6eed560b78af7e83c52a91f6a23c992a2b96ff6 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Tue, 2 Aug 2016 16:41:08 -0500 Subject: Remove Bundler::Environment --- lib/bundler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bundler.rb') diff --git a/lib/bundler.rb b/lib/bundler.rb index 98f8123466..b940dc063a 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -26,7 +26,6 @@ module Bundler autoload :Dsl, "bundler/dsl" autoload :EndpointSpecification, "bundler/endpoint_specification" autoload :Env, "bundler/env" - autoload :Environment, "bundler/environment" autoload :Fetcher, "bundler/fetcher" autoload :GemHelper, "bundler/gem_helper" autoload :GemHelpers, "bundler/gem_helpers" @@ -112,7 +111,8 @@ module Bundler end def environment - Bundler::Environment.new(root, definition) + SharedHelpers.major_deprecation "Bundler.environment has been removed in favor of Bundler.load" + load end # Returns an instance of Bundler::Definition for given Gemfile and lockfile -- cgit v1.2.1