JEG2/highline — Issue #17: HighLine.new.ask("Q?"){|q| q.overwrite = true} errors with version 1.6.5
Author: astounding
Created: 2011-11-11 22:27:08+00:00
State: open

Running gem version 1.6.5 under Ruby 1.9.2 I encounter this:

require 'highline'
answer = HighLine.new.ask("Password:"){|q| q.overwrite = true ; q.echo = '*'}

Result:
Password:
**********You must enter a valid HighLine::String.

The code worked just fine in previous versions, returning the user's input. If I omit the q.overwrite=true part, it works. So something has changed in the overwrite code path that breaks HighLine.

Thanks.

Aaron Gifford