diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | lib/net/imap.rb | 4 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,12 @@ +Mon Jun 4 11:11:12 2007 Shugo Maeda <shugo@ruby-lang.org> + + * lib/net/imap.rb (ResponseParser#next_token): fixed + error message. (backported from HEAD) + + * lib/net/imap.rb (ResponseParser#parse_error): fixed + the condition not to refer @token.symbol unexpectedly. + Thanks, Dick Monahan. (backported from HEAD) + Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/benchmark.rb (Benchmark::Job::item): avoid modifying the diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 59df778695..6436940df6 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -3059,7 +3059,7 @@ module Net elsif $7 return Token.new(T_RPAR, $+) else - parse_error("[Net::IMAP BUG] BEG_REGEXP is invalid") + parse_error("[Net::IMAP BUG] DATA_REGEXP is invalid") end else @str.index(/\S*/n, @pos) @@ -3113,7 +3113,7 @@ module Net $stderr.printf("@str: %s\n", @str.dump) $stderr.printf("@pos: %d\n", @pos) $stderr.printf("@lex_state: %s\n", @lex_state) - if @token.symbol + if @token $stderr.printf("@token.symbol: %s\n", @token.symbol) $stderr.printf("@token.value: %s\n", @token.value.inspect) end |