Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH] Fix 1.9-ism use of Array.count
@ 2010-05-14  1:08 Ben Walton
  2010-05-14  2:32 ` Rich Lane
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Walton @ 2010-05-14  1:08 UTC (permalink / raw)
  To: sup-devel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sup-devel] [PATCH] Fix 1.9-ism use of Array.count
  2010-05-14  1:08 [sup-devel] [PATCH] Fix 1.9-ism use of Array.count Ben Walton
@ 2010-05-14  2:32 ` Rich Lane
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-05-14  2:32 UTC (permalink / raw)
  To: Ben Walton; +Cc: sup-devel

Applied to inline-gpg and branch merged to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-14  2:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-14  1:08 [sup-devel] [PATCH] Fix 1.9-ism use of Array.count Ben Walton
2010-05-14  2:32 ` Rich Lane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox