Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Apply (pronto-)rubocop suggestions for PR #197feat_improve_menu | Abinoam P. Marques Jr | 2016-06-05 | 2 | -5/+7 |
| | | | | | | | | | | | | ``` $ 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 |
| | |||||
* | Fix doc with yard syntax for options Hashes | Abinoam P. Marques Jr | 2016-06-05 | 1 | -3/+6 |
| | |||||
* | HighLine::MenuItem -> HighLine::Menu::Item | Abinoam P. Marques Jr | 2016-06-03 | 2 | -29/+33 |
| | | | | ... 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. | ||||
* | Bump up version to 2.0.0-develop.8add_pronto | Abinoam P. Marques Jr | 2016-06-03 | 1 | -1/+1 |
| | |||||
* | Bump up version to 2.0.0-develop.7aregic_coloring | Aregic | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Implement HighLine::Menu's indices coloring | Aregic | 2016-05-31 | 1 | -5/+37 |
| | |||||
* | Update Changelog.md and bump up version to 2.0.0-develop.6pr184_rebased | Abinoam Praxedes Marques Jr | 2016-02-19 | 1 | -1/+1 |
| | |||||
* | 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 | 2 | -20/+63 |
| | | | | | 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. | ||||
* | Fix bug with responses hash not updating with each additional menu choice | matrinox | 2016-02-19 | 2 | -13/+25 |
| | | | | | | Originally, build_responses gave precedence to new hash (which makes sense) but then old hash was given precedence because it allowed the user to set things and let that stick Instead, the solution should be to split the concerns: one hash for user one hash for internal. The hashes are then merged when outputting, giving the user responses precedence This does have the side effect of taking away responses reflection on the side of the client but that is easily added in build_responses | ||||
* | 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. | ||||
* | Bump up version to 2.0.0-develop.5 updating Changelog | Abinoam Praxedes Marques Jr | 2015-12-27 | 1 | -1/+1 |
| | |||||
* | 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] | ||||
* | Bump up version to 2.0.0-develop.4 | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -1/+1 |
| | |||||
* | Put down the last C and B grade objects (inch - documentation) | Abinoam Praxedes Marques Jr | 2015-12-14 | 7 | -6/+31 |
| | |||||
* | Improve HighLine::ColorScheme documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -5/+14 |
| | |||||
* | Improve HighLine::Wrapper documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+9 |
| | |||||
* | Improve HighLine::ListRenderer documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -1/+17 |
| | |||||
* | Improve HighLine::Paginator documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+10 |
| | |||||
* | Reindent HighLine::Statement | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -72/+74 |
| | |||||
* | Improve HighLine::Statement documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -1/+23 |
| | |||||
* | Improve HighLine::QuestionAsker documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+18 |
| | |||||
* | Improve HighLine::Question documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -1/+54 |
| | |||||
* | Deprecate HighLine::Terminal::CHARACTER_MODE constant and unify ↵ | Abinoam Praxedes Marques Jr | 2015-12-14 | 4 | -19/+6 |
| | | | | #character_mode approach | ||||
* | Improve HighLine::Terminal and childs documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 3 | -5/+29 |
| | |||||
* | Migrate NCurses code to new Terminal api and improve documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -6/+7 |
| | |||||
* | Improve HighLine::BuiltinStyles documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -2/+18 |
| | |||||
* | Improve HighLine::Question::AnswerConverter documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+14 |
| | |||||
* | Improve HighLine::StringExtensions documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+12 |
| | |||||
* | Improve HighLine::CustomErrors documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -0/+18 |
| | |||||
* | Improve HighLine::Terminal documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -3/+44 |
| | |||||
* | Improve HighLine::Style documentation | Abinoam Praxedes Marques Jr | 2015-12-14 | 1 | -2/+89 |
| | |||||
* | Change parameter signature of HighLine.find_or_create_style and improve ↵ | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -3/+6 |
| | | | | documentation | ||||
* | Improve TemplateRenderer documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 1 | -1/+25 |
| | |||||
* | Improve some monkey patched classes' documentation | Abinoam Praxedes Marques Jr | 2015-12-13 | 2 | -4/+10 |
| | |||||
* | 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 |
| | |||||
* | Remove unecessary ins vars assignment and make use of accessors on Question | Abinoam Praxedes Marques Jr | 2015-11-17 | 1 | -40/+30 |
| | |||||
* | 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 |
| | |||||
* | Makes QuestionError a ExplainableError | Abinoam Praxedes Marques Jr | 2015-11-17 | 2 | -5/+5 |
| | |||||
* | Add ExplainableError class and take advantage of inheritance to simplify ↵ | Abinoam Praxedes Marques Jr | 2015-11-17 | 2 | -8/+8 |
| | | | | rescue clause |