diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-10 12:41:05 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-22 11:57:30 -0500 |
commit | 3cdccbfce68cf6b947e6c6cf6521eb2957bfc82e (patch) | |
tree | dca6f2656102b88b0b59bd4cfc42ed7a85dc5bd1 /lib/bundler | |
parent | df5ad43ee9ca5ee0647f962a948f281057785174 (diff) | |
download | bundler-3cdccbfce68cf6b947e6c6cf6521eb2957bfc82e.tar.gz |
Allow disabling checksum validation
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/rubygems_gem_installer.rb | 1 | ||||
-rw-r--r-- | lib/bundler/settings.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index cccd28e294..c0088e9091 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -20,6 +20,7 @@ module Bundler private def validate_bundler_checksum(checksum) + return true if Bundler.settings[:disable_checksum_validation] return true unless checksum return true unless source = @package.instance_variable_get(:@gem) return true unless source.respond_to?(:with_read_io) diff --git a/lib/bundler/settings.rb b/lib/bundler/settings.rb index 365d20adda..c5fd46d440 100644 --- a/lib/bundler/settings.rb +++ b/lib/bundler/settings.rb @@ -6,6 +6,7 @@ module Bundler BOOL_KEYS = %w( allow_offline_install cache_all + disable_checksum_validation disable_exec_load disable_local_branch_check disable_shared_gems |