Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use guard clauses (rubocop warning) | Abinoam P. Marques Jr | 2017-07-07 | 1 | -4/+4 |
| | |||||
* | Enforce double quotes on strings | Abinoam P. Marques Jr | 2017-07-07 | 1 | -1/+1 |
| | |||||
* | Apply manual fixes for rubocop warnings | Abinoam P. Marques Jr | 2017-07-01 | 1 | -19/+29 |
| | |||||
* | Fix menu indexing by letter | Abinoam P. Marques Jr | 2017-07-01 | 1 | -2/+4 |
| | |||||
* | Rubocop automatic corrections | Abinoam P. Marques Jr | 2017-06-30 | 1 | -45/+45 |
| | |||||
* | use default in readme example | Frederico | 2016-07-11 | 1 | -1/+1 |
| | |||||
* | show default option for menus | Frederico | 2016-07-11 | 1 | -6/+16 |
| | |||||
* | Apply (pronto-)rubocop suggestions for PR #197feat_improve_menu | Abinoam P. Marques Jr | 2016-06-05 | 1 | -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#options | Abinoam P. Marques Jr | 2016-06-05 | 1 | -12/+13 |
| | |||||
* | HighLine::MenuItem -> HighLine::Menu::Item | Abinoam P. Marques Jr | 2016-06-03 | 1 | -29/+8 |
| | | | | ... and with its own file. | ||||
* | Extract compound logic from Menu#to_ary | Abinoam P. Marques Jr | 2016-06-03 | 1 | -6/+14 |
| | | | | | This reduces complexity of the code improving code climate and flog score. | ||||
* | Implement HighLine::Menu's indices coloring | Aregic | 2016-05-31 | 1 | -5/+37 |
| | |||||
* | Add menu#build_item covenience, bringing us one step closer to a cleaner API | matrinox | 2016-02-19 | 1 | -0/+13 |
| | |||||
* | Change name keyword arg to first positional arg because it's required | matrinox | 2016-02-19 | 1 | -15/+10 |
| | |||||
* | Add configurable MenuItem via HighLine::Menu#add_item | matrinox | 2016-02-19 | 1 | -0/+12 |
| | |||||
* | Remove keyword args to preserve backwards compatability (and ruby 1.9 support) | matrinox | 2016-02-19 | 1 | -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 options | matrinox | 2016-02-19 | 1 | -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 encapsulation | matrinox | 2016-02-19 | 1 | -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 hash | Abinoam Praxedes Marques Jr | 2015-12-27 | 1 | -5/+3 |
| | | | | ... so we can overwrite responses[:ask_on_error] | ||||
* | Improve Menu#help #get_item_by_number and #get_item_by_letter documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -1/+9 |
| | |||||
* | Improve HighLine::Menu#select documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -1/+6 |
| | |||||
* | Improve HighLine::Menu#hidden documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -1/+7 |
| | |||||
* | Improve HighLine::Menu#choices documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -2/+5 |
| | |||||
* | Improve HighLine::Menu#choice documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -0/+17 |
| | |||||
* | Add some comments to Menu methods | Abinoam Praxedes Marques Jr | 2015-11-17 | 1 | -2/+2 |
| | |||||
* | Extract Menu#get_item_by_number and #get_item_by_letter | Abinoam Praxedes Marques Jr | 2015-11-17 | 1 | -4/+12 |
| | |||||
* | Add example to HighLine#Menu documentation | Abinoam Praxedes Marques Jr | 2015-11-17 | 1 | -0/+7 |
| | |||||
* | Use yard link syntax on HighLine#Menu documentation | Abinoam Praxedes Marques Jr | 2015-11-17 | 1 | -7/+8 |
| | |||||
* | Add some rdoc markup for correct doc generation | Abinoam Praxedes Marques Jr | 2015-07-17 | 1 | -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 season | Abinoam Praxedes Marques Jr | 2015-07-17 | 1 | -8/+6 |
| | |||||
* | remove unneccessary shebang lines from *.rb files in lib | Michal Cichra | 2015-06-15 | 1 | -1/+0 |
| | |||||
* | Add HighLine::TemplateRenderer to aggregate tpl rendering logic | Abinoam Praxedes Marques Jr | 2015-04-29 | 1 | -14/+13 |
| | |||||
* | Add coding information to all files - 1.9 compatibility | Abinoam Praxedes Marques Jr | 2015-04-29 | 1 | -0/+3 |
| | |||||
* | Use #to_s for question and menu string conversion. Rubinius compatible. | Abinoam Praxedes Marques Jr | 2015-02-24 | 1 | -1/+1 |
| | |||||
* | Fixed comment. | Keith Bennett | 2014-01-02 | 1 | -3/+4 |
| | |||||
* | Reimplemented Menu#update_responses and Question#build_responses to move all ↵ | Keith Bennett | 2014-01-02 | 1 | -24/+5 |
| | | | | logic to the latter. | ||||
* | Eliminated colons and added single quotes to list of valid choices in menu ↵ | Keith Bennett | 2013-12-30 | 1 | -2/+3 |
| | | | | error message. | ||||
* | Fixing error in rdoc. | Marcus Stollsteimer | 2012-12-07 | 1 | -2/+2 |
| | |||||
* | Fixing some typos in rdoc. | Marcus Stollsteimer | 2012-12-07 | 1 | -1/+1 |
| | |||||
* | Removing trailing whitespace. | Marcus Stollsteimer | 2012-11-27 | 1 | -61/+61 |
| | |||||
* | Fixing some typos in rdoc. | Marcus Stollsteimer | 2012-11-27 | 1 | -1/+1 |
| | |||||
* | Remove shebangs. Fix shebang-spec. | Scott Gonyea | 2012-06-12 | 1 | -2/+0 |
| | |||||
* | Change shebangs to use /usr/bin/env to find the ruby. | Scott Gonyea | 2012-06-12 | 1 | -1/+1 |
| | |||||
* | Add typing verification through multiple matching entries | michael | 2012-05-13 | 1 | -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 LeBer | 2011-06-27 | 1 | -1/+1 |
| | | | | all tests now pass | ||||
* | Trying a fix for nil_on_handled doesn't execute action bug. | James Edward Gray II | 2011-05-12 | 1 | -3/+4 |
| | |||||
* | A fix for incorrect disambiguation choices. | James Edward Gray II | 2010-02-11 | 1 | -3/+5 |
| | |||||
* | restructuring | Gregory Brown | 2009-02-02 | 1 | -0/+395 |