Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version of HighLine does not include default Float responses in ask prompts #3

Open
jordanbyron opened this issue Aug 23, 2017 · 0 comments

Comments

@jordanbyron
Copy link
Contributor

jordanbyron commented Aug 23, 2017

https://github.com/JEG2/highline/blob/master/lib/highline/question.rb#L254

prompt.ask("Time to enter (CTRL-C to cancel): ", String) {|q| q.default = "1" }
#=> Time to enter (CTRL-C to cancel): |1| 
#=> "1"
prompt.ask("Time to enter (CTRL-C to cancel): ", Float) {|q| q.default = 1.0 }
#=> Time to enter (CTRL-C to cancel): 
#=> 1.0

If we stick with the older version we can just add gem 'highline', '1.6.21' to the top of application.rb and not have to worry about the change ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant