[ruby-cvs:70942] kazu:r63851 (trunk): Fallback to Digest::SHA512

kazu at ruby-lang.org kazu at ruby-lang.org
Wed Jul 4 21:45:47 JST 2018


kazu	2018-07-04 21:45:47 +0900 (Wed, 04 Jul 2018)

  New Revision: 63851

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63851

  Log:
    Fallback to Digest::SHA512
    
    `Gem::Package::TarWriter#add_file_signed` expects to fallback to
    `Digest::SHA512`, and `digest.respond_to? :name` or not.
    So lib/rubygems/security.rb should use same logic for
    `Gem::Security::DIGEST_ALGORITHM` and `Gem::Security::DIGEST_NAME`.

  Modified files:
    trunk/lib/rubygems/package/tar_writer.rb
    trunk/lib/rubygems/security.rb


More information about the ruby-cvs mailing list