diff --git a/lib/pdk/util/vendored_file.rb b/lib/pdk/util/vendored_file.rb index fc8bb4a15..78c46fe8c 100644 --- a/lib/pdk/util/vendored_file.rb +++ b/lib/pdk/util/vendored_file.rb @@ -51,8 +51,6 @@ def download_file uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true - # TODO: Get rid of this - http.verify_mode = OpenSSL::SSL::VERIFY_NONE if Gem.win_platform? request = Net::HTTP::Get.new(uri.request_uri) response = http.request(request) diff --git a/pdk.gemspec b/pdk.gemspec index 496570c56..0606d1bd0 100644 --- a/pdk.gemspec +++ b/pdk.gemspec @@ -50,5 +50,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency 'json_pure', '~> 2.6.3' spec.add_runtime_dependency 'pathspec', '~> 1.1' + spec.add_development_dependency 'bigdecimal' + spec.metadata['rubygems_mfa_required'] = 'true' end diff --git a/spec/unit/pdk/util/vendored_file_spec.rb b/spec/unit/pdk/util/vendored_file_spec.rb index 04aa8d0b8..56ca702d2 100644 --- a/spec/unit/pdk/util/vendored_file_spec.rb +++ b/spec/unit/pdk/util/vendored_file_spec.rb @@ -54,7 +54,6 @@ allow(Net::HTTP::Get).to receive(:new).with(anything).and_return(mock_request) allow(Net::HTTP).to receive(:new).with(any_args).and_return(mock_http) allow(mock_http).to receive(:use_ssl=).with(anything) - allow(mock_http).to receive(:verify_mode=).with(anything) end let(:download_error) { described_class::DownloadError }