diff options
Diffstat (limited to 'lib/rubygems/security.rb')
-rw-r--r-- | lib/rubygems/security.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb index 4690dd9230..236577c5a3 100644 --- a/lib/rubygems/security.rb +++ b/lib/rubygems/security.rb @@ -578,7 +578,7 @@ module Gem::Security def self.write pemmable, path, permissions = 0600, passphrase = nil, cipher = KEY_CIPHER path = File.expand_path path - open path, 'wb', permissions do |io| + File.open path, 'wb', permissions do |io| if passphrase and cipher io.write pemmable.to_pem cipher, passphrase else |