lib/bundler.rb in bundler-1.17.3 vs lib/bundler.rb in bundler-2.0.0.pre.1
- old
+ new
@@ -117,11 +117,11 @@
def load
@load ||= Runtime.new(root, definition)
end
def environment
- SharedHelpers.major_deprecation 2, "Bundler.environment has been removed in favor of Bundler.load"
+ SharedHelpers.major_deprecation 3, "Bundler.environment has been removed in favor of Bundler.load"
load
end
# Returns an instance of Bundler::Definition for given Gemfile and lockfile
#
@@ -281,10 +281,10 @@
end
# @deprecated Use `original_env` instead
# @return [Hash] Environment with all bundler-related variables removed
def clean_env
- Bundler::SharedHelpers.major_deprecation(2, "`Bundler.clean_env` has weird edge cases, use `.original_env` instead")
+ Bundler::SharedHelpers.major_deprecation(3, "`Bundler.clean_env` has weird edge cases, use `.original_env` instead")
env = original_env
if env.key?("BUNDLER_ORIG_MANPATH")
env["MANPATH"] = env["BUNDLER_ORIG_MANPATH"]
end