diff options
author | The Bundler Bot <bot@bundler.io> | 2017-09-14 04:45:52 +0000 |
---|---|---|
committer | The Bundler Bot <bot@bundler.io> | 2017-09-14 04:45:52 +0000 |
commit | 8609a064aacb8d187053a4fc187c0993aca35707 (patch) | |
tree | 34195515f9eaa1d003211c1a2e286dd95bedb2df | |
parent | c1668a569244145790c627a08aa0f0f4720031ad (diff) | |
parent | b5a074549d38fad1ebf7888139ebacb48df38849 (diff) | |
download | bundler-8609a064aacb8d187053a4fc187c0993aca35707.tar.gz |
Auto merge of #6031 - bundler:seg-disable-new-version-warning-by-default, r=indirect
[CLI] For now, disable the new version warning by default
### What was the end-user problem that led to this PR?
The problem was people were getting confused by the terseness and bluntness of the current outdated bundler version warning.
### What was your diagnosis of the problem?
My diagnosis was we need to spend time fine-tuning the message, including when it is displayed. But given the lack of time to do so immediately, I thought it best to disable the warning for now, until someone can make a PR that addresses the comments and concerns raised in #6004.
-rw-r--r-- | lib/bundler/settings.rb | 1 | ||||
-rw-r--r-- | spec/bundler/cli_spec.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index c58eb3d494..d9daba43f6 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -73,6 +73,7 @@ module Bundler ].freeze DEFAULT_CONFIG = { + :disable_version_check => true, :redirect => 5, :retry => 3, :timeout => 10, diff --git a/spec/bundler/cli_spec.rb b/spec/bundler/cli_spec.rb index 5b48808e44..16ca32ca19 100644 --- a/spec/bundler/cli_spec.rb +++ b/spec/bundler/cli_spec.rb @@ -96,6 +96,8 @@ RSpec.describe "bundle executable" do let(:bundler_version) { "1.1" } let(:latest_version) { nil } before do + bundle! "config --global disable_version_check false" + simulate_bundler_version(bundler_version) if latest_version info_path = home(".bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/info/bundler") |