[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sup-devel] [PATCH] 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 <bwalton@artsci.utoronto.ca>
---
lib/sup/message.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index 0bda5b1..521f00f 100644
--- a/lib/sup/message.rb
+++ b/lib/sup/message.rb
@@ -554,7 +554,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
--
1.7.0
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel