summaryrefslogtreecommitdiff
path: root/lib/highline
Commit message (Collapse)AuthorAgeFilesLines
* Apply (pronto-)rubocop suggestions for PR #197feat_improve_menuAbinoam P. Marques Jr2016-06-052-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#optionsAbinoam P. Marques Jr2016-06-051-12/+13
|
* Fix doc with yard syntax for options HashesAbinoam P. Marques Jr2016-06-051-3/+6
|
* HighLine::MenuItem -> HighLine::Menu::ItemAbinoam P. Marques Jr2016-06-032-29/+33
| | | | ... 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.
* Bump up version to 2.0.0-develop.8add_prontoAbinoam P. Marques Jr2016-06-031-1/+1
|
* Bump up version to 2.0.0-develop.7aregic_coloringAregic2016-05-311-1/+1
|
* Implement HighLine::Menu's indices coloringAregic2016-05-311-5/+37
|
* Update Changelog.md and bump up version to 2.0.0-develop.6pr184_rebasedAbinoam Praxedes Marques Jr2016-02-191-1/+1
|
* 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-192-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 choicematrinox2016-02-192-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 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.
* Bump up version to 2.0.0-develop.5 updating ChangelogAbinoam Praxedes Marques Jr2015-12-271-1/+1
|
* 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]
* Bump up version to 2.0.0-develop.4Abinoam Praxedes Marques Jr2015-12-141-1/+1
|
* Put down the last C and B grade objects (inch - documentation)Abinoam Praxedes Marques Jr2015-12-147-6/+31
|
* Improve HighLine::ColorScheme documentationAbinoam Praxedes Marques Jr2015-12-141-5/+14
|
* Improve HighLine::Wrapper documentationAbinoam Praxedes Marques Jr2015-12-141-0/+9
|
* Improve HighLine::ListRenderer documentationAbinoam Praxedes Marques Jr2015-12-141-1/+17
|
* Improve HighLine::Paginator documentationAbinoam Praxedes Marques Jr2015-12-141-0/+10
|
* Reindent HighLine::StatementAbinoam Praxedes Marques Jr2015-12-141-72/+74
|
* Improve HighLine::Statement documentationAbinoam Praxedes Marques Jr2015-12-141-1/+23
|
* Improve HighLine::QuestionAsker documentationAbinoam Praxedes Marques Jr2015-12-141-0/+18
|
* Improve HighLine::Question documentationAbinoam Praxedes Marques Jr2015-12-141-1/+54
|
* Deprecate HighLine::Terminal::CHARACTER_MODE constant and unify ↵Abinoam Praxedes Marques Jr2015-12-144-19/+6
| | | | #character_mode approach
* Improve HighLine::Terminal and childs documentationAbinoam Praxedes Marques Jr2015-12-143-5/+29
|
* Migrate NCurses code to new Terminal api and improve documentationAbinoam Praxedes Marques Jr2015-12-141-6/+7
|
* Improve HighLine::BuiltinStyles documentationAbinoam Praxedes Marques Jr2015-12-141-2/+18
|
* Improve HighLine::Question::AnswerConverter documentationAbinoam Praxedes Marques Jr2015-12-141-0/+14
|
* Improve HighLine::StringExtensions documentationAbinoam Praxedes Marques Jr2015-12-141-0/+12
|
* Improve HighLine::CustomErrors documentationAbinoam Praxedes Marques Jr2015-12-141-0/+18
|
* Improve HighLine::Terminal documentationAbinoam Praxedes Marques Jr2015-12-141-3/+44
|
* Improve HighLine::Style documentationAbinoam Praxedes Marques Jr2015-12-141-2/+89
|
* Change parameter signature of HighLine.find_or_create_style and improve ↵Abinoam Praxedes Marques Jr2015-12-131-3/+6
| | | | documentation
* Improve TemplateRenderer documentationAbinoam Praxedes Marques Jr2015-12-131-1/+25
|
* Improve some monkey patched classes' documentationAbinoam Praxedes Marques Jr2015-12-132-4/+10
|
* 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
|
* Remove unecessary ins vars assignment and make use of accessors on QuestionAbinoam Praxedes Marques Jr2015-11-171-40/+30
|
* 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
|
* Makes QuestionError a ExplainableErrorAbinoam Praxedes Marques Jr2015-11-172-5/+5
|
* Add ExplainableError class and take advantage of inheritance to simplify ↵Abinoam Praxedes Marques Jr2015-11-172-8/+8
| | | | rescue clause