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

Commit

Permalink
Turn on deprecations by default
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Feb 14, 2019
1 parent 1b9c0cb commit af227e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/bundler/feature_flag.rb
Expand Up @@ -44,6 +44,7 @@ def self.settings_method(name, key, &default)
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") }
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/shared_helpers.rb
Expand Up @@ -374,7 +374,7 @@ def resolve_path(path)

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
Expand Down

0 comments on commit af227e3

Please sign in to comment.