Skip to content

Instantly share code, notes, and snippets.

@kana
Created August 26, 2008 15:10
Show Gist options
  • Save kana/7274 to your computer and use it in GitHub Desktop.
Save kana/7274 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'highline/import'
require 'mechanize'
agent = WWW::Mechanize.new
login_page = agent.get 'http://www.vim.org/login.php'
_ = ask 'user'
pp _
__END__
/opt/local/lib/ruby/gems/1.8/gems/highline-1.4.0/lib/highline.rb:593:in `get_line': The input stream is exhausted. (EOFError)
from /opt/local/lib/ruby/gems/1.8/gems/highline-1.4.0/lib/highline.rb:614:in `get_response'
from /opt/local/lib/ruby/gems/1.8/gems/highline-1.4.0/lib/highline.rb:213:in `ask'
from highline-mechanize-problem.rb:7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment