[前][次][番号順一覧][スレッド一覧]

ruby-changes:5922

From: kazu <ko1@a...>
Date: Thu, 19 Jun 2008 20:44:55 +0900 (JST)
Subject: [ruby-changes:5922] Ruby:r17430 (ruby_1_8): * lib/net/pop.rb (Net::POP3#set_all_uids): speed

kazu	2008-06-19 20:44:32 +0900 (Thu, 19 Jun 2008)

  New Revision: 17430

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/lib/net/pop.rb
    branches/ruby_1_8/version.h

  Log:
    * lib/net/pop.rb (Net::POP3#set_all_uids): speed
      up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/lib/net/pop.rb?r1=17430&r2=17429&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=17430&r2=17429&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?r1=17430&r2=17429&diff_format=u

Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 17429)
+++ ruby_1_8/ChangeLog	(revision 17430)
@@ -1,3 +1,8 @@
+Thu Jun 19 20:37:00 2008  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* lib/net/pop.rb (Net::POP3#set_all_uids): speed
+	  up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
+
 Thu Jun 19 16:06:01 2008  Hidetoshi NAGAI  <nagai@a...>
 
 	* ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.
Index: ruby_1_8/version.h
===================================================================
--- ruby_1_8/version.h	(revision 17429)
+++ ruby_1_8/version.h	(revision 17430)
@@ -1,7 +1,7 @@
 #define RUBY_VERSION "1.8.7"
-#define RUBY_RELEASE_DATE "2008-06-18"
+#define RUBY_RELEASE_DATE "2008-06-19"
 #define RUBY_VERSION_CODE 187
-#define RUBY_RELEASE_CODE 20080618
+#define RUBY_RELEASE_CODE 20080619
 #define RUBY_PATCHLEVEL 5000
 
 #define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
 #define RUBY_VERSION_TEENY 7
 #define RUBY_RELEASE_YEAR 2008
 #define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 18
+#define RUBY_RELEASE_DAY 19
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];
Index: ruby_1_8/lib/net/pop.rb
===================================================================
--- ruby_1_8/lib/net/pop.rb	(revision 17429)
+++ ruby_1_8/lib/net/pop.rb	(revision 17430)
@@ -683,9 +683,8 @@
     end
 
     def set_all_uids   #:nodoc: internal use only (called from POPMail#uidl)
-      command().uidl.each do |num, uid|
-        @mails.find {|m| m.number == num }.uid = uid
-      end
+      uidl = command().uidl
+      @mails.each {|m| m.uid = uidl[m.number] }
     end
 
     def logging(msg)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]