summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-02-28 02:30:15 +0000
committerThe Bundler Bot <bot@bundler.io>2017-02-28 02:30:15 +0000
commit26489ed0754c3f29af76be166a2122c7dc191af5 (patch)
tree02ffcb531b0a7d3e716d433fa4547cd57b0a5142
parent815200c1a5831710ba3422bf1dcedc5a90c99d2f (diff)
parent124fa10713903dd814bd721799dbf6fa7a305bb1 (diff)
downloadbundler-26489ed0754c3f29af76be166a2122c7dc191af5.tar.gz
Auto merge of #5482 - denniss:5369-fix-disable-checksum-validation-setting-name, r=segiddins
Fix disable.checksum_validation to disable_checksum_validation Fix https://github.com/bundler/bundler/issues/5369
-rw-r--r--lib/bundler/rubygems_gem_installer.rb2
-rw-r--r--spec/install/gems/compact_index_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb
index 356e2e4470..977e13d948 100644
--- a/lib/bundler/rubygems_gem_installer.rb
+++ b/lib/bundler/rubygems_gem_installer.rb
@@ -43,7 +43,7 @@ module Bundler
If you wish to continue installing the downloaded gem, and are certain it does not pose a \
security issue despite the mismatching checksum, do the following:
- 1. run `bundle config disable.checksum_validation true` to turn off checksum verification
+ 1. run `bundle config disable_checksum_validation true` to turn off checksum verification
2. run `bundle install`
(More info: The expected SHA256 checksum was #{checksum.inspect}, but the \
diff --git a/spec/install/gems/compact_index_spec.rb b/spec/install/gems/compact_index_spec.rb
index bdcb56d71e..3ba858ed08 100644
--- a/spec/install/gems/compact_index_spec.rb
+++ b/spec/install/gems/compact_index_spec.rb
@@ -723,7 +723,7 @@ The checksum of /versions does not match the checksum provided by the server! So
and include("1. delete the downloaded gem located at: `#{system_gem_path}/gems/rack-1.0.0/rack-1.0.0.gem`").
and include("2. run `bundle install`").
and include("If you wish to continue installing the downloaded gem, and are certain it does not pose a security issue despite the mismatching checksum, do the following:").
- and include("1. run `bundle config disable.checksum_validation true` to turn off checksum verification").
+ and include("1. run `bundle config disable_checksum_validation true` to turn off checksum verification").
and include("2. run `bundle install`").
and match(/\(More info: The expected SHA256 checksum was "#{"ab" * 22}", but the checksum for the downloaded gem was ".+?"\.\)/)
end