ruby-changes:62472
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:46 +0900 (JST)
Subject: [ruby-changes:62472] 34527927e8 (master): [rubygems/rubygems] Remove unnecessary check
https://git.ruby-lang.org/ruby.git/commit/?id=34527927e8 From 34527927e84ca5020f1385c47b70b92bb574f2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Sat, 11 Jul 2020 10:47:42 +0200 Subject: [rubygems/rubygems] Remove unnecessary check No check is done for the other expectation and they are completely symmetric as far as I can see. https://github.com/rubygems/rubygems/commit/4de89e0718 diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb index 3a97a85..1ae9765 100644 --- a/test/rubygems/test_gem_package.rb +++ b/test/rubygems/test_gem_package.rb @@ -94,12 +94,10 @@ class TestGemPackage < Gem::Package::TarTestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package.rb#L94 } } - if defined?(OpenSSL::Digest) - expected['SHA256'] = { - 'metadata.gz' => metadata_sha256, - 'data.tar.gz' => Digest::SHA256.hexdigest(tar), - } - end + expected['SHA256'] = { + 'metadata.gz' => metadata_sha256, + 'data.tar.gz' => Digest::SHA256.hexdigest(tar), + } assert_equal expected, YAML.load(checksums) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/