tty-option 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +1200 -488
- data/lib/tty/option/conversions.rb +27 -17
- data/lib/tty/option/deep_dup.rb +43 -19
- data/lib/tty/option/errors.rb +33 -3
- data/lib/tty/option/formatter.rb +364 -69
- data/lib/tty/option/param_permitted.rb +7 -3
- data/lib/tty/option/param_validation.rb +124 -20
- data/lib/tty/option/parameter.rb +2 -1
- data/lib/tty/option/parser/options.rb +6 -1
- data/lib/tty/option/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b473052889e94aa53877288da8ad830387161bbfff5ed597fe7ee627f49733
|
4
|
+
data.tar.gz: '00864bc5efb5edc98530aaf3cd703ca7acc0c09e7bc7981e4db2b5f2f1ceb22d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e424023712581be249787dc19ba915c57adf7a95b97992cbb7ee47f9cb2b7e21e8da81b42ece107b76b38dea18c849fc21fbbab4ba10715438a32240af99c1a0
|
7
|
+
data.tar.gz: 64917726d927190bdb7ab6e4d62f019823328931906340f7de3b087e29691adbd3b8538e6c3e0bca7fa127087dc0387debe9ec79835f3baef0373d1d8b8604dd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.3.0] - 2023-05-29
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change permit setting to work with parameters converted to an array or a hash
|
7
|
+
* Change formatting of a hash value in parameter validation error message
|
8
|
+
* Change array and hash conversions to work with non-string values
|
9
|
+
* Change date conversion to work with date objects
|
10
|
+
* Change pathname conversion to only work with strings and pathname objects
|
11
|
+
* Change regexp conversion to only work with strings and regexp objects
|
12
|
+
* Change uri conversion to work with uri objects
|
13
|
+
* Change deep cloning to stop making copies of unbound methods
|
14
|
+
* Change deep cloning to copy objects with the same identity only once
|
15
|
+
* Change deep cloning to work with recursive arrays and hashes
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
* Fix argument check against permitted values to allow nil value when optional
|
19
|
+
* Fix parsing values provided with abbreviated long option names
|
20
|
+
* Fix any object type to symbol conversion failure to return an undefined value
|
21
|
+
* Fix parameter validation to stop transforming hash value into an array
|
22
|
+
* Fix help display when formatting only short options
|
23
|
+
* Fix parameter name alignment formatting to ignore hidden parameters
|
24
|
+
* Fix description alignment formatting for parameters with only default or permit
|
25
|
+
* Fix short option name alignment formatting to check whether a long name is set
|
26
|
+
|
3
27
|
## [v0.2.0] - 2021-08-04
|
4
28
|
|
5
29
|
### Added
|
@@ -18,5 +42,6 @@
|
|
18
42
|
|
19
43
|
* Initial implementation and release
|
20
44
|
|
45
|
+
[v0.3.0]: https://github.com/piotrmurach/tty-option/compare/v0.2.0...v0.3.0
|
21
46
|
[v0.2.0]: https://github.com/piotrmurach/tty-option/compare/v0.1.0...v0.2.0
|
22
47
|
[v0.1.0]: https://github.com/piotrmurach/tty-option/compare/95179f0...v0.1.0
|