ruby-changes:29595
From: usa <ko1@a...>
Date: Wed, 26 Jun 2013 16:33:06 +0900 (JST)
Subject: [ruby-changes:29595] usa:r41647 (ruby_1_9_3): merge revision(s) 41091: [Backport #8415]
usa 2013-06-26 16:32:55 +0900 (Wed, 26 Jun 2013) New Revision: 41647 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41647 Log: merge revision(s) 41091: [Backport #8415] * lib/net/imap.rb (capability_response): should ignore trailing spaces. Thanks, Peter Kovacs. [ruby-core:55024] [Bug #8415] * test/net/imap/test_imap_response_parser.rb: related test. Modified directories: branches/ruby_1_9_3/ Modified files: branches/ruby_1_9_3/ChangeLog branches/ruby_1_9_3/lib/net/imap.rb branches/ruby_1_9_3/test/net/imap/test_imap_response_parser.rb branches/ruby_1_9_3/version.h Index: ruby_1_9_3/ChangeLog =================================================================== --- ruby_1_9_3/ChangeLog (revision 41646) +++ ruby_1_9_3/ChangeLog (revision 41647) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ChangeLog#L1 +Wed Jun 26 16:31:49 2013 Shugo Maeda <shugo@r...> + + * lib/net/imap.rb (capability_response): should ignore trailing + spaces. Thanks, Peter Kovacs. [ruby-core:55024] [Bug #8415] + + * test/net/imap/test_imap_response_parser.rb: related test. + Wed Jun 26 16:29:41 2013 Charlie Somerville <charliesome@r...> * intern.h: remove dangling rb_class_init_copy declaration Index: ruby_1_9_3/lib/net/imap.rb =================================================================== --- ruby_1_9_3/lib/net/imap.rb (revision 41646) +++ ruby_1_9_3/lib/net/imap.rb (revision 41647) @@ -2869,6 +2869,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/lib/net/imap.rb#L2869 break when T_SPACE shift_token + next end data.push(atom.upcase) end Index: ruby_1_9_3/version.h =================================================================== --- ruby_1_9_3/version.h (revision 41646) +++ ruby_1_9_3/version.h (revision 41647) @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/version.h#L1 #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 439 +#define RUBY_PATCHLEVEL 440 #define RUBY_RELEASE_DATE "2013-06-26" #define RUBY_RELEASE_YEAR 2013 Index: ruby_1_9_3/test/net/imap/test_imap_response_parser.rb =================================================================== --- ruby_1_9_3/test/net/imap/test_imap_response_parser.rb (revision 41646) +++ ruby_1_9_3/test/net/imap/test_imap_response_parser.rb (revision 41647) @@ -130,4 +130,15 @@ EOF https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/test/net/imap/test_imap_response_parser.rb#L130 response.data[0].user) assert_equal("lrswickxteda", response.data[0].rights) end + + # [Bug #8415] + def test_capability + parser = Net::IMAP::ResponseParser.new + response = parser.parse("* CAPABILITY st11p00mm-iscream009 1Q49 XAPPLEPUSHSERVICE IMAP4 IMAP4rev1 SASL-IR AUTH=ATOKEN AUTH=PLAIN\r\n") + assert_equal("CAPABILITY", response.name) + assert_equal("AUTH=PLAIN", response.data.last) + response = parser.parse("* CAPABILITY st11p00mm-iscream009 1Q49 XAPPLEPUSHSERVICE IMAP4 IMAP4rev1 SASL-IR AUTH=ATOKEN AUTH=PLAIN \r\n") + assert_equal("CAPABILITY", response.name) + assert_equal("AUTH=PLAIN", response.data.last) + end end Property changes on: ruby_1_9_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r41091 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/