commit ec9b0ab29a99e1b608cf02ceb3be76cdd7d10628
parent 61679e69129f64fb3f64a4ba4c04ee96a390a181
Author: Ben Walton <bwalton@artsci.utoronto.ca>
Date: Thu, 13 May 2010 21:08:05 -0400
Fix 1.9-ism use of Array.count
Use the size method of array rather than the 1.9 specific count in
message body parsing.
Signed-off-by: Ben Walton
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -543,7 +543,7 @@ private
sig = lines.between(GPG_SIGNED_START, GPG_SIG_END)
payload = RMail::Message.new
- payload.body = sig[1, sig.count-2].join("\n")
+ payload.body = sig[1, sig.size-2].join("\n")
return [CryptoManager.verify(nil, msg, false), message_to_chunks(payload)].flatten.compact
end