Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump version to 4.10.1HEADv4.10.1master | Lee Jarvis | 2023-02-26 | 1 | -1/+1 |
| | |||||
* | Bump v4.10.1 | Lee Jarvis | 2023-02-26 | 1 | -0/+7 |
| | |||||
* | Fix booleans without validate_type with arguments | Lee Jarvis | 2023-02-26 | 2 | -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-directive | Lee Jarvis | 2023-02-15 | 1 | -1/+0 |
|\ | | | | | Drop unused test_files directive | ||||
| * | Drop unused test_files directive | Olle Jonsson | 2022-01-27 | 1 | -1/+0 |
| | | | | | | RubyGems.org no longer uses test_files for anything. | ||||
* | | Bump version to 4.10.0v4.10.0 | Lee Jarvis | 2023-02-15 | 2 | -1/+6 |
| | | |||||
* | | Merge pull request #278 from heyvito/feat/validate-types | Lee Jarvis | 2023-02-15 | 7 | -8/+121 |
|\ \ | | | | | | | Add support to optional type validation | ||||
| * | | Augment tests for validated types | Victor Gama | 2023-02-15 | 2 | -6/+24 |
| | | | |||||
| * | | Allow singular form 'validate_type' to be provided to Option | Victor Gama | 2023-02-15 | 1 | -1/+1 |
| | | | |||||
| * | | Update README | Victor Gama | 2023-02-15 | 1 | -1/+30 |
| | | | |||||
| * | | Add optional type validation | Victor Gama | 2023-02-15 | 5 | -3/+69 |
|/ / | |||||
* | | Adds Ruby 3.2 to the CI matrix. Updates checkout action version. (#277) | Peter Goldstein | 2022-12-31 | 1 | -2/+2 |
| | | |||||
* | | Bump version to 4.9.3v4.9.3 | Lee Jarvis | 2022-09-30 | 2 | -1/+7 |
| | | |||||
* | | Merge pull request #276 from eugeneotto/fix-explicitly-false-booleans | Lee Jarvis | 2022-09-30 | 3 | -4/+14 |
|\ \ | | | | | | | Fix explicitly false booleans | ||||
| * | | Fix explicitly false booleans | Eugene Otto | 2022-09-30 | 3 | -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.2 | Lee Jarvis | 2022-03-26 | 2 | -1/+7 |
| | | |||||
* | | Merge pull request #275 from ConnorWGarvey/equals | Lee Jarvis | 2022-03-26 | 2 | -10/+19 |
|\ \ | |/ |/| | Handle strings containing = | ||||
| * | Handle strings containing = | Connor Garvey | 2022-03-10 | 2 | -10/+19 |
|/ | |||||
* | Merge pull request #273 from petergoldstein/feature/add_ruby_3_0_and_3_1 | Lee Jarvis | 2022-01-27 | 1 | -1/+1 |
|\ | | | | | Add Ruby 3.0 and 3.1 to the CI matrix | ||||
| * | Add Ruby 3.0 and 3.1 to the CI matrix | Peter Goldstein | 2022-01-26 | 1 | -1/+1 |
|/ | |||||
* | Remove .travis.yml | Lee Jarvis | 2021-06-15 | 1 | -30/+0 |
| | | | | https://github.com/leejarvis/slop/issues/258 | ||||
* | Update README with GitHub Actions CI badge | Lee Jarvis | 2021-06-15 | 1 | -1/+1 |
| | |||||
* | Increase CI Ruby Matrix | Lee Jarvis | 2021-06-15 | 1 | -1/+1 |
| | |||||
* | Create CI Action Workflow | Lee Jarvis | 2021-06-15 | 1 | -0/+35 |
| | |||||
* | CI: Use JRuby 9.2.18.0 | Olle Jonsson | 2021-06-11 | 1 | -1/+1 |
| | |||||
* | Bump version to 4.9.1v4.9.1 | Lee Jarvis | 2021-05-28 | 2 | -1/+8 |
| | |||||
* | Add support for --opt="" for blank arguments | Lee Jarvis | 2021-05-28 | 2 | -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 Jonsson | 2021-05-20 | 1 | -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 Jonsson | 2021-05-20 | 1 | -1/+3 |
| | | | | | * README: Clarify how to enter an empty array [ci skip] | ||||
* | Update changelogv4.9.0 | Lee Jarvis | 2021-05-11 | 1 | -0/+3 |
| | |||||
* | Merge pull request #255 from MadBomber/madbomber_frozen_string_exception_fix | Lee Jarvis | 2021-05-11 | 1 | -3/+3 |
|\ | | | | | changed str << to str += | ||||
| * | changed str << to str += | Dewayne VanHoozer | 2020-09-05 | 1 | -3/+3 |
| | | |||||
* | | Bump version and update changelog | Lee Jarvis | 2021-05-11 | 2 | -1/+7 |
| | | |||||
* | | Merge pull request #263 from threemachines/symbols | Lee Jarvis | 2021-05-11 | 3 | -2/+40 |
|\ \ | | | | | | | Add symbols to option types | ||||
| * | | Add simple tests for StringOption | Joe Gracyk | 2021-05-10 | 1 | -0/+14 |
| | | | |||||
| * | | Add symbols to option types | Joe Gracyk | 2021-05-10 | 3 | -2/+26 |
|/ / | |||||
* | | CI: Use JRuby 9.2.16.0 | Olle Jonsson | 2021-03-05 | 1 | -1/+1 |
| | | |||||
* | | CI: Use latest JRuby 9.2 | Olle Jonsson | 2021-03-01 | 1 | -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 Jonsson | 2021-01-14 | 1 | -1/+1 |
|\ \ | |||||
| * | | CI: Use JRuby 9.2.14.0 | Olle Jonsson | 2021-01-14 | 1 | -1/+1 |
| | | | |||||
| * | | CI: Use jruby-9.2.11.1ci-jruby-new | Olle Jonsson | 2020-03-25 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #257 from gogainda/patch-1 | Olle Jonsson | 2021-01-14 | 1 | -0/+1 |
|\ \ \ | |_|/ |/| | | Add Truffleruby to CI | ||||
| * | | Update .travis.yml | Igor Victor | 2021-01-13 | 1 | -0/+1 |
|/ / | |||||
* | | 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 |