Skip to content

Commit

Permalink
Merge pull request #4464 from sigstore/fix-for-4463
Browse files Browse the repository at this point in the history
Fix missing require breaking `gem cert`

(cherry picked from commit 7f1b05b)
  • Loading branch information
deivid-rodriguez committed Mar 18, 2021
1 parent 206df19 commit 1d5453c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubygems/security/trust_dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def trust_cert(certificate)
# permissions.

def verify
require 'fileutils'
if File.exist? @dir
raise Gem::Security::Exception,
"trust directory #{@dir} is not a directory" unless
Expand Down

0 comments on commit 1d5453c

Please sign in to comment.