0.051004 -- 2019-11-05
- Work around changed Getopt::Long 2.51 behaviour
Getopt::Long 2.51 fixed its documented behaviour ("--" is kept
in the argument list if "pass_through" is specified). Previous
versions removed it. Term::CLI now checks for the Getopt::Long
version and adapts where necessary.
Files modified:
lib/Term/CLI/Command.pm
- Add perl-generators to BuildRequires
Files modified:
pkg/fedora/perl-Term-CLI.spec
- Fix hint on tagging/pushing.
Files modified:
RELEASING
0.051003 -- 2018-07-11
- POD fixes:
- Minor POD polishing.
Files modified:
lib/Term/CLI.pm
lib/Term/CLI/Command.pm
lib/Term/CLI/Intro.pod
- Fix ::Int -> ::Float in POD.
Files modified:
lib/Term/CLI/Argument/Number/Float.pm
- "bss>" -> "bssh>"
Files modified:
lib/Term/CLI/Tutorial.pod
- Fix examples.
Files modified:
lib/Term/CLI/Tutorial.pod
- fix missing comma on callback option
Files modified:
lib/Term/CLI.pm
0.051002 -- 2018-03-16
- Fix version number.
0.05002 might look like "0.05.2", but is in fact "0.50.20".
Insert a digit to make fix this: "0.051002" translates to
"0.51.2".
Files modified:
lib/**/*.pm
0.05002 -- 2018-03-16
[Bug Fixes]
- Don't "reset_after_signal" after re-throwing.
Files modified:
lib/Term/CLI.pm
0.05001 -- 2018-03-16
[Bug Fixes]
- Fix signal handling
- WINCH is now handled correctly.
- TTIN, TTOU, HUP, and TERM are now handled as well.
Files modified:
lib/Term/CLI.pm
- Fix heuristic =over determination.
Files modified:
lib/Term/CLI/Command/Help.pm
[Features]
- Expand tutorial(s).
Files modified:
tutorial/*.t
lib/Term/CLI/Tutorial.pod
[POD fixes]
- Term::CLI::L10N: Add EXAMPLES and DESCRIPTION.
- Term::CLI::Intro: Include L10N modules and Bool argument class.
- Term::CLI: Bring POD in line with code.
- Term::CLI::L10N::nl: its => it's
[Miscellaneous Changes]
- pkg/fedora/perl-Term-CLI.spec: Fix packager.
- lib/**/*.pm: Reduce length of "#==...==" lines.
- Update POD on signal handling.
Files modified:
lib/Term/CLI.pm
- Fix tutorial file names.
Files modified:
lib/Term/CLI/Tutorial.pod
- Update with dzil build.
Files modified:
MANIFEST
0.04009 -- 2018-03-14
- Use $^X to find current Perl interpreter.
Also, remove "#!" line from "fake pager".
Files modified:
t/065-Term-CLI-Command-Help.t
t/scripts/pager.pl
- Lower versions for FindBin, strict, subs, warnings.
Files modified:
t/*
lib/*
0.04008 -- 2018-03-13
[Bug Fixes]
- Fake pager should drain STDIN before exiting.
This should finally fix the failing test in
t/065-Term-CLI-Command-Help.t
Files modified:
t/scripts/pager.pl
[Other Changes]
- Better check and diagnostics for pager error.
Files modified:
t/065-Term-CLI-Command-Help.t
0.04007 -- 2018-03-13
[Bug Fixes]
- Try to add a "diag" to failing test.
Files modified:
t/065-Term-CLI-Command-Help.t
[Other Changes]
- $SIG instead of $::SIG.
Files modified:
lib/Term/CLI/Command/Help.pm
0.04006 -- 2018-03-12
[Other Changes]
- Lower min. version for Moo, drop Moo::Role version.
Files modified:
lib/**/*.pm
- Remove use of POSIX.
Files modified:
lib/Term/CLI/Argument/Number/Float.pm
Makefile.PL
cpanfile
0.04005 -- 2018-03-12
[Bug Fixes]
- Separate STDOUT/pager output for help a bit more.
Also, set "status" to $? regardless of close() result.
Some tests for status still fail, and I'm suspecting a
race condition, making close() return "true". If this
fails as well, then I'll just skip the test. :-(
Files modified:
lib/Term/CLI/Command/Help.pm
[Other Changes]
- Require specific versions of modules.
Minimal versions come from Debian jessie (8) install. Wheezy has
a version of "Moo" that is too old.
Files modified: (almost all)
- Use MetaProvides::Package in dist.ini
Files modified:
dist.ini
- Clean up MANIFEST and gitignore
Files modified:
MANIFEST.SKIP, MANIFEST, .gitignore
- Add script to extract RPM provides from PM files.
Files added:
scratch/get_rpm_provides.pl
- Fix dependencies and provides.
Files modified:
pkg/fedora/perl-Term-CLI.spec
0.04004 -- 2018-03-10
[Bug Fixes]
- Don't check STDERR on pager error.
Something's off in checking STDERR when running an external
pager. Could be race condition? Anyway, we only care about
propagation of the exit status, so just test that.
Tests work in my dev. environment, but fail about 30-50% of
the time on CPAN testers.
Files modified:
t/065-Term-CLI-Command-Help.t
t/scripts/pager.pl
0.04003 -- 2018-03-09
[Bug Fixes]
- Use custom script for pager error exit.
Running external commands in tests is not as easy
as it seems...
Files added:
t/scripts/pager.pl
Files modified:
t/065-Term-CLI-Command-Help.t
[Other Changes]
- Copy MANIFEST from D::Z build.
Files modified:
dist.ini
- Add MANIFEST from D::Z build.
Files added:
MANIFEST
0.04002 -- 2018-03-09
[Bug Fixes]
- Ignore SIGPIPE in _execute_help -- closes #5
Files modified:
lib/Term/CLI/Command/Help.pm
- Select raw STDOUT for help output.
Files modified:
t/065-Term-CLI-Command-Help.t
- Fix English-centred error message check.
Files modified:
t/075-Term-CLI-History.t
[Features]
- Allow empty "pager" (dump to STDOUT)
Instead of falling back to "cat", fall back to
raw STDOUT printing. An empty pager list will
select STDOUT as well.
Files modified:
lib/Term/CLI/Command/Help.pm
[Other Changes]
- Clean up commented-out code.
Files modified:
lib/Term/CLI/Command/Help.pm
0.04001 -- 2018-03-08
[Features]
- Multi-language support through Locale::Maketext.
Files: many
- Add min_len and max_len restrictions to
Term::CLI::Argument::String.
Files:
lib/Term/CLI/Argument/String.pm
- Improve usage text formatting.
Files:
lib/Term/CLI/Role/HelpText.pm
[New Modules]
- Add Term::CLI::L10N
- Add Term::CLI::L10N::en
- Add Term::CLI::L10N::nl
Files:
lib/Term/CLI/L10N.pm
lib/Term/CLI/L10N/en.pm
lib/Term/CLI/L10N/nl.pm
- Add Term::CLI::Argument::Bool
Files:
lib/Term/CLI/Argument/Bool.pm
[Bug Fixes]
- Fix various (POD and diagnostic message) typos.
- Don't use POSIX's strtod() and strtol() for number conversions;
rely on regex and looks_like_number() instead.
Files:
lib/Term/CLI/Argument/Number.pm
lib/Term/CLI/Argument/Number/Float.pm
lib/Term/CLI/Argument/Number/Int.pm
- Tests now force the 'en' language where necessary.
Error messages are hard to verify without forcing
a particular language.
Files:
lib/Term/CLI/Role/HelpText.pm
- Fix usage text with variable number of arguments.
Files:
lib/Term/CLI/Role/HelpText.pm
- Check SUPER's validate with defined(), not boolean eval.
Files:
lib/Term/CLI/Argument/Enum.pm
- Fix "=over" size in command summary to a maximum.
Files:
lib/Term/CLI/Command/Help.pm
- Fix test on FreeBSD - closes #2
Error message from "cat" on invalid option differs from
Linux to FreeBSD. Just check for "cat:" in the error
message instead.
Files:
t/065-Term-CLI-Command-Help.t
- Fix tests for non-English locales - closes #3
Tests were assuming that external commands
communicate their diagnostics in English.
Files:
t/065-Term-CLI-Command-Help.t
t/075-Term-CLI-History.t
- Turn off "-T"
Files:
t/065-Term-CLI-Command-Help.t
0.03002 -- 2018-02-26
[Bug Fixes]
- Fix float comparision in test -- fixes #1
On Perl installs compiled with -Duselongdouble,
1.23e-4 is 0.000123000000000000008, not 0.000123.
- dist.ini: add dependencies not picked up by AutoPrereqs
[Other Changes]
- Update version and dependencies.
0.03001 -- 2018-02-26
- Switch to using Dist::Zilla.
- Some code cleanups (remove unnecessary "use" clauses).
- Fix some POD pages.
0.02 -- 2018-02-24
- Fix version numbers: package Foo 0.02 { ... }
0.01 -- 2018-02-24
- First release.