summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-01-24 18:26:55 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-02-21 16:32:23 +0100
commita6f593fe4d32ab2dde6ffd24a623dd8d1b783b5c (patch)
tree10bcefc70124b89eab1c84ffd84e11ad5e57d07b /lib
parentf626de26bdd4decd66a09a2cd6146e87caf640a2 (diff)
downloadbundler-a6f593fe4d32ab2dde6ffd24a623dd8d1b783b5c.tar.gz
Turn on deprecations by default
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/feature_flag.rb1
-rw-r--r--lib/bundler/shared_helpers.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/feature_flag.rb b/lib/bundler/feature_flag.rb
index 0adbd9190f..5507c38ec3 100644
--- a/lib/bundler/feature_flag.rb
+++ b/lib/bundler/feature_flag.rb
@@ -44,6 +44,7 @@ module Bundler
settings_flag(:init_gems_rb) { bundler_2_mode? }
settings_flag(:list_command) { bundler_2_mode? }
settings_flag(:lockfile_uses_separate_rubygems_sources) { bundler_2_mode? }
+ settings_flag(:major_deprecations) { bundler_2_mode? }
settings_flag(:only_update_to_newer_versions) { bundler_2_mode? }
settings_flag(:path_relative_to_cwd) { bundler_2_mode? }
settings_flag(:plugins) { @bundler_version >= Gem::Version.new("1.14") }
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index e0cb61e03f..c5c11c723d 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -374,7 +374,7 @@ module Bundler
def prints_major_deprecations?
require "bundler"
- return false unless Bundler.settings[:major_deprecations]
+ return false unless Bundler.feature_flag.major_deprecations?
require "bundler/deprecate"
return false if Bundler::Deprecate.skip
true