summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.0.3v2.0.3Abinoam Praxedes Marques Junior2019-10-112-1/+4
|
* Merge pull request #245 from koic/suppress_warn_for_psych_3_1_0_or_higherAbinoam P. Marques Jr2019-10-111-3/+5
|\ | | | | Suppress `Psych.safe_load` arg warn when using Psych 3.1.0+
| * Suppress `Psych.safe_load` arg warn when using Psych 3.1.0+Koichi ITO2019-10-091-3/+5
|/ | | | | | | | | | | | | | | | | This PR suppresses the following `Psych.safe_load` args warn when using Psych 3.1.0 (Ruby 2.6+). ```console % ruby -v ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin17] % bundle exec rake (snip) /Users/koic/src/github.com/JEG2/highline/test/test_string_extension.rb:44: Passing permitted_classes with the 2nd argument of Psych.safe_load is deprecated. Use keyword argument like Psych.safe_load(yaml, permitted_classes: ...) instead. ```
* Bump up version to 2.0.2v2.0.2Abinoam Praxedes Marques Junior2019-04-082-2/+10
|
* Proudly Merge pull request #243 from The Biggest Mobprogramming Session Ever ↵Abinoam P. Marques Jr2019-04-083-7/+22
|\ | | | | | | | | Ana06/mobprogramming Add new capital_letter option to menu index
| * Add tests and documentation for capital_letterAna María Martínez Gómez2019-04-082-1/+14
| | | | | | | | | | | | | | | | | | | | | | We didn't have time for this during the The Biggest Mobprogramming session ever at RubyConfBY 2019: https://rubyconference.by @dmitriy-kiriyenko implemented it in https://github.com/JEG2/highline/pull/242, so I cherry-picked it from there. Co-authored-by: Dmitriy Kiriyenko <dmitriy.kiriyenko@gmail.com>
| * Move downcase of capital letterAna María Martínez Gómez2019-04-081-2/+2
| | | | | | | | | | Downcase answer after having compared it with the text options to avoid breaking this case.
| * Refactor letter options for indexAna María Martínez Gómez2019-04-081-10/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid code repetition and add comment. Although we didn't have time to implement it, this was suggested during The Biggest Mobprogramming session ever at RubyConfBY 2019: https://rubyconference.by Co-authored-by: Mikhail <imikailoby@gmail.com> Co-authored-by: Alex <alexneisc@gmail.com> Co-authored-by: Eduardo <eduardoj@gmail.com> Co-authored-by: Tung Nguyen <tongueroo@gmail.com> Co-authored-by: Mikhail <mikhaildyomin@gmail.com> Co-authored-by: Gennady <minenkov3108@gmail.com> Co-authored-by: Tatiana <tatiana.karpesh@gmail.com> Co-authored-by: Pavel <bondek777@gmail.com> Co-authored-by: Suhakou Yauheni <shiroginne@gmail.com> Co-authored-by: Vladislav Berdinskiy <vvberdinskiy@yandex.ru> Co-authored-by: Andreyeu Uladzislau <me@vld.by> Co-authored-by: Dan <d.kachur@daarokets.com> Co-authored-by: Denis Defreyne <denis@denis.ws> Co-authored-by: Nikita <bulajnikita@gmail.com> Co-authored-by: Dmitry <dsalahitdinov@gmail.com> Co-authored-by: Aleksey <lesha@kurepin.com> Co-authored-by: Vladislav Kalach <kalach.vladislav@gmail.com> Co-authored-by: Dzmitry <kremez19@gmail.com> Co-authored-by: Tung Nguyen <tongueroo@gmail.com> Co-authored-by: Ilya <ilyabyar@gmail.com> Co-authored-by: Aliaksei Hrechushkin <ahrechushkin@gmail.com> Co-authored-by: Piotr Wasiak <chooosen@gmail.com> Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com> Co-authored-by: Ihar <iharidla@gmail.com> Co-authored-by: Maks <rusakovich94@gmail.com> Co-authored-by: Karol Topolski <ktopolski.it@gmail.com> Co-authored-by: Konstantin Rudy <konstantin.rudy@gmail.com> Co-authored-by: Artyom <artemshibalko@gmail.com> Co-authored-by: Yuri <mkrvch.yury@gmail.com> Co-authored-by: Oleg <o.bekasov96@gmail.com> Co-authored-by: Rostislav Zhuravsky <rostislav.zhuravsky@gmail.com> Co-authored-by: Hanna Novikava <arnikasky@gmail.com> Co-authored-by: Alex <goodniceweb@gmail.com> Co-authored-by: Anton <orangeudav@gmail.com> Co-authored-by: Alexander <alexander.skachko@gmail.com> Co-authored-by: igorpolyakov <igorpolyakov@protonmail.com> Co-authored-by: Inna <ina.karatkova@itechart-group.com> Co-authored-by: Yury Matusevich <yury.a.matusevich@gmail.com> Co-authored-by: Paul Pavlovsky <fatpaher@gmail.com> Co-authored-by: Vlad <vlad.horbachevsky@gmail.com> Co-authored-by: Serge <Kislak7@gmail.com> Co-authored-by: Boris & Anton <Borisanton@mail.ru> Co-authored-by: Karina <rktiurina@gmail.com> Co-authored-by: Andrei Kryuda <a.kryuda@gmail.com> Co-authored-by: Artem <artemkrivonozhko@gmail.com> Co-authored-by: DimaAleks <dimaalekseichik@gmail.com> Co-authored-by: Hanna Kolesnikova <kolesaak@gmail.com> Co-authored-by: Aliaksandr Lomau <lomov.as@gmail.com> Co-authored-by: Eugene Khrantsov <eugene.kstu@gmail.com> Co-authored-by: Dmitry Zhlobo <dima.zhlobo@gmail.com> Co-authored-by: Oleg Ryzhko <ryz.oleg@gmail.com> Co-authored-by: Aleksandr <skyksandr@gmail.com> Co-authored-by: Dmitriy Kiriyenko <dmitriy.kiriyenko@gmail.com>
| * Add new capital_letter option to menu indexAna María Martínez Gómez2019-04-081-1/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To configure menu indexes we could use `:number`, `:letter` and `none` options. The `:letter` option uses lowercase letter. Add a new option `:capital_letter` which uses uppercase letter as indexes. This code was written as it is in The Biggest Mobprogramming session ever at RubyConfBY 2019: https://rubyconference.by Co-authored-by: Mikhail <imikailoby@gmail.com> Co-authored-by: Alex <alexneisc@gmail.com> Co-authored-by: Eduardo <eduardoj@gmail.com> Co-authored-by: Tung Nguyen <tongueroo@gmail.com> Co-authored-by: Mikhail <mikhaildyomin@gmail.com> Co-authored-by: Gennady <minenkov3108@gmail.com> Co-authored-by: Tatiana <tatiana.karpesh@gmail.com> Co-authored-by: Pavel <bondek777@gmail.com> Co-authored-by: Suhakou Yauheni <shiroginne@gmail.com> Co-authored-by: Vladislav Berdinskiy <vvberdinskiy@yandex.ru> Co-authored-by: Andreyeu Uladzislau <me@vld.by> Co-authored-by: Dan <d.kachur@daarokets.com> Co-authored-by: Denis Defreyne <denis@denis.ws> Co-authored-by: Nikita <bulajnikita@gmail.com> Co-authored-by: Dmitry <dsalahitdinov@gmail.com> Co-authored-by: Aleksey <lesha@kurepin.com> Co-authored-by: Vladislav Kalach <kalach.vladislav@gmail.com> Co-authored-by: Dzmitry <kremez19@gmail.com> Co-authored-by: Tung Nguyen <tongueroo@gmail.com> Co-authored-by: Ilya <ilyabyar@gmail.com> Co-authored-by: Aliaksei Hrechushkin <ahrechushkin@gmail.com> Co-authored-by: Piotr Wasiak <chooosen@gmail.com> Co-authored-by: Aaron Patterson <aaron.patterson@gmail.com> Co-authored-by: Ihar <iharidla@gmail.com> Co-authored-by: Maks <rusakovich94@gmail.com> Co-authored-by: Karol Topolski <ktopolski.it@gmail.com> Co-authored-by: Konstantin Rudy <konstantin.rudy@gmail.com> Co-authored-by: Artyom <artemshibalko@gmail.com> Co-authored-by: Yuri <mkrvch.yury@gmail.com> Co-authored-by: Oleg <o.bekasov96@gmail.com> Co-authored-by: Rostislav Zhuravsky <rostislav.zhuravsky@gmail.com> Co-authored-by: Hanna Novikava <arnikasky@gmail.com> Co-authored-by: Alex <goodniceweb@gmail.com> Co-authored-by: Anton <orangeudav@gmail.com> Co-authored-by: Alexander <alexander.skachko@gmail.com> Co-authored-by: igorpolyakov <igorpolyakov@protonmail.com> Co-authored-by: Inna <ina.karatkova@itechart-group.com> Co-authored-by: Yury Matusevich <yury.a.matusevich@gmail.com> Co-authored-by: Paul Pavlovsky <fatpaher@gmail.com> Co-authored-by: Vlad <vlad.horbachevsky@gmail.com> Co-authored-by: Serge <Kislak7@gmail.com> Co-authored-by: Boris & Anton <Borisanton@mail.ru> Co-authored-by: Karina <rktiurina@gmail.com> Co-authored-by: Andrei Kryuda <a.kryuda@gmail.com> Co-authored-by: Artem <artemkrivonozhko@gmail.com> Co-authored-by: DimaAleks <dimaalekseichik@gmail.com> Co-authored-by: Hanna Kolesnikova <kolesaak@gmail.com> Co-authored-by: Aliaksandr Lomau <lomov.as@gmail.com> Co-authored-by: Eugene Khrantsov <eugene.kstu@gmail.com> Co-authored-by: Dmitry Zhlobo <dima.zhlobo@gmail.com> Co-authored-by: Oleg Ryzhko <ryz.oleg@gmail.com> Co-authored-by: Aleksandr <skyksandr@gmail.com> Co-authored-by: Dmitriy Kiriyenko <dmitriy.kiriyenko@gmail.com>
* Merge pull request #241 from olleolleolle/patch-1Abinoam P. Marques Jr2019-04-011-1/+3
|\ | | | | CI: Add 2.6
| * CI: Add 2.6Olle Jonsson2019-04-011-1/+3
|/ | | - also - Remove an old setting from Travis. See https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration
* Merge pull request #240 from olleolleolle/patch-1Abinoam P. Marques Jr2019-03-301-2/+0
|\ | | | | Avoid YARD warning UnknownParam
| * Avoid YARD warning UnknownParamOlle Jonsson2019-03-291-2/+0
|/
* Merge pull request #238 from JEG2/issue_237v2.0.1Abinoam P. Marques Jr2019-01-234-5/+14
|\ | | | | Fix #237 - TTY commands when no tty
| * Bump up version to 2.0.1Abinoam Praxedes Marques Junior2019-01-232-1/+4
| |
| * Apply Rubocop suggestionsAbinoam Praxedes Marques Junior2019-01-232-4/+3
| |
| * Quick fix for #237Abinoam Praxedes Marques Junior2019-01-231-0/+7
|/ | | | | | | Problem when issueing terminal commands like `echo = true` in non tty input/outputs. Like in `echo "asdf" | ruby script.rb`
* Merge pull request #235 from JEG2/release/2.0v2.0.0Abinoam P. Marques Jr2018-06-112-2/+5
|\ | | | | Release 2.0.0
| * Release 2.0.0release/2.0Abinoam Praxedes Marques Junior2018-06-112-2/+5
|/
* Release 2.0.0-develop.16v2.0.0.pre.develop.16Abinoam Praxedes Marques Junior2018-05-122-1/+5
|
* test about menu's shell邹云慧2018-05-121-0/+19
|
* about shell and gather邹云慧2018-05-122-4/+27
|
* Merge pull request #231 from koic/deprecate_safe_level_of_erb_new_in_ruby_2_6Abinoam P. Marques Jr2018-05-123-3/+15
|\ | | | | Deprecate safe_level of ERB.new in Ruby 2.6
| * Deprecate safe_level of ERB.new in Ruby 2.6Koichi ITO2018-05-123-3/+15
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR suppresses the following warnings when using Ruby 2.6.0-dev. ```console % be rake /Users/koic/.rbenv/versions/2.6.0-dev/bin/ruby -w -I"lib:test" -I"/Users/koic/.rbenv/versions/2.6.0-dev/lib/ruby/gems/2.6.0/gems/rake-12.3.1/lib" "/Users/koic/.rbenv/versions/2.6.0-dev/lib/ruby/gems/2.6.0/gems/rake-12.3.1/lib/rake/rake_test_loader.rb" "test/test_answer_converter.rb" "test/test_color_scheme.rb" "test/test_helper.rb" "test/test_highline.rb" "test/test_import.rb" "test/test_list.rb" "test/test_menu.rb" "test/test_paginator.rb" "test/test_question_asker.rb" "test/test_simulator.rb" "test/test_string_extension.rb" "test/test_string_highline.rb" "test/test_style.rb" "test/test_wrapper.rb" Tests will be run under: - HighLine::Terminal::IOConsole - HighLine::VERSION 2.0.0-develop.15 - ruby 2.6.0dev (2018-05-08 trunk 63359) [x86_64-darwin17] Run options: --seed 11307 # Running: .....................................SS..S/Users/koic/src/github.com/JEG2/highline/lib/highline/statement.rb:81: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments. /Users/koic/src/github.com/JEG2/highline/lib/highline/statement.rb:81: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead. /Users/koic/src/github.com/JEG2/highline/lib/highline/list_renderer.rb:95: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments. /Users/koic/src/github.com/JEG2/highline/lib/highline/list_renderer.rb:95: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead. (snip) ``` The interface of `ERB.new` will change from Ruby 2.6. > Add :trim_mode and :eoutvar keyword arguments to ERB.new. > Now non-keyword arguments other than first one are softly deprecated > and will be removed when Ruby 2.5 becomes EOL. [Feature #14256] https://github.com/ruby/ruby/blob/2311087/NEWS#stdlib-updates-outstanding-ones-only This PR uses `ERB.instance_method(:initialize).parameters.assoc(:key)` to switch `ERB.new` interface. Because HighLine supports multiple Ruby versions, it need to use the appropriate interface. This approach is built into Ruby. https://github.com/ruby/ruby/commit/3406c5d
* Merge pull request #229 from JEG2/update/ruby_version_on_travisv2.0.0.pre.develop.15Abinoam P. Marques Jr2018-03-304-8/+15
|\ | | | | Add Ruby 2.5 to travis
| * Add before_install to ruby-head and rbx-3.81Abinoam P. Marques Jr2018-03-301-2/+6
| |
| * Add before_install to 2.5Abinoam P. Marques Jr2018-03-301-0/+3
| |
| * Remove codeclimate meanwhileAbinoam P. Marques Jr2018-03-302-4/+0
| |
| * Bump version to 2.0.0-develop.15 and update Changelogupdate/ruby_version_on_travisAbinoam P. Marques Jr2017-12-282-1/+4
| |
| * Add Ruby 2.5 to travisAbinoam P. Marques Jr2017-12-281-1/+2
|/
* Merge pull request #228 from JEG2/fix/autodetect_non_jruby_gemsAbinoam P. Marques Jr2017-12-121-5/+5
|\ | | | | Blacklist jruby incompatible gems
| * Blacklist jruby incompatible gemsAbinoam P. Marques Jr2017-12-121-5/+5
|/
* Merge pull request #222 from JEG2/issue_221v2.0.0.pre.develop.14Abinoam P. Marques Jr2017-11-226-7/+27
|\ | | | | Fix #221 - Consistent behaviour for agree with readline = true
| * Prepare for v2.0.0-develop.14issue_221Abinoam P. Marques Jr2017-11-212-1/+4
| |
| * Add agree with readline acceptance testAbinoam P. Marques Jr2017-11-211-0/+18
| |
| * Remove now useless codeAbinoam P. Marques Jr2017-11-211-4/+2
| |
| * Prompt treated the same with or without readlineAbinoam P. Marques Jr2017-11-212-2/+2
| |
| * Add completion hints to agree with readlineAbinoam P. Marques Jr2017-11-211-0/+1
|/
* Merge pull request #220 from JEG2/issue_219v2.0.0.pre.develop.13Abinoam P. Marques Jr2017-11-056-13/+56
|\ | | | | Resolves #219 - May set response to anything that answers to :call
| * Bump up version to 2.0.0-develop.13Abinoam P. Marques Jr2017-11-052-2/+5
| | | | | | | | ... and update Changelog.
| * Change rescue for a simple if/elseAbinoam P. Marques Jr2017-11-051-1/+5
| |
| * Move logic to QuestionAbinoam P. Marques Jr2017-11-052-7/+7
| |
| * Implement proc or string for errorAbinoam P. Marques Jr2017-11-051-1/+6
| |
| * Remove unused code. QuestionAsker has its ownAbinoam P. Marques Jr2017-11-051-9/+0
| |
| * Add a failing test for issue #219 dynamicAbinoam P. Marques Jr2017-11-051-0/+21
| |
| * Add test for #219 static responseAbinoam P. Marques Jr2017-11-051-0/+19
|/
* Merge pull request #218 from JEG2/highline_use_colorv2.0.0.pre.develop.12Abinoam P. Marques Jr2017-10-196-4/+23
|\ | | | | Ease transition from 1.7.x to 2.0.x (specially for travis.rb)
| * Add fast_finish: true to .travis.ymlAbinoam P. Marques Jr2017-10-191-0/+1
| |
| * Bump up version to 2.0.0-develop.12Abinoam P. Marques Jr2017-10-192-1/+4
| |
| * Expose IOConsoleCompatibleAbinoam P. Marques Jr2017-10-192-1/+1
| |