From: Michael Stapelberg <michael+sup@stapelberg.de>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9
Date: Fri, 19 Mar 2010 16:34:26 +0100 [thread overview]
Message-ID: <1269012800-sup-3632@midna.zekjur.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
Hi,
attached you find a patch to make sup-tweak-labels work with 1.9. Maybe the
line can be written more beautifully.
Best regards,
Michael
[-- Attachment #2: 0001-Make-sup-tweak-labels-work-with-ruby-1.9.patch --]
[-- Type: application/octet-stream, Size: 881 bytes --]
From 40f65498b4ef3fd6f058b67cfb975062a230555a Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Fri, 19 Mar 2010 16:31:40 +0100
Subject: [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9
---
bin/sup-tweak-labels | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
index 03c727c..ef3c12f 100755
--- a/bin/sup-tweak-labels
+++ b/bin/sup-tweak-labels
@@ -84,7 +84,8 @@ begin
parsed_query = index.parse_query query
parsed_query.merge! :load_spam => true, :load_deleted => true, :load_killed => true
- ids = Enumerable::Enumerator.new(index, :each_id, parsed_query).map
+ ids = Array.new
+ index.each_id(parsed_query) { |id| ids.push(id) }
num_total = ids.size
$stderr.puts "Found #{num_total} documents across #{source_ids.length} sources. Scanning..."
--
1.6.5
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2010-03-19 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 15:34 Michael Stapelberg [this message]
2010-03-28 21:35 ` 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=1269012800-sup-3632@midna.zekjur.net \
--to=michael+sup@stapelberg.de \
--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