We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8360e commit 5a217caCopy full SHA for 5a217ca
Rakefile.cross
@@ -282,7 +282,12 @@ task 'gem:windows:prepare' do
282
mkdir_p 'build/gem'
283
sh "cp ~/.gem/gem-*.pem build/gem/ || true"
284
sh "bundle package"
285
- ENV["GEM_PRIVATE_KEY_PASSPHRASE"] = STDIN.getpass("Enter passphrase of gem signature key: ")
+ begin
286
+ OpenSSL::PKey.read(File.read(File.expand_path("~/.gem/gem-private_key.pem")), ENV["GEM_PRIVATE_KEY_PASSPHRASE"] || "")
287
+ rescue OpenSSL::PKey::PKeyError
288
+ ENV["GEM_PRIVATE_KEY_PASSPHRASE"] = STDIN.getpass("Enter passphrase of gem signature key: ")
289
+ retry
290
+ end
291
end
292
293
%w[ x86-mingw32 x64-mingw32 ].each do |platform|
0 commit comments