Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #263 from JEG2/release_3_0_0_pre_1HEADv3.0.0.pre.1master | Abinoam P. Marques Jr | 2023-04-27 | 4 | -12/+12 |
|\ | | | | | Release 3.0.0.pre.1 | ||||
| * | Remove unsupported rubies from ci.ymlrelease_3_0_0_pre_1 | Abinoam P. Marques Jr | 2023-04-27 | 1 | -5/+0 |
| | | |||||
| * | Update changelog | Abinoam P. Marques Jr | 2023-04-27 | 1 | -5/+10 |
| | | |||||
| * | Bump up version to 3.0.0.pre.1 | Abinoam P. Marques Jr | 2023-04-27 | 1 | -1/+1 |
| | | |||||
| * | Raise Ruby version requirement to 3.0 | Abinoam P. Marques Jr | 2023-04-27 | 1 | -1/+1 |
|/ | | | | | | | | | | | | Ruby 2.7 is tagged End of Life (not even security maintanence) since this month. We (Highline) traditionally try to maintain compatibility with old rubies. But rubies bellow 2.7.1 lack "io/console" or they have incompatibilities. (as discussed in PR #259) So, this EOL of 2.7 signal to us that is time for us to move on. People relying on old versions of Highline will probably face no problem with it. But we will be free to start removing old code that is necessary only for retrocompatibility in newer versions. | ||||
* | Merge pull request #262 from kbrock/silent_tty | Abinoam P. Marques Jr | 2023-04-25 | 2 | -5/+7 |
|\ | | | | | Do not call stty on non-tty | ||||
| * | Do not call stty on non-tty | Keenan Brock | 2023-04-24 | 2 | -3/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When testing on a non-tty (e.g.: github actions), either one of these lines produces an error: ```ruby input.echo = true ask("question", "y") { |q| q.readline = true } ``` The error is produced by ruby internals: ```bash echo | rake | cat ......stty: stdin isn't a terminal...... ``` This change skips the stty calls if the input is not on a tty, so the errors will not be produced. | ||||
| * | Use existing save_stty functionality | Keenan Brock | 2023-04-24 | 1 | -2/+2 |
|/ | | | | | Yes, `save_stty` and `restore_stty` should probably not live in terminal, but they do. No reason to re-implement them. And they handle error cases better. | ||||
* | Merge pull request #260 from abinoam/issue_43 | Abinoam P. Marques Jr | 2023-01-07 | 2 | -0/+41 |
|\ | | | | | Fix #43 - Ctrl-U (erase line) handling | ||||
| * | Add tests for Ctrl-U (erase line) handling | Abinoam P. Marques Jr | 2023-01-06 | 1 | -0/+38 |
| | | |||||
| * | Fix #43 - Handle erase line correctly (CTRL-U) | Abinoam P. Marques Jr | 2023-01-06 | 1 | -0/+3 |
|/ | |||||
* | Merge pull request #259 from abinoam/issue_236 | Abinoam P. Marques Jr | 2023-01-06 | 4 | -2/+17 |
|\ | | | | | Handle Ctrl-C when Question#echo = false (raw_no_echo_mode) | ||||
| * | Add test for raise interrupt with ctrl-c | Abinoam P. Marques Jr | 2023-01-06 | 1 | -0/+14 |
| | | |||||
| * | Update IOConsoleCompatible#getch to io/console signature | Abinoam P. Marques Jr | 2023-01-05 | 1 | -1/+1 |
| | | |||||
| * | Handle interrupts directly at io/console | Abinoam P. Marques Jr | 2023-01-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added to io/console at commit at 24, September, 2019 * https://github.com/ruby/io-console/commit/7cba76561a39722fbcee3a65d4d6b8bc6f15df67 Released in Ruby 2.7.0, released at 25, December, 2019 * https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ Documented at 17, February, 2020 * https://github.com/ruby/io-console/commit/82b630cd79594339d4b05ebe211f47d62dbe1fc5 Documented in Ruby 2.7.1, released at 31, March, 2020 * https://ruby-doc.org/stdlib-2.7.1/libdoc/io/console/rdoc/IO.html#method-i-getch * https://www.ruby-lang.org/en/news/2020/03/31/ruby-2-7-1-released/ | ||||
| * | Handle Ctrl-C when Question#echo = false (raw_no_echo_mode) | Faheetah | 2023-01-04 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #258 from abinoam/issue_246 | Abinoam P. Marques Jr | 2023-01-02 | 6 | -2/+126 |
|\ | | | | | Issue #246 - Add custom validation class option to `Question#validate` | ||||
| * | Update Changelog.md | Abinoam P. Marques Jr | 2023-01-02 | 1 | -1/+5 |
| | | |||||
| * | Add custom parser / custom validation example | Abinoam P. Marques Jr | 2023-01-02 | 1 | -0/+39 |
| | | |||||
| * | Update Question#validate inline documentation | Abinoam P. Marques Jr | 2023-01-02 | 1 | -0/+3 |
| | | |||||
| * | Document custom class validation in Readme | Abinoam P. Marques Jr | 2023-01-02 | 1 | -0/+27 |
| | | |||||
| * | Add test for the new validation class feature | Abinoam P. Marques Jr | 2023-01-02 | 1 | -0/+49 |
| | | |||||
| * | Add dry-types dependency | Abinoam P. Marques Jr | 2023-01-02 | 1 | -0/+1 |
| | | |||||
| * | Enable using a validator class for validation | Abinoam P. Marques Jr | 2023-01-02 | 1 | -1/+2 |
|/ | |||||
* | Merge pull request #257 from abinoam/issue_233 | Abinoam P. Marques Jr | 2023-01-01 | 4 | -7/+60 |
|\ | | | | | Issue #233 - Show Question#default value hint for non String objects | ||||
| * | Update Changelog.md | Abinoam P. Marques Jr | 2023-01-01 | 1 | -0/+4 |
| | | |||||
| * | Document the new Question#default_hint_show | Abinoam P. Marques Jr | 2023-01-01 | 3 | -6/+40 |
| | | |||||
| * | Add test for issue #233 | Abinoam P. Marques Jr | 2023-01-01 | 1 | -1/+16 |
|/ | | | | Show default for non Strings | ||||
* | Merge pull request #256 from abinoam/issue_249 | Abinoam P. Marques Jr | 2023-01-01 | 3 | -5/+22 |
|\ | | | | | Fix #249 - Question#in convert and check_range | ||||
| * | Disentangle check_range step | Abinoam P. Marques Jr | 2022-12-31 | 2 | -2/+2 |
| | | |||||
| * | Check_range even if it's not being converted | Abinoam P. Marques Jr | 2022-12-31 | 1 | -3/+1 |
| | | |||||
| * | Add test for issue #249 | Abinoam P. Marques Jr | 2022-12-31 | 1 | -0/+19 |
|/ | |||||
* | Merge pull request #255 from abinoam/release_2_1_0v2.1.0 | Abinoam P. Marques Jr | 2022-12-31 | 5 | -41/+9 |
|\ | | | | | Release 2.1.0 | ||||
| * | Remove AppVeyor badge and file | Abinoam P. Marques Jr | 2022-12-31 | 2 | -38/+0 |
| | | | | | | | | Because we're testing Windows with GitHub Actions. | ||||
| * | Remove Travis badge and add GitHub Actions badge | Abinoam P. Marques Jr | 2022-12-31 | 1 | -1/+1 |
| | | |||||
| * | Update Changelog.md | Abinoam P. Marques Jr | 2022-12-31 | 1 | -0/+6 |
| | | |||||
| * | Bump up version to 2.1.0 | Abinoam P. Marques Jr | 2022-12-31 | 1 | -1/+1 |
| | | |||||
| * | Bump up required ruby version | Abinoam P. Marques Jr | 2022-12-31 | 1 | -1/+1 |
|/ | | | | To reflect the Ruby versions we are testing against. | ||||
* | Merge pull request #254 from abinoam/experiment_with_github_actions | Abinoam P. Marques Jr | 2022-12-31 | 2 | -10/+26 |
|\ | | | | | Add MacOs, Windows, TruffleRuby and head branches to the GH Actions matrix | ||||
| * | Remove platform restriction for simplecov | Abinoam P. Marques Jr | 2022-12-31 | 1 | -4/+1 |
| | | |||||
| * | Temporarily remove pronto-poper because of incompatibility | Abinoam P. Marques Jr | 2022-12-31 | 1 | -0/+1 |
| | | | | | | | | Let it commented out as a reminder. | ||||
| * | Add MacOS and Windows to the test matrix | Abinoam P. Marques Jr | 2022-12-31 | 1 | -0/+15 |
| | | |||||
| * | Runs GH Actions from an OS matrix | Abinoam P. Marques Jr | 2022-12-31 | 1 | -2/+2 |
| | | | | | | | | So we include Mac and Windows to it. | ||||
| * | Add more Ruby versions to GitHub Actions matrix | Abinoam P. Marques Jr | 2022-12-31 | 1 | -4/+7 |
|/ | |||||
* | Merge pull request #253 from petergoldstein/feature/add_ruby_3_2_to_ci | Abinoam P. Marques Jr | 2022-12-31 | 2 | -2/+2 |
|\ | | | | | Add Ruby 3.2 to the CI matrix | ||||
| * | Remove pronto-poper dependency | Peter Goldstein | 2022-12-31 | 1 | -1/+0 |
| | | |||||
| * | Adds Ruby 3.2 to the CI matrix. Also update checkout action version. | Peter Goldstein | 2022-12-29 | 1 | -1/+2 |
|/ | |||||
* | Remove Ruby 2.0, since rugged no longer builds with it | Peter Goldstein | 2022-12-29 | 1 | -1/+0 |
| | |||||
* | Remove .travis.yml | Peter Goldstein | 2022-12-29 | 1 | -43/+0 |
| | |||||
* | Make test task specific, add a few more rubies | Peter Goldstein | 2022-12-29 | 1 | -2/+7 |
| |