Commit Graph

12 Commits

Author SHA1 Message Date
Paul Howarth
5d65e3ba4a Update to 0.33
- New upstream release 0.33
  - 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
2017-01-25 11:57:10 +00:00
Paul Howarth
fe4668d1d8 Update to 0.32
- New upstream release 0.32
  - 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 (GH#17,
    https://github.com/houseabsolute/DateTime.pm/issues/49)
2017-01-13 10:05:56 +00:00
Paul Howarth
3cbfb70ff9 Update to 0.31
- New upstream release 0.31
  - The stack trace contained by Specio::Exception objects no longer includes
    stack frames for the Specio::Exception package
  - Made the inline_environment() and description() methods public on type and
    coercion objects
2016-11-07 09:31:51 +00:00
Petr Písař
c9bbef927b Break build cycle: perl-Moose → perl-DateTime → perl-Specio
The Specio will replace Moose type constrain system in the future.
Thus Moose will run-require Specio in the future. Therefore the best
place for cutting the build cycle are perl-Specio optional tests.

There is similar issue with perl-Mouse that build-require perl-Moose
for optional tests. The tests make sense there because Mouse tries to
mimic Moose.
2016-10-20 09:17:36 +02:00
Paul Howarth
5fe1a9fd14 Update to 0.30
- New upstream release 0.30
  - 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 and, depending on hash key ordering,
    this could end up being a heisenbug that only occured some of the time
2016-10-16 12:11:38 +01:00
Paul Howarth
2c72e97d22 Update to 0.29
- New upstream release 0.29
  - Document Specio::PartialDump because you may want to use it as part of the
    failure message generation code for a type
2016-10-10 13:59:00 +01:00
Paul Howarth
bea92ed259 Update to 0.28
- New upstream release 0.28
  - Added a Test::Specio module to provide helpers for testing Specio libraries
  - Fixed another bug with a subtype of special types and inlining
- Introduce sub-package perl-Test-Specio to avoid dependencies on Test::Fatal
  and Test::More in main package
2016-10-03 11:51:56 +01:00
Paul Howarth
7d05dc8b1f Update to 0.27
- New upstream release 0.27
  - 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 type constraint
  - Removed the never-documented Any type
  - Added documentation for each type in Specio::Library::Builtins
2016-10-02 11:19:47 +01:00
Paul Howarth
ec2fe5966a Update to 0.26
- New upstream release 0.26
  - Require Role::Tiny 1.003003, which should fix some test failures
2016-09-26 11:16:21 +01:00
Paul Howarth
9c5205754e Update to 0.25
- New upstream release 0.25
  - Calling {any,object}_{isa,does}_type repeatedly in a package with the same
    class or role name would die; these subs are now special-cased to simply
    return an existing type for the given name when they receive a single
    argument (the name of the class or role)
2016-09-05 09:24:20 +01:00
Paul Howarth
4ae4d0b2b2 Initial import (perl-Specio-0.24-2)
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.
2016-07-22 16:10:25 +01:00
Fedora Release Engineering
bd587bcd60 Initial setup of the repo 2016-07-22 13:19:31 +00:00