Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #140 from abinoam/feat_refac_askv2.0.0-develop | Abinoam P. Marques Jr. | 2015-07-06 | 47 | -995/+1905 |
|\ | | | | | Develop Release 2.0.0-develop.1 | ||||
| * | Add tests for HighLine::Simulator - Issue #142 | Abinoam Praxedes Marques Jr | 2015-06-29 | 1 | -0/+25 |
| | | | | | | | | | | | | As suggested by @bparanj on https://github.com/JEG2/highline/issues/142 Note: cherry picked from master and adapted to develop branch. | ||||
| * | Add ruby 2.2.1 and 2.2.2 to travis matrix | Abinoam Praxedes Marques Jr | 2015-06-29 | 1 | -0/+2 |
| | | |||||
| * | Remove commented (non functional) code | Abinoam Praxedes Marques Jr | 2015-06-17 | 1 | -68/+0 |
| | | | | | | | | As suggested by @maurogeorge at https://github.com/JEG2/highline/pull/140#discussion_r32679353 | ||||
| * | Add SimpleCov support | Abinoam Praxedes Marques Jr | 2015-06-17 | 5 | -2/+11 |
| | | | | | | | | As suggested by @maurogeorge at https://github.com/JEG2/highline/pull/140#issuecomment-112963251 | ||||
| * | Use a conditional assignment operator | Abinoam Praxedes Marques Jr | 2015-06-15 | 1 | -1/+1 |
| | | | | | | | | As suggested by @plribeiro3000 at https://github.com/JEG2/highline/pull/140#discussion_r32379527 | ||||
| * | Merge pull request #2 from mikz/feat_refac_ask | Abinoam P. Marques Jr. | 2015-06-15 | 27 | -22/+20 |
| |\ | | | | | | | Unify file headers | ||||
| | * | unify 'coding: utf-8' headers | Michal Cichra | 2015-06-15 | 12 | -3/+20 |
| | | | |||||
| | * | remove unneccessary shebang lines from *.rb files in lib | Michal Cichra | 2015-06-15 | 19 | -19/+0 |
| |/ | |||||
| * | Minor update to Changelog.md | Abinoam Praxedes Marques Jr | 2015-06-13 | 1 | -1/+1 |
| | | |||||
| * | Require forwardable as AnswerConverter depends on it | Abinoam Praxedes Marques Jr | 2015-06-12 | 1 | -0/+2 |
| | | |||||
| * | Fix version testing to accomodate pre release versions | Abinoam Praxedes Marques Jr | 2015-06-12 | 1 | -1/+1 |
| | | |||||
| * | Update Changelog.md - 2.0.0-develop.1 | Abinoam Praxedes Marques Jr | 2015-06-12 | 1 | -0/+61 |
| | | |||||
| * | Bump up version to 2.0.0-develop.1 | Abinoam Praxedes Marques Jr | 2015-06-12 | 1 | -1/+1 |
| | | |||||
| * | Add .DS_Store (mac) files to .gitignore | Abinoam Praxedes Marques Jr | 2015-06-11 | 1 | -0/+1 |
| | | |||||
| * | Extract AnswerConverter#convert_by_answer_type | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -7/+8 |
| | | |||||
| * | Make all convertion methods private to AnswerConverter | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -4/+2 |
| | | | | | | | | And remove TODO message | ||||
| * | Unify Array and Proc AnswerConverter convertions | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -5/+11 |
| | | |||||
| * | Send the name (string) directly. No need to convert to symbol here | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -1/+1 |
| | | |||||
| * | Split some AnswerConverter conversions separate methods - simplify conditional | Abinoam Praxedes Marques Jr | 2015-06-06 | 2 | -18/+61 |
| | | |||||
| * | Use a more natural calling syntax for procs | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -1/+1 |
| | | |||||
| * | Remove duplicate String handling in AnswerConverter#convert | Abinoam Praxedes Marques Jr | 2015-06-06 | 1 | -1/+1 |
| | | |||||
| * | Extract HighLine::Question::AnswerConverter | Abinoam Praxedes Marques Jr | 2015-06-05 | 3 | -27/+61 |
| | | | | | | | | | | | | | | | | | | It makes the dependencies clear. Preparing for refactoring this long chain of conditionals into something not that long. It also changes where NotInRangeQuestionError is raised, simplifying HighLine a little bit. | ||||
| * | Use case/when not if/elsif/else | Abinoam Praxedes Marques Jr | 2015-06-04 | 1 | -2/+3 |
| | | |||||
| * | Remove rescueing for NameError/NoMethdoError | Abinoam Praxedes Marques Jr | 2015-06-04 | 1 | -12/+3 |
| | | | | | | | | | | | | | | I just couldn't see where these errors could be triggered in a way that we would like to "treat" them. Now it's simpler with only ArgumentError handling. | ||||
| * | Add String convertion/coercion to HighLine::Question#format_answer | Abinoam Praxedes Marques Jr | 2015-06-04 | 1 | -0/+1 |
| | | |||||
| * | Extract HighLine#confirm(question) | Abinoam Praxedes Marques Jr | 2015-06-03 | 1 | -1/+6 |
| | | |||||
| * | Move HighLine#ask_on_error_msg to Question. Make it simpler and it's the ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 2 | -9/+9 |
| | | | | | | | | | | | | | | | | right place to be. It's good to note after extracting it that now the method has dependency only on a Question instance. So its home is inside Question class. | ||||
| * | Extract HighLine#ask_on_error_msg | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -2/+6 |
| | | |||||
| * | Simplify conditionals raising earlier | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -8/+6 |
| | | |||||
| * | Remove unecessary assignment | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -3/+2 |
| | | |||||
| * | Extract Question#confirm_question | Abinoam Praxedes Marques Jr | 2015-05-31 | 2 | -10/+14 |
| | | |||||
| * | Set Question#answer on Question#get_response_or_default and #convert. ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 2 | -4/+5 |
| | | | | | | | | Simplify assignments on HighLine#ask_once | ||||
| * | Remove Question#in_range? #valid_answer? and #convert parameters. Use ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 2 | -19/+19 |
| | | | | | | | | self.answer as default. | ||||
| * | Add Question#get_response_or_default and simplify HighLine#ask_once | Abinoam Praxedes Marques Jr | 2015-05-31 | 2 | -1/+5 |
| | | |||||
| * | Add NoConfirmationQuestionError. Simplify error handling using an specific ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -4/+9 |
| | | | | | | | | error class. | ||||
| * | Add NotInRangeQuestionError. Simplify error handling using an specific error ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -2/+9 |
| | | | | | | | | class. | ||||
| * | Add NotValidQuestionError. Simplify error handling using an specific error ↵ | Abinoam Praxedes Marques Jr | 2015-05-31 | 1 | -4/+10 |
| | | | | | | | | class. | ||||
| * | Aggregate code and simplify conditionals | Abinoam Praxedes Marques Jr | 2015-05-24 | 1 | -16/+8 |
| | | |||||
| * | Remove backspace_limit tracking need | Abinoam Praxedes Marques Jr | 2015-05-24 | 1 | -11/+3 |
| | | | | | | | | | | Put the "echoing" with "chopping" altogether and remove the need for tracking a backspace_limit | ||||
| * | Extract HighLine#output_erase_char | Abinoam Praxedes Marques Jr | 2015-05-24 | 1 | -1/+5 |
| | | |||||
| * | Change String#slice!(-1, 1) to a more native way - String#chop! | Abinoam Praxedes Marques Jr | 2015-05-24 | 1 | -1/+1 |
| | | |||||
| * | Change getbyte -> getc and easy all encoding issues | Abinoam Praxedes Marques Jr | 2015-05-24 | 3 | -27/+15 |
| | | | | | | | | | | | | | | | | | | There was a lot of encoding handling because of compatibility with old Ruby versions. Using getc handles the multibyte chars correctly (with current Ruby versions) and make us be able to drop all the encoding handling. | ||||
| * | Extract HighLine#erase_current_line | Abinoam Praxedes Marques Jr | 2015-05-21 | 1 | -2/+6 |
| | | |||||
| * | Move #raw_no_echo_mode_exec from HighLine to Terminal | Abinoam Praxedes Marques Jr | 2015-05-21 | 2 | -16/+14 |
| | | | | | | | | | | | | | | | | I think the "knowledge" about how to exec a block in raw no echo mode should be contained in the HighLine::Terminal itself. (It doesn't depend on anything outside that class!) With the help of the recent commit, we could move it to there in this step. | ||||
| * | Extract (unifying) HighLine#raw_no_echo_mode_exec | Abinoam Praxedes Marques Jr | 2015-05-20 | 1 | -7/+15 |
| | | |||||
| * | Extract HighLine#get_response_getc_mode | Abinoam Praxedes Marques Jr | 2015-05-20 | 2 | -11/+16 |
| | | |||||
| * | Unify answer formatting | Abinoam Praxedes Marques Jr | 2015-05-20 | 1 | -1/+1 |
| | | |||||
| * | Remove jruby conditionals | Abinoam Praxedes Marques Jr | 2015-05-20 | 1 | -5/+1 |
| | | |||||
| * | Extract Question#get_echo | Abinoam Praxedes Marques Jr | 2015-05-20 | 1 | -7/+11 |
| | |