Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump version to 4.8.2v4.8.2 | Lee Jarvis | 2020-07-10 | 2 | -1/+8 |
| | |||||
* | Fix bug with separators around `help: false` opts | Lee Jarvis | 2020-07-10 | 2 | -2/+13 |
| | | | | | | | | | | | The separators rely on the indexes of the options before/after them, but we ignore `help: false` options when building the help string, so all of the positions are messed up. This change avoids ignoring those options during the iteration, and instead just doesn't append the option help to the string. Fixes #253 | ||||
* | Remove v3 reference from README | Lee Jarvis | 2020-05-25 | 1 | -87/+1 |
| | | | | | | Ruby 1.9 is old and so is the v3 branch, so I don't want to encourage using it. The upgrade guide is also not really necessary anymore. Who's using v3? | ||||
* | Bump version to 4.8.1v4.8.1 | Lee Jarvis | 2020-03-31 | 2 | -1/+8 |
| | |||||
* | Merge pull request #251 from tmatilai/keyword_arg | Lee Jarvis | 2020-01-28 | 1 | -1/+1 |
|\ | | | | | Fix one more keyword argument warning | ||||
| * | Fix one more keyword argument warning | Teemu Matilainen | 2020-01-28 | 1 | -1/+1 |
| | | |||||
* | | Add basic test for Slop.parse | Lee Jarvis | 2020-01-28 | 1 | -0/+10 |
|/ | | | | See https://github.com/leejarvis/slop/pull/251 | ||||
* | Bump version to v.8.0v4.8.0 | Lee Jarvis | 2020-01-17 | 2 | -4/+6 |
| | |||||
* | Merge pull request #250 from flavono123/float-scientific-notation | Lee Jarvis | 2020-01-17 | 2 | -3/+30 |
|\ | | | | | FloatOption: Add support for scientific notation and + sign | ||||
| * | admit comments | Hansuk | 2020-01-17 | 2 | -1/+7 |
| | | | | | | | | | | | | | | - https://github.com/leejarvis/slop/pull/250#discussion_r367361652 - https://github.com/leejarvis/slop/pull/250#discussion_r367420001 Signed-off-by: Hansuk <flavono123@gmail.com> | ||||
| * | support scientific nations for float options | Hansuk | 2020-01-16 | 2 | -3/+20 |
| | | | | | | | | | | | | | | - reference: https://stackoverflow.com/questions/638565/parsing-scientific-notation-sensibly - remove the todo comment(no idea for etc) Signed-off-by: Hansuk <flavono123@gmail.com> | ||||
| * | support + sign for float options | Hansuk | 2020-01-16 | 2 | -2/+6 |
|/ | | | | Signed-off-by: Hansuk <flavono123@gmail.com> | ||||
* | Merge pull request #249 from leejarvis/add-changelog-note-about-270 | Olle Jonsson | 2020-01-09 | 1 | -1/+6 |
|\ | | | | | CHANGELOG: Update about adding 2.7.0 to CI | ||||
| * | CHANGELOG: Update about add 2.7.0 to CIadd-changelog-note-about-270 | Olle Jonsson | 2020-01-07 | 1 | -1/+6 |
|/ | | | - Fix a Markdown link | ||||
* | Merge pull request #248 from jylitalo/ruby_2.7.0 | Olle Jonsson | 2020-01-07 | 5 | -9/+10 |
|\ | | | | | Tests on Ruby 2.7.0: avoid warnings; add 2.7.0 to CI | ||||
| * | Added Ruby 2.7.0 to test matrix | Andrew Kane | 2020-01-07 | 1 | -0/+1 |
| | | |||||
| * | Tests on Ruby 2.7.0 | Juha Ylitalo | 2020-01-07 | 4 | -9/+9 |
|/ | |||||
* | Merge pull request #242 from leejarvis/use-jruby-9.2.8.0 | Olle Jonsson | 2019-11-06 | 1 | -4/+6 |
|\ | | | | | CI: Use ruby 2.4.9, 2.5.7, 2.6.5, jruby-9.2.9.0 | ||||
| * | CI: Use jruby-9.2.9.0 | Olle Jonsson | 2019-11-06 | 1 | -1/+1 |
| | | |||||
| * | CI: Use ruby 2.4.9, 2.5.7, 2.6.5use-jruby-9.2.8.0 | Olle Jonsson | 2019-10-02 | 1 | -3/+3 |
| | | |||||
| * | CI: Use 2.4.7, 2.5.6, 2.6.4, and openjdk8 | Olle Jonsson | 2019-09-09 | 1 | -2/+4 |
| | | |||||
| * | CI: Use jruby-9.2.8.0 | Olle Jonsson | 2019-08-16 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #245 from tylermercier/remove-orig_arg | Lee Jarvis | 2019-10-23 | 1 | -1/+0 |
|\ \ | | | | | | | remove unused variable | ||||
| * | | remove unused variable | Tyler Mercier | 2019-10-22 | 1 | -1/+0 |
|/ / | |||||
* | | Update changelog | Lee Jarvis | 2019-09-09 | 1 | -0/+7 |
| | | |||||
* | | Merge pull request #243 from jylitalo/plus_prefix | Lee Jarvis | 2019-09-09 | 2 | -2/+6 |
|\ \ | |/ |/| | Support '+' as prefix for integer | ||||
| * | Test integer with plus sign as prefix | Juha Ylitalo | 2019-08-30 | 1 | -1/+5 |
| | | |||||
| * | Support '+' as prefix for integer | Juha Ylitalo | 2019-08-23 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #240 from leejarvis/fix/update-ci-matrix | Lee Jarvis | 2019-08-05 | 1 | -4/+4 |
|\ | | | | | CI: Use jruby-9.2.7.0, 2.6.3, 2.5.5, 2.4.6 in matrix | ||||
| * | CI: Use 2.6.3fix/update-ci-matrix | Olle Jonsson | 2019-04-18 | 1 | -1/+1 |
| | | |||||
| * | CI: 2.4.6, jruby-9.2.7.0 | Olle Jonsson | 2019-04-10 | 1 | -2/+2 |
| | | |||||
| * | CI: 2.5.5, 2.6.2 | Olle Jonsson | 2019-03-16 | 1 | -2/+2 |
| | | |||||
| * | CI: Use jruby-9.2.6.0, 2.6.1 in matrix | Olle Jonsson | 2019-02-12 | 1 | -2/+2 |
| | | |||||
* | | Bump version to 4.7.0v4.7.0 | Lee Jarvis | 2019-06-29 | 1 | -1/+1 |
| | | |||||
* | | Update changelog | Lee Jarvis | 2019-06-29 | 1 | -2/+4 |
| | | |||||
* | | Merge pull request #241 from kou/fix-unconsumed-argument | Lee Jarvis | 2019-06-29 | 2 | -1/+14 |
|\ \ | |/ |/| | Fix a bug that flag value is processed as flag | ||||
| * | Fix a bug that flag value is processed as flag | Sutou Kouhei | 2019-06-29 | 2 | -1/+14 |
|/ | | | | | | | | If flag value starts with "-", unknown option error is raised. The current flag value check is "orig_arg == opt.value.to_s". There are some objects such as Regexp and Time that input value and its #to_s aren't same. | ||||
* | Tweak README | Lee Jarvis | 2019-01-21 | 1 | -14/+12 |
| | |||||
* | Fix deprecation warning in tests | Lee Jarvis | 2019-01-21 | 1 | -1/+1 |
| | |||||
* | CHANGELOG: Thank Teemu Matilainen for a PR | Olle Jonsson | 2019-01-20 | 1 | -0/+1 |
| | |||||
* | Merge pull request #238 from tmatilai/empty-separator | Olle Jonsson | 2019-01-20 | 2 | -1/+7 |
|\ | | | | | Allow calling `Options#separator` without args, defaulting to an empty string | ||||
| * | Allow calling `Options#separator` without args, defaulting to an empty string | Teemu Matilainen | 2019-01-20 | 2 | -1/+7 |
|/ | | | | | | | | It's clear that we want an empty line when calling `opts.separator` without arguments. Leave the examples in the Readme still for a while with the empty string to avoid confusion when using older versions. | ||||
* | Merge pull request #239 from olleolleolle/fix/ci-give-older-rubies-older-bundler | Olle Jonsson | 2019-01-20 | 1 | -1/+8 |
|\ | | | | | CI: On Rubies < 2.3 install Bundler < 2 | ||||
| * | CI: On Rubies < 2.3 install Bundler < 2 | Olle Jonsson | 2019-01-20 | 1 | -1/+8 |
|/ | |||||
* | Travis: include latest JRuby, latest Ruby | Olle Jonsson | 2018-12-28 | 1 | -1/+3 |
| | |||||
* | CHANGELOG.md: Add feature to Unreleased section | Olle Jonsson | 2018-06-27 | 1 | -0/+7 |
| | |||||
* | Merge pull request #233 from leejarvis/fix-changelog | Olle Jonsson | 2018-06-27 | 1 | -24/+25 |
|\ | | | | | CHANGELOG.md: Linkify, format heading | ||||
| * | CHANGELOG.md: Linkify, format heading | Olle Jonsson | 2018-06-27 | 1 | -24/+25 |
| | | |||||
* | | Merge pull request #232 from giovannibenussi/add-result-fetch | Olle Jonsson | 2018-06-27 | 3 | -9/+49 |
|\ \ | | | | | | | Add Slop::Result#fetch | ||||
| * | | add Slop::Result#fetch | Giovanni Benussi | 2018-06-27 | 3 | -9/+49 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use Slop::Result#clean_key in Slop::Result#option fix typo in Slop::Result#[] and Slop::Result#fetch descriptions handle case when Slop::Result#fetch tries to fetch an option that is not provided and does not have a default value raise Slop::UnknownOption when Slop::Result#fetch tries to fetch an unexisting key set Slop::Result#clean_key method as private remove redundant Slop::Result#fetch tests update description of Slop::Result#fetch test when trying to access an unexisting option update error message when an option is not present on Slop::Result#fetch description of Slop::Result#fetch update expected error message on test for Slop::Result#fetch when an option is not present |