merge revision(s) 25340:

* lib/net/imap.rb (resp_text_code): accepts response codes without
	  text.  backported from trunk.  [ruby-core:24194]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2009-11-24 07:14:33 +00:00
parent 1298533806
commit 06b911ea00
3 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 24 16:12:33 2009 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (resp_text_code): accepts response codes without
text. backported from trunk. [ruby-core:24194]
Tue Nov 24 16:09:41 2009 Shugo Maeda <shugo@ruby-lang.org> Tue Nov 24 16:09:41 2009 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (getaddress): rescue exceptions. [ruby-dev:39451] * lib/net/ftp.rb (getaddress): rescue exceptions. [ruby-dev:39451]

View file

@ -2764,11 +2764,16 @@ module Net
match(T_SPACE) match(T_SPACE)
result = ResponseCode.new(name, number) result = ResponseCode.new(name, number)
else else
match(T_SPACE) token = lookahead
@lex_state = EXPR_CTEXT if token.symbol == T_SPACE
token = match(T_TEXT) shift_token
@lex_state = EXPR_BEG @lex_state = EXPR_CTEXT
result = ResponseCode.new(name, token.value) token = match(T_TEXT)
@lex_state = EXPR_BEG
result = ResponseCode.new(name, token.value)
else
result = ResponseCode.new(name, nil)
end
end end
match(T_RBRA) match(T_RBRA)
@lex_state = EXPR_RTEXT @lex_state = EXPR_RTEXT

View file

@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2009-11-24" #define RUBY_RELEASE_DATE "2009-11-24"
#define RUBY_VERSION_CODE 187 #define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20091124 #define RUBY_RELEASE_CODE 20091124
#define RUBY_PATCHLEVEL 218 #define RUBY_PATCHLEVEL 219
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_MINOR 8