tenderlove/mechanize — Issue #204: No method error in cookie validation
Author: oferben
Created: 2012-02-19 17:52:10+00:00
State: open

Hey,

I get:

NoMethodError: undefined method `gsub!' for #
from /Users/ofer/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/date/format.rb:1037:in `_parse'
from /Users/ofer/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/time.rb:261:in `parse'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie.rb:181:in `expires'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie.rb:185:in `expired?'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:188:in `block (3 levels) in cleanup'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:186:in `each'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:186:in `block (2 levels) in cleanup'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:185:in `each'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:185:in `block in cleanup'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:184:in `each'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:184:in `cleanup'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:44:in `cookies'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/cookie_jar.rb:58:in `empty?'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/http/agent.rb:493:in `request_cookies'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize/http/agent.rb:199:in `fetch'
from /Users/ofer/.rvm/gems/ruby-1.9.2-p290@scraperrailsmine/gems/mechanize-2.2.1/lib/mechanize.rb:403:in `get'

What do you think?
Ofer