summaryrefslogtreecommitdiff
path: root/lib/highline/menu.rb
Commit message (Collapse)AuthorAgeFilesLines
* Apply manual fixes for rubocop warningsAbinoam P. Marques Jr2017-07-011-19/+29
|
* Fix menu indexing by letterAbinoam P. Marques Jr2017-07-011-2/+4
|
* Rubocop automatic correctionsAbinoam P. Marques Jr2017-06-301-45/+45
|
* use default in readme exampleFrederico2016-07-111-1/+1
|
* show default option for menusFrederico2016-07-111-6/+16
|
* Apply (pronto-)rubocop suggestions for PR #197feat_improve_menuAbinoam P. Marques Jr2016-06-051-1/+1
| | | | | | | | | | | | ``` $ pronto run lib/highline/menu.rb:371 I: Prefer `to_s` over string interpolation. lib/highline/menu/item.rb:5 I: Missing top-level class documentation comment. lib/highline/menu/item.rb:11 I: Line is too long. [99/80] lib/highline/menu/item.rb:13 I: Line is too long. [91/80] lib/highline/menu/item.rb:28 I: Final newline missing. ```
* Split and reduce complexity on Menu#optionsAbinoam P. Marques Jr2016-06-051-12/+13
|
* HighLine::MenuItem -> HighLine::Menu::ItemAbinoam P. Marques Jr2016-06-031-29/+8
| | | | ... and with its own file.
* Extract compound logic from Menu#to_aryAbinoam P. Marques Jr2016-06-031-6/+14
| | | | | This reduces complexity of the code improving code climate and flog score.
* Implement HighLine::Menu's indices coloringAregic2016-05-311-5/+37
|
* Add menu#build_item covenience, bringing us one step closer to a cleaner APImatrinox2016-02-191-0/+13
|
* Change name keyword arg to first positional arg because it's requiredmatrinox2016-02-191-15/+10
|
* Add configurable MenuItem via HighLine::Menu#add_itemmatrinox2016-02-191-0/+12
|
* Remove keyword args to preserve backwards compatability (and ruby 1.9 support)matrinox2016-02-191-9/+13
| | | | | Allow passing in HighLine::Menu::MenuItem directly. Menu choice can be either name or the MenuItem.
* Fix menu selection gathering with the various optionsmatrinox2016-02-191-13/+55
| | | | | String/Regexp/Hash was broken and integer had some issues some times. Also lack of support for symbol was inconvenient at times. Lots of tests in place.
* Add MenuItem struct for encapsulationmatrinox2016-02-191-46/+72
| | | | | By encapsulating menu items in a struct, it's easier to add more fields like text. Instead of keeping name and text the same, they are now decoupled: user inputs match name while text is what's displayed in the terminal.
* Fix #180 - Make it possible to patch the responses hashAbinoam Praxedes Marques Jr2015-12-271-5/+3
| | | | ... so we can overwrite responses[:ask_on_error]
* Improve Menu#help #get_item_by_number and #get_item_by_letter documentationAbinoam Praxedes Marques Jr2015-12-131-1/+9
|
* Improve HighLine::Menu#select documentationAbinoam Praxedes Marques Jr2015-12-131-1/+6
|
* Improve HighLine::Menu#hidden documentationAbinoam Praxedes Marques Jr2015-12-131-1/+7
|
* Improve HighLine::Menu#choices documentationAbinoam Praxedes Marques Jr2015-12-131-2/+5
|
* Improve HighLine::Menu#choice documentationAbinoam Praxedes Marques Jr2015-12-131-0/+17
|
* Add some comments to Menu methodsAbinoam Praxedes Marques Jr2015-11-171-2/+2
|
* Extract Menu#get_item_by_number and #get_item_by_letterAbinoam Praxedes Marques Jr2015-11-171-4/+12
|
* Add example to HighLine#Menu documentationAbinoam Praxedes Marques Jr2015-11-171-0/+7
|
* Use yard link syntax on HighLine#Menu documentationAbinoam Praxedes Marques Jr2015-11-171-7/+8
|
* Add some rdoc markup for correct doc generationAbinoam Praxedes Marques Jr2015-07-171-0/+1
| | | | | Some copyright notes above scoped class/module definitions were mixing up with the main scope (HighLine) class documentation.
* It's 'nil check' hunting seasonAbinoam Praxedes Marques Jr2015-07-171-8/+6
|
* remove unneccessary shebang lines from *.rb files in libMichal Cichra2015-06-151-1/+0
|
* Add HighLine::TemplateRenderer to aggregate tpl rendering logicAbinoam Praxedes Marques Jr2015-04-291-14/+13
|
* Add coding information to all files - 1.9 compatibilityAbinoam Praxedes Marques Jr2015-04-291-0/+3
|
* Use #to_s for question and menu string conversion. Rubinius compatible.Abinoam Praxedes Marques Jr2015-02-241-1/+1
|
* Fixed comment.Keith Bennett2014-01-021-3/+4
|
* Reimplemented Menu#update_responses and Question#build_responses to move all ↵Keith Bennett2014-01-021-24/+5
| | | | logic to the latter.
* Eliminated colons and added single quotes to list of valid choices in menu ↵Keith Bennett2013-12-301-2/+3
| | | | error message.
* Fixing error in rdoc.Marcus Stollsteimer2012-12-071-2/+2
|
* Fixing some typos in rdoc.Marcus Stollsteimer2012-12-071-1/+1
|
* Removing trailing whitespace.Marcus Stollsteimer2012-11-271-61/+61
|
* Fixing some typos in rdoc.Marcus Stollsteimer2012-11-271-1/+1
|
* Remove shebangs. Fix shebang-spec.Scott Gonyea2012-06-121-2/+0
|
* Change shebangs to use /usr/bin/env to find the ruby.Scott Gonyea2012-06-121-1/+1
|
* Add typing verification through multiple matching entriesmichael2012-05-131-0/+2
| | | | | | | | | | Setting verify_match on a question will allow for "please type it in again for verification" style entries, such as commonly seen when setting/changing passwords, etc. This leverages the existing gather mechanism to control asking for multiple entries, but returns a single answer once all gathered entries match.
* Refactor rgb colors using const_missing. Add rgb color tests. Bug fixes -- ↵Richard LeBer2011-06-271-1/+1
| | | | all tests now pass
* Trying a fix for nil_on_handled doesn't execute action bug.James Edward Gray II2011-05-121-3/+4
|
* A fix for incorrect disambiguation choices.James Edward Gray II2010-02-111-3/+5
|
* restructuringGregory Brown2009-02-021-0/+395