Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Ben Walton <bwalton@artsci.utoronto.ca>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [PATCH] Fix 1.9-ism use of Array.count
Date: Thu, 13 May 2010 21:08:05 -0400	[thread overview]
Message-ID: <1273799285-31140-1-git-send-email-bwalton@artsci.utoronto.ca> (raw)

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


             reply	other threads:[~2010-05-14  1:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14  1:08 Ben Walton [this message]
2010-05-14  2:32 ` Rich Lane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1273799285-31140-1-git-send-email-bwalton@artsci.utoronto.ca \
    --to=bwalton@artsci.utoronto.ca \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox