From 2b5dacbb74ff91f2a89874c9f67a9c3405d1b775 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 14 Sep 2007 19:04:31 +0000 Subject: [PATCH] minor cryptosig prettynesses git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@575 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- bin/sup | 2 +- lib/sup/message.rb | 2 +- lib/sup/modes/thread-view-mode.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/sup b/bin/sup index 9180f76..1b68596 100644 --- a/bin/sup +++ b/bin/sup @@ -126,7 +126,7 @@ begin c.add :alternate_patina_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_BLUE c.add :missing_message_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_RED c.add :attachment_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK - c.add :valid_cryptosig_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK + c.add :valid_cryptosig_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, Ncurses::A_BOLD c.add :invalid_cryptosig_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_RED, Ncurses::A_BOLD c.add :quote_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK c.add :sig_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK diff --git a/lib/sup/message.rb b/lib/sup/message.rb index 42ec88a..c454adb 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -146,7 +146,7 @@ EOS if gpg_output =~ /^gpg: (.* signature from .*$)/ $1 else - "Unable to determine signature validity" + "Unable to determine validity of cryptographic signature" end @status = ($? == 0 ? :valid : :invalid) diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb index b172779..bb7d4fe 100644 --- a/lib/sup/modes/thread-view-mode.rb +++ b/lib/sup/modes/thread-view-mode.rb @@ -514,9 +514,9 @@ private color = chunk.valid? ? :valid_cryptosig_color : :invalid_cryptosig_color case state when :closed - [[[color, "#{prefix}+ Cryptographic signature: #{chunk.description}"]]] + [[[color, "#{prefix}+ #{chunk.description}"]]] when :open - [[[color, "#{prefix}- Cryptographic signature: #{chunk.description}"]]] + + [[[color, "#{prefix}- #{chunk.description}"]]] + chunk.lines.map { |line| [[color, "#{prefix}#{line}"]] } end else -- 2.45.2