summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 4.10.1HEADv4.10.1masterLee Jarvis2023-02-261-1/+1
|
* Bump v4.10.1Lee Jarvis2023-02-261-0/+7
|
* Fix booleans without validate_type with argumentsLee Jarvis2023-02-262-0/+12
| | | | | | | | | | If we're not using `validate_type`, we shouldn't try to check a boolean flag's argument to check if it's valid (actually, we probably shouldn't even do that WITH using `validate_type`, but that's a separate issue). For now, this will prevent broken boolean flags. Fixes #279
* Merge pull request #274 from leejarvis/drop-unused-directiveLee Jarvis2023-02-151-1/+0
|\ | | | | Drop unused test_files directive
| * Drop unused test_files directiveOlle Jonsson2022-01-271-1/+0
| | | | | | RubyGems.org no longer uses test_files for anything.
* | Bump version to 4.10.0v4.10.0Lee Jarvis2023-02-152-1/+6
| |
* | Merge pull request #278 from heyvito/feat/validate-typesLee Jarvis2023-02-157-8/+121
|\ \ | | | | | | Add support to optional type validation
| * | Augment tests for validated typesVictor Gama2023-02-152-6/+24
| | |
| * | Allow singular form 'validate_type' to be provided to OptionVictor Gama2023-02-151-1/+1
| | |
| * | Update READMEVictor Gama2023-02-151-1/+30
| | |
| * | Add optional type validationVictor Gama2023-02-155-3/+69
|/ /
* | Adds Ruby 3.2 to the CI matrix. Updates checkout action version. (#277)Peter Goldstein2022-12-311-2/+2
| |
* | Bump version to 4.9.3v4.9.3Lee Jarvis2022-09-302-1/+7
| |
* | Merge pull request #276 from eugeneotto/fix-explicitly-false-booleansLee Jarvis2022-09-303-4/+14
|\ \ | | | | | | Fix explicitly false booleans
| * | Fix explicitly false booleansEugene Otto2022-09-303-4/+14
|/ / | | | | | | | | | | | | | | | | | | | | | | When a boolean option is explicitly set to `false`, e.g.: ```bash --option=false ``` it enters slop as the string value `'false'`. This commit updates the `BoolOption` option handler to interpret `'false'` and various other falsey values (`false`, `'false'`, `'no'`, `'off'`, `'0'`) as logically false.
* | Bump version 4.9.2v4.9.2Lee Jarvis2022-03-262-1/+7
| |
* | Merge pull request #275 from ConnorWGarvey/equalsLee Jarvis2022-03-262-10/+19
|\ \ | |/ |/| Handle strings containing =
| * Handle strings containing =Connor Garvey2022-03-102-10/+19
|/
* Merge pull request #273 from petergoldstein/feature/add_ruby_3_0_and_3_1Lee Jarvis2022-01-271-1/+1
|\ | | | | Add Ruby 3.0 and 3.1 to the CI matrix
| * Add Ruby 3.0 and 3.1 to the CI matrixPeter Goldstein2022-01-261-1/+1
|/
* Remove .travis.ymlLee Jarvis2021-06-151-30/+0
| | | | https://github.com/leejarvis/slop/issues/258
* Update README with GitHub Actions CI badgeLee Jarvis2021-06-151-1/+1
|
* Increase CI Ruby MatrixLee Jarvis2021-06-151-1/+1
|
* Create CI Action WorkflowLee Jarvis2021-06-151-0/+35
|
* CI: Use JRuby 9.2.18.0Olle Jonsson2021-06-111-1/+1
|
* Bump version to 4.9.1v4.9.1Lee Jarvis2021-05-282-1/+8
|
* Add support for --opt="" for blank argumentsLee Jarvis2021-05-282-1/+11
| | | | | | | This is especially useful when your default option value is a non-blank value and you want users to be able to overwrite it with a blank value Closes #266
* CI: More complete Travis matrix (#265)Olle Jonsson2021-05-201-5/+6
| | | This adds a 3.0 Ruby, as well as updates the patch versions using information from https://github.com/rvm/rvm/blob/master/config/known#L12
* README: Clarify how to enter an empty array (#267)Olle Jonsson2021-05-201-1/+3
| | | | | * README: Clarify how to enter an empty array [ci skip]
* Update changelogv4.9.0Lee Jarvis2021-05-111-0/+3
|
* Merge pull request #255 from MadBomber/madbomber_frozen_string_exception_fixLee Jarvis2021-05-111-3/+3
|\ | | | | changed str << to str +=
| * changed str << to str +=Dewayne VanHoozer2020-09-051-3/+3
| |
* | Bump version and update changelogLee Jarvis2021-05-112-1/+7
| |
* | Merge pull request #263 from threemachines/symbolsLee Jarvis2021-05-113-2/+40
|\ \ | | | | | | Add symbols to option types
| * | Add simple tests for StringOptionJoe Gracyk2021-05-101-0/+14
| | |
| * | Add symbols to option typesJoe Gracyk2021-05-103-2/+26
|/ /
* | CI: Use JRuby 9.2.16.0Olle Jonsson2021-03-051-1/+1
| |
* | CI: Use latest JRuby 9.2Olle Jonsson2021-03-011-1/+1
| | | | | | Release post: https://www.jruby.org/2021/02/24/jruby-9-2-15-0.html
* | CI: Use jruby-9.2.14.0 (#252)Olle Jonsson2021-01-141-1/+1
|\ \
| * | CI: Use JRuby 9.2.14.0Olle Jonsson2021-01-141-1/+1
| | |
| * | CI: Use jruby-9.2.11.1ci-jruby-newOlle Jonsson2020-03-251-1/+1
| | |
* | | Merge pull request #257 from gogainda/patch-1Olle Jonsson2021-01-141-0/+1
|\ \ \ | |_|/ |/| | Add Truffleruby to CI
| * | Update .travis.ymlIgor Victor2021-01-131-0/+1
|/ /
* | Bump version to 4.8.2v4.8.2Lee Jarvis2020-07-102-1/+8
| |
* | Fix bug with separators around `help: false` optsLee Jarvis2020-07-102-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 READMELee Jarvis2020-05-251-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.1Lee Jarvis2020-03-312-1/+8
|/
* Merge pull request #251 from tmatilai/keyword_argLee Jarvis2020-01-281-1/+1
|\ | | | | Fix one more keyword argument warning
| * Fix one more keyword argument warningTeemu Matilainen2020-01-281-1/+1
| |
* | Add basic test for Slop.parseLee Jarvis2020-01-281-0/+10
|/ | | | See https://github.com/leejarvis/slop/pull/251