Up to [cvs.NetBSD.org] / pkgsrc / devel / p5-Specio
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.30 / (download) - annotate - [select for diffs], Thu Jul 6 09:40:01 2023 UTC (2 months, 2 weeks ago) by wiz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +2 -1
lines
Diff to previous 1.29 (colored)
*: recursive bump for perl 5.38
Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 5 13:19:44 2022 UTC (11 months, 2 weeks ago) by wen
Branch: MAIN
CVS Tags: pkgsrc-2023Q2-base,
pkgsrc-2023Q2,
pkgsrc-2023Q1-base,
pkgsrc-2023Q1,
pkgsrc-2022Q4-base,
pkgsrc-2022Q4
Changes since 1.28: +2 -3
lines
Diff to previous 1.28 (colored)
Update to 0.48 Upstream changes: Changes for version 0.48 - 2022-06-11 Importing types into a class which inherited from another class that had imported types wouldn't work, leaving the child class with no `t()` sub. Patch by Kerin Millar.
Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 28 11:33:14 2022 UTC (14 months, 3 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base,
pkgsrc-2022Q3
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
*: recursive bump for perl 5.36
Revision 1.27 / (download) - annotate - [select for diffs], Mon May 24 19:51:33 2021 UTC (2 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base,
pkgsrc-2022Q2,
pkgsrc-2022Q1-base,
pkgsrc-2022Q1,
pkgsrc-2021Q4-base,
pkgsrc-2021Q4,
pkgsrc-2021Q3-base,
pkgsrc-2021Q3,
pkgsrc-2021Q2-base,
pkgsrc-2021Q2
Changes since 1.26: +2 -1
lines
Diff to previous 1.26 (colored)
*: recursive bump for perl 5.34
Revision 1.26 / (download) - annotate - [select for diffs], Mon Apr 26 15:01:33 2021 UTC (2 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.25: +2 -3
lines
Diff to previous 1.25 (colored)
p5-Specio: update to 0.47. 0.47 2021-01-29 - Change Specio constraint object's stringification overloading to return the type name rather than the default Perl object stringification, which gives you something like "Specio::Constraint::Parameterized=HASH(0x564d258efb48)". Anonymous are special cased to return something you can print. - All types now overload the `eq` comparison operator. Moose expects types to be comparable in this manner when doing role summation. This fixes a bug reported by Martin Gruner. GH #18.
Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 8 13:16:38 2020 UTC (3 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base,
pkgsrc-2021Q1,
pkgsrc-2020Q4-base,
pkgsrc-2020Q4,
pkgsrc-2020Q3-base,
pkgsrc-2020Q3
Changes since 1.24: +2 -2
lines
Diff to previous 1.24 (colored)
*: use MASTER_SITE_PERL_CPAN
Revision 1.24 / (download) - annotate - [select for diffs], Mon Aug 31 18:08:51 2020 UTC (3 years ago) by wiz
Branch: MAIN
Changes since 1.23: +2 -1
lines
Diff to previous 1.23 (colored)
*: bump PKGREVISION for perl-5.32.
Revision 1.23 / (download) - annotate - [select for diffs], Sat Apr 18 01:19:07 2020 UTC (3 years, 5 months ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base,
pkgsrc-2020Q2
Changes since 1.22: +3 -3
lines
Diff to previous 1.22 (colored)
(devel/p5-Specio) Updated 0.44 to 0.46 (pkgsrc) - Add TEST_DEPENDS+= p5-XString (upstream) 0.46 2020-03-14 - No code changes, just fixing a mistake in the POD. Reported by Petr Pisar. Fixes #17. 0.45 2019-11-24 - Made XString a prereq if installing with Perl 5.10+.
Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 27 15:06:41 2019 UTC (3 years, 10 months ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base,
pkgsrc-2020Q1,
pkgsrc-2019Q4-base,
pkgsrc-2019Q4
Changes since 1.21: +4 -5
lines
Diff to previous 1.21 (colored)
(devel/p5-Specio) Updated to 0.44 0.44 2019-08-14 - Replaced the use of B with XString if it is installed. The latter is much smaller and provides the one subroutine from B we cared about. Based on GH #15. Implemented by Nicolas R.
Revision 1.21 / (download) - annotate - [select for diffs], Sun Aug 11 13:20:20 2019 UTC (4 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base,
pkgsrc-2019Q3
Changes since 1.20: +2 -1
lines
Diff to previous 1.20 (colored)
Bump PKGREVISIONs for perl 5.30.0
Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 1 21:35:42 2019 UTC (4 years, 2 months ago) by nia
Branch: MAIN
Changes since 1.19: +2 -2
lines
Diff to previous 1.19 (colored)
Follow some remaining search.cpan.org redirects.
Revision 1.19 / (download) - annotate - [select for diffs], Sun Nov 25 13:17:48 2018 UTC (4 years, 9 months ago) by wen
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base,
pkgsrc-2019Q2,
pkgsrc-2019Q1-base,
pkgsrc-2019Q1,
pkgsrc-2018Q4-base,
pkgsrc-2018Q4
Changes since 1.18: +2 -3
lines
Diff to previous 1.18 (colored)
Update to 0.43 Upstream changes: 0.43 2018-10-26 - Optimized compile-time operations to make Specio itself quicker to load. Specio's load time is a non-trivial part of the load time of DateTime (and presumably other things that use it). Based on https://github.com/houseabsolute/DateTime.pm/issues/85. Reported by versable.
Revision 1.18 / (download) - annotate - [select for diffs], Wed Aug 22 09:44:38 2018 UTC (5 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base,
pkgsrc-2018Q3
Changes since 1.17: +2 -1
lines
Diff to previous 1.17 (colored)
Recursive bump for perl5-5.28.0
Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 8 20:43:24 2017 UTC (5 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base,
pkgsrc-2018Q2,
pkgsrc-2018Q1-base,
pkgsrc-2018Q1,
pkgsrc-2017Q4-base,
pkgsrc-2017Q4
Changes since 1.16: +2 -2
lines
Diff to previous 1.16 (colored)
p5-Specio: update to 0.42. 0.42 2017-11-04 - The Perl library claimed it provided types named LaxVersionStr and StrictVersionStr but they were really named LaxVersion and StrictVersion. The names have now been fixed to match the documentation, so they are LaxVersionStr and StrictVersionStr. 0.41 2017-11-04 - Fixed checks for whether a class is loaded in light of upcoming optimization in Perl 5.28. Fixed by Sprout (GH #12).
Revision 1.16 / (download) - annotate - [select for diffs], Mon Aug 14 19:08:31 2017 UTC (6 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q3-base,
pkgsrc-2017Q3
Changes since 1.15: +3 -2
lines
Diff to previous 1.15 (colored)
Updated p5-Specio to 0.40. 0.40 2017-08-03 - Fixed more bugs with {any,object}_{can,does,isa}_type. When passed a glob (not a globref) they would die in their type check. On Perl 5.16 or earlier, passing a number to an any_* type would also die. - Fixed subification overloading. If Sub::Quote was loaded, this would be used, but any environment variables needed for the closure would not be included. This broke enums, among other things. 0.39 2017-08-02 - Many bug fixes and improves to the types created by {any,object}_{can,does,isa}_type. In some cases, an invalid value could cause an exception in type check itself. In other cases, a value which failed a type check would cause an exception when generating a message describing the failure. These cases have all been fixed. - The messages describing a failure for all of these types have been improved. - You can now create anonymous *_does and *_isa types using the exports from Specio::Declare.
Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 4 09:00:10 2017 UTC (6 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.14: +2 -3
lines
Diff to previous 1.14 (colored)
Updated p5-Specio to 0.38. 0.38 2017-07-01 - Simplify checks for overloading to not call overload::Overloaded(). Just checking the return value of overload::Method() is sufficient.
Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 5 14:23:35 2017 UTC (6 years, 3 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base,
pkgsrc-2017Q2
Changes since 1.13: +2 -1
lines
Diff to previous 1.13 (colored)
Recursive revbump from lang/perl5 5.26.0
Revision 1.13 / (download) - annotate - [select for diffs], Wed May 17 11:05:43 2017 UTC (6 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.12: +4 -2
lines
Diff to previous 1.12 (colored)
Updated p5-Specio to 0.37. 0.37 2017-05-09 - Possible fix for very weird failures seen under threaded Perls with some modules that use Specio.
Revision 1.12 / (download) - annotate - [select for diffs], Wed Feb 22 11:43:35 2017 UTC (6 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base,
pkgsrc-2017Q1
Changes since 1.11: +2 -2
lines
Diff to previous 1.11 (colored)
Updated p5-Specio to 0.36. 0.36 2017-02-19 - Inlined coercions would attempt to coerce for every type which matched the value given, instead of stopping after the first type. Fixed by Graham Knop (GH #11). - Inlined coercions did not include the inline environment variables needed by the type from which the coercion was being performed. Fixed by Graham Knop (GH #8). - When you use the same type repeatedly as coderef (for example, as a constraint with Moo), it will only generated its subified form once, rather than regenerating it each time it is de-referenced. - Added an API to Specio::Subs to allow you to combine type libraries and helper subs in one package for exporting. See the Specio::Exporter docs for more details.
Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 16 15:10:04 2017 UTC (6 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.10: +3 -2
lines
Diff to previous 1.10 (colored)
Updated p5-Specio to 0.35. 0.35 2017-02-12 - Added Specio::Subs, a module which allows you to turn one or more library's types into subroutines like is_Int() and to_Int(). - Added an inline_coercion method to Specio constraints.
Revision 1.10 / (download) - annotate - [select for diffs], Mon Jan 30 01:47:44 2017 UTC (6 years, 7 months ago) by wen
Branch: MAIN
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
Update to 0.34 Upstream changes: 0.34 2017-01-29 - Packages with Specio::Exporter can now specify additional arbitrary subs to exporter. See the Specio::Exporter docs for details. - Importing the same library twice in a given package would throw an exception. The second attempt to import is now ignored.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jan 25 12:19:55 2017 UTC (6 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.8: +2 -2
lines
Diff to previous 1.8 (colored)
Updated p5-Specio to 0.33. 0.33 2017-01-24 - Fixed a mistake in the SYNOPSIS for Specio::Declare. The example for the *_isa_type helpers was not correct. - Removed the alpha warning from the docs. This is being used by enough of my modules on CPAN that I don't plan on doing any big breaking changes without a deprecation first.
Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 16 09:40:39 2017 UTC (6 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
Updated p5-Specio to 0.32. 0.32 2017-01-12 - Fixed a bug in the inlining for types create by any_can_type() and object_can_type(). This inlining mostly worked by accident because of some List::Util XS magic, but this broke under the debugger. Reported by Christian Walde (GH #17) and Chan Wilson (https://github.com/houseabsolute/DateTime.pm/issues/49).
Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 7 13:30:04 2016 UTC (6 years, 10 months ago) by mef
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base,
pkgsrc-2016Q4
Changes since 1.6: +2 -2
lines
Diff to previous 1.6 (colored)
Update devel/p5-Specio to 0.31 ------------------------------ 0.31 2016-11-05 - The stack trace contained by Specio::Exception objects no longer includes a stack frames for the Specio::Exception package. - Made the inline_environment() and description() methods public on type and coercion objects.
Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 18 08:30:11 2016 UTC (6 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.5: +2 -2
lines
Diff to previous 1.5 (colored)
Updated p5-Specio to 0.30. 0.30 2016-10-15 - Fix a bug with the Sub::Quoted sub returned by $type->coercion_sub. If a type had more than one coercion, the generated sub could end up coercing the value to undef some of the time. Depending on hash key ordering, this could end up being a heisenbug that only occured some of the time.
Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 12 12:41:48 2016 UTC (6 years, 11 months ago) by mef
Branch: MAIN
Changes since 1.4: +2 -2
lines
Diff to previous 1.4 (colored)
Updated devel/p5-Specio to 0.29 ------------------------------- 0.29 2016-10-09 - Doc Specio::PartialDump because you may want to use it as part of the failure message generation code for a type.
Revision 1.4 / (download) - annotate - [select for diffs], Wed Oct 5 06:40:27 2016 UTC (6 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.3: +2 -2
lines
Diff to previous 1.3 (colored)
Updated p5-Specio to 0.28. 0.28 2016-10-02 - Added a Test::Specio module to provide helpers for testing Specio libraries. - Fixed another bug with a subtype of special types and inlining. 0.27 2016-10-01 - Cloning a type with coercions defined on it would cause an exception. - Creating a subtype of a special type created by *_isa_type, *_can_type, or *_does_type, or enum would die when trying to inline the type constraint. - Removed the never-documented Any type. - Added documentation for each type in Specio::Library::Builtins.
Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 30 11:11:25 2016 UTC (6 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.2: +3 -3
lines
Diff to previous 1.2 (colored)
Updated p5-Specio to 0.26. 0.26 2016-09-24 - Require Role::Tiny 1.003003. This should fix the test failures some CPANTesters reported with this error: Can't resolve method "???" overloading "&{}" in package "Specio::Constraint::Simple" at Specio::Constraint::Simple->new line 35.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 18 22:42:42 2016 UTC (7 years ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base,
pkgsrc-2016Q3
Changes since 1.1: +4 -4
lines
Diff to previous 1.1 (colored)
Better homepage and comment. fmt DESCR.
Revision 1.1 / (download) - annotate - [select for diffs], Sun Sep 18 07:15:35 2016 UTC (7 years ago) by mef
Branch: MAIN
Import p5-Specio-0.25 as devel/p5-Specio. The Specio distribution provides classes for representing type constraints and coercion, along with syntax sugar for declaring them. Note that this is not a proper type system for Perl. Nothing in this distribution will magically make the Perl interpreter start checking a value's type on assignment to a variable. In fact, there's no built-in way to apply a type to a variable at all. Instead, you can explicitly check a value against a type, and optionally coerce values to that type. My long-term goal is to replace Moose's built-in types and MooseX::Types with this module.