From 207eb07d37a88a6eff41fedd6b5fa0eb008705e4 Mon Sep 17 00:00:00 2001 From: "Grant T. Olson" Date: Sat, 23 Mar 2013 12:14:14 -0400 Subject: [PATCH] Added options option #23 --- lib/rubygems/openpgp/gpg_options.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rubygems/openpgp/gpg_options.rb b/lib/rubygems/openpgp/gpg_options.rb index e4673d7..74eb3f8 100644 --- a/lib/rubygems/openpgp/gpg_options.rb +++ b/lib/rubygems/openpgp/gpg_options.rb @@ -10,7 +10,8 @@ module Gem::OpenPGP "default-key" => "user_id", "local-user" => "user_id", "passphrase-fd" => "file_descriptor", - "passphrase-file" => "file_name" + "passphrase-file" => "file_name", + "options" => "file_name" } def self.gpg_options @@ -23,7 +24,7 @@ def self.add_gpg_options cmd mangled_flag = "--gpg-#{flag}" mangled_flag += " #{arg}" if arg.is_a? String - cmd.add_option(mangled_flag,"Forward option --#{flag} to gpg") do |value, options| + cmd.add_option(mangled_flag,"Forward --#{flag} to gpg") do |value, options| value = true if arg.nil? #boolean gpg_options[flag] = value end