Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9
@ 2010-03-19 15:34 Michael Stapelberg
  2010-03-28 21:35 ` Rich Lane
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Stapelberg @ 2010-03-19 15:34 UTC (permalink / raw)
  To: sup-devel

[-- 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

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

* Re: [sup-devel] [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9
  2010-03-19 15:34 [sup-devel] [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9 Michael Stapelberg
@ 2010-03-28 21:35 ` Rich Lane
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Lane @ 2010-03-28 21:35 UTC (permalink / raw)
  To: Michael Stapelberg; +Cc: sup-devel

Excerpts from Michael Stapelberg's message of 2010-03-19 11:34:26 -0400:
> attached you find a patch to make sup-tweak-labels work with 1.9. Maybe the
> line can be written more beautifully.

Thanks for the bug report, I committed a change that solved it in a
different way (87dcb31).
_______________________________________________
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-03-28 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-19 15:34 [sup-devel] [PATCH 1/2] Make sup-tweak-labels work with ruby 1.9 Michael Stapelberg
2010-03-28 21:35 ` Rich Lane

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