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

Commit

Permalink
Rename major_deprecations to silence_deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Feb 21, 2019
1 parent 10148a2 commit 56384b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/bundler/settings.rb
Expand Up @@ -41,7 +41,6 @@ class Settings
init_gems_rb
list_command
lockfile_uses_separate_rubygems_sources
major_deprecations
no_install
no_prune
only_update_to_newer_versions
Expand All @@ -52,6 +51,7 @@ class Settings
prefer_patch
print_only_version_number
setup_makes_kernel_gem_public
silence_deprecations
silence_root_warning
skip_default_git_sources
specific_platform
Expand All @@ -76,7 +76,7 @@ class Settings
].freeze

DEFAULT_CONFIG = {
:major_deprecations => true,
:silence_deprecations => false,
:disable_version_check => true,
:prefer_patch => false,
:redirect => 5,
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 if Bundler.settings[:silence_deprecations]
require "bundler/deprecate"
return false if Bundler::Deprecate.skip
true
Expand Down
4 changes: 2 additions & 2 deletions man/bundle-config.ronn
Expand Up @@ -210,8 +210,8 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
The number of gems Bundler can install in parallel. Defaults to 1.
* `list_command` (`BUNDLE_LIST_COMMAND`)
Enable new list command feature
* `major_deprecations` (`BUNDLE_MAJOR_DEPRECATIONS`):
Whether Bundler should print deprecation warnings for behavior that will
* `silence_deprecations` (`BUNDLE_SILENCE_DEPRECATIONS`):
Whether Bundler should silence deprecation warnings for behavior that will
be changed in the next major version.
* `no_install` (`BUNDLE_NO_INSTALL`):
Whether `bundle package` should skip installing gems.
Expand Down

0 comments on commit 56384b8

Please sign in to comment.