./devel/p5-Specio, Type constraints and coercions for Perl

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.42, Package name: p5-Specio-0.42, Maintainer: pkgsrc-users

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.


Required to run:
[devel/p5-Role-Tiny] [devel/p5-Ref-Util]

Required to build:
[devel/p5-Test-Fatal]

Master sites:

SHA1: fbda4dac714f26ecbc2ff0eec4401a740644ccfa
RMD160: a93f27dce35e2584f7ac228bf26acad3a0d162f4
Filesize: 99.259 KB

Version history: (Expand)


CVS history: (Expand)


   2017-11-08 21:43:25 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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).
   2017-08-14 21:08:31 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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.
   2017-07-04 11:00:10 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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.
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-05-17 13:05:44 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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.
   2017-02-22 12:43:35 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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.
   2017-02-16 16:10:04 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
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.
   2017-01-30 02:47:44 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
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.