2013-10-01 06:41:00 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Type-Tiny
|
|
|
|
#
|
Accepting request 1278632 from devel:languages:perl:autoupdate
- updated to 2.008002
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.008002 2025-04-30
[ Bug Fixes ]
- MooseX-Types 0.51 broke Type::Tiny's ability to reliably detect if Moose
types were being used. This release fixes that.
Graham Knop++
2.008001 2025-04-15
[ Bug Fixes ]
- The Optional type constraint on its own, will now be treated the same as
Optional[Any]. Previously when used for named parameters, it would fail
to generate predicate methods.
2.008000 2025-03-31
[ Packaging ]
- Repackaged with a stable version number.
2.007_010 2025-03-23
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `is_wrapper` option and checks
no warnings are thrown in its test suite. That option is now silently
allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
2.007_009 2025-03-21
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `mite_signature` option and
checks no warnings are thrown in its test suite. That option is now
silently allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
[ Documentation ]
- Fix documentation for the coercion_generator attribute of Type::Tiny.
[ Other ]
- Added: Type::Params now has a per-parameter `default_on_undef` option.
- Added: Types::Standard::ArrayRef can now export shortcuts for
parameterized versions of the ArrayRef type constraint.
- Added: Types::Standard::CycleTuple can now export shortcuts for
parameterized versions of the CycleTuple type constraint.
- Added: Types::Standard::Dict can now export shortcuts for parameterized
versions of the Dict type constraint.
- Added: Types::Standard::HashRef can now export shortcuts for
parameterized versions of the HashRef type constraint.
- Added: Types::Standard::Map can now export shortcuts for parameterized
versions of the Map type constraint.
- Added: Types::Standard::ScalarRef can now export shortcuts for
parameterized versions of the ScalarRef type constraint.
- Added: Types::Standard::StrMatch can now export shortcuts for
parameterized versions of the StrMatch type constraint.
- Added: Types::Standard::Tuple can now export shortcuts for parameterized
versions of the Tuple type constraint.
- Added: When creating 'multi' signatures with Type::Params, the different
alternatives can now be given a string identifier.
2.007_008 2025-03-20
[ Bug Fixes ]
- Expressing return types for Type::Params as strings now works as
documented.
[ Documentation ]
- Use Perl's new `try` feature instead of Try::Tiny in SYNOPSIS for
Error::TypeTiny.
[ Test Suite ]
- Improved tests for the `ArgsObject` type constraint which is optionally
exported by Type::Params.
- Improved tests for the `goto_next` feature of Type::Params.
[ Other ]
- Added: Error::TypeTiny::WrongNumberOfParameters now has a `target`
attribute indicating what thing you provided the wrong number of
parameters for.
- Added: There's now a
Type::Tiny::check_parameter_count_for_parameterized_type utility
function intended to be used for parameterizable types to throw an error
when parameterized with the wrong number of parameters.
- Parameterizable types defined by Types::Standard, Types::Common::String,
Types::Common::Numeric, and Type::Params will throw an
Error::TypeTiny::WrongNumberOfParameters exception if parameterized with
the wrong number of parameters.
- Passing unknown options to Type::Params functions will now result in
warnings.
2.007_007 2025-03-18
[ Bug Fixes ]
- Localize $@ before stringifying Error::TypeTiny objects.
Karen Etheridge++
2.007_006 2025-03-14
- Added: Types::Standard::Dict::combine() function.
Branislav Zahradník++
- Type::Params named_to_list option now accepts blessed boolean objects.
Certain other options should be more permissive accepting them too.
XSven++
- Types::TypeTiny::BoolLike now accepts boolean.pm's bools.
Benct Philip Jonsson++
2.007_005 2025-03-07
[ Documentation ]
- Minor fixes and improvements for `Type::Params` documentation.
2.007_004 2025-03-07
[ Bug Fixes ]
- Avoid the `//` operator in `Type::Params::Parameter` as it isn't
supported in Perl 5.8. Fixes bug introduced in 2.007_003.
- Use `List::Util::sum` instead of `List::Util::sum0` which doesn't exist
in some older versions of List::Util. Fixes bug introduced in 2.007_003.
[ Documentation ]
- Major rewrite of `Type::Params` documentation to prioritize
`signature_for` and modern Perl, and some corresponding adjustments to
`Type::Tiny::Manual`.
[ Other ]
- The `goto_next` option in `Type::Params` is now just called `next`. The
original name is still supported for backwards compatibility.
2.007_003 2025-03-06
[ Documentation ]
- Minor pod fixed and improvements.
- Update copyright dates to 2025.
[ Other ]
- Added: New Type::Params feature allow_dash automatically supports `-foo`
as an alias for `foo`.
- Added: New Type::Params feature list_to_named automatically extracts
named parameters from a list of positional arguments.
- Added: Type::Params optionally exports two shortcut keywords:
`signature_for_func` and `signature_for_method`. The exact behaviour of
these may change in the future.
2.007_002 2024-12-23
[ Documentation ]
- Update most examples to use features (postfix derefs, sub signatures)
from more modern versions of Perl that allow for cleaner, tidier code.
2.007_001 2024-11-24
[ Bug Fixes ]
- If Perl has been built with -Dusequadmath then cowardly refuse to use
Type::Tiny::XS's implementation of is_Int.
Andreas J König++
2.007_000 2024-10-20
- Added: The `signature_for` function in Type::Params now includes most of
the functionality of Return::Type (a separate CPAN distribution not
bundled with Type::Tiny).
- Added: The `signature_for` function in Type::Params now returns a value,
though in most contexts you'll probably want to call it in void context
anyway.
OBS-URL: https://build.opensuse.org/request/show/1278632
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=72
2025-05-24 13:30:09 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2013-10-01 06:41:00 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-15 06:42:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-01 06:41:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-01-12 12:04:34 +00:00
|
|
|
%define cpan_name Type-Tiny
|
2013-10-01 06:41:00 +00:00
|
|
|
Name: perl-Type-Tiny
|
Accepting request 1278632 from devel:languages:perl:autoupdate
- updated to 2.008002
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.008002 2025-04-30
[ Bug Fixes ]
- MooseX-Types 0.51 broke Type::Tiny's ability to reliably detect if Moose
types were being used. This release fixes that.
Graham Knop++
2.008001 2025-04-15
[ Bug Fixes ]
- The Optional type constraint on its own, will now be treated the same as
Optional[Any]. Previously when used for named parameters, it would fail
to generate predicate methods.
2.008000 2025-03-31
[ Packaging ]
- Repackaged with a stable version number.
2.007_010 2025-03-23
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `is_wrapper` option and checks
no warnings are thrown in its test suite. That option is now silently
allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
2.007_009 2025-03-21
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `mite_signature` option and
checks no warnings are thrown in its test suite. That option is now
silently allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
[ Documentation ]
- Fix documentation for the coercion_generator attribute of Type::Tiny.
[ Other ]
- Added: Type::Params now has a per-parameter `default_on_undef` option.
- Added: Types::Standard::ArrayRef can now export shortcuts for
parameterized versions of the ArrayRef type constraint.
- Added: Types::Standard::CycleTuple can now export shortcuts for
parameterized versions of the CycleTuple type constraint.
- Added: Types::Standard::Dict can now export shortcuts for parameterized
versions of the Dict type constraint.
- Added: Types::Standard::HashRef can now export shortcuts for
parameterized versions of the HashRef type constraint.
- Added: Types::Standard::Map can now export shortcuts for parameterized
versions of the Map type constraint.
- Added: Types::Standard::ScalarRef can now export shortcuts for
parameterized versions of the ScalarRef type constraint.
- Added: Types::Standard::StrMatch can now export shortcuts for
parameterized versions of the StrMatch type constraint.
- Added: Types::Standard::Tuple can now export shortcuts for parameterized
versions of the Tuple type constraint.
- Added: When creating 'multi' signatures with Type::Params, the different
alternatives can now be given a string identifier.
2.007_008 2025-03-20
[ Bug Fixes ]
- Expressing return types for Type::Params as strings now works as
documented.
[ Documentation ]
- Use Perl's new `try` feature instead of Try::Tiny in SYNOPSIS for
Error::TypeTiny.
[ Test Suite ]
- Improved tests for the `ArgsObject` type constraint which is optionally
exported by Type::Params.
- Improved tests for the `goto_next` feature of Type::Params.
[ Other ]
- Added: Error::TypeTiny::WrongNumberOfParameters now has a `target`
attribute indicating what thing you provided the wrong number of
parameters for.
- Added: There's now a
Type::Tiny::check_parameter_count_for_parameterized_type utility
function intended to be used for parameterizable types to throw an error
when parameterized with the wrong number of parameters.
- Parameterizable types defined by Types::Standard, Types::Common::String,
Types::Common::Numeric, and Type::Params will throw an
Error::TypeTiny::WrongNumberOfParameters exception if parameterized with
the wrong number of parameters.
- Passing unknown options to Type::Params functions will now result in
warnings.
2.007_007 2025-03-18
[ Bug Fixes ]
- Localize $@ before stringifying Error::TypeTiny objects.
Karen Etheridge++
2.007_006 2025-03-14
- Added: Types::Standard::Dict::combine() function.
Branislav Zahradník++
- Type::Params named_to_list option now accepts blessed boolean objects.
Certain other options should be more permissive accepting them too.
XSven++
- Types::TypeTiny::BoolLike now accepts boolean.pm's bools.
Benct Philip Jonsson++
2.007_005 2025-03-07
[ Documentation ]
- Minor fixes and improvements for `Type::Params` documentation.
2.007_004 2025-03-07
[ Bug Fixes ]
- Avoid the `//` operator in `Type::Params::Parameter` as it isn't
supported in Perl 5.8. Fixes bug introduced in 2.007_003.
- Use `List::Util::sum` instead of `List::Util::sum0` which doesn't exist
in some older versions of List::Util. Fixes bug introduced in 2.007_003.
[ Documentation ]
- Major rewrite of `Type::Params` documentation to prioritize
`signature_for` and modern Perl, and some corresponding adjustments to
`Type::Tiny::Manual`.
[ Other ]
- The `goto_next` option in `Type::Params` is now just called `next`. The
original name is still supported for backwards compatibility.
2.007_003 2025-03-06
[ Documentation ]
- Minor pod fixed and improvements.
- Update copyright dates to 2025.
[ Other ]
- Added: New Type::Params feature allow_dash automatically supports `-foo`
as an alias for `foo`.
- Added: New Type::Params feature list_to_named automatically extracts
named parameters from a list of positional arguments.
- Added: Type::Params optionally exports two shortcut keywords:
`signature_for_func` and `signature_for_method`. The exact behaviour of
these may change in the future.
2.007_002 2024-12-23
[ Documentation ]
- Update most examples to use features (postfix derefs, sub signatures)
from more modern versions of Perl that allow for cleaner, tidier code.
2.007_001 2024-11-24
[ Bug Fixes ]
- If Perl has been built with -Dusequadmath then cowardly refuse to use
Type::Tiny::XS's implementation of is_Int.
Andreas J König++
2.007_000 2024-10-20
- Added: The `signature_for` function in Type::Params now includes most of
the functionality of Return::Type (a separate CPAN distribution not
bundled with Type::Tiny).
- Added: The `signature_for` function in Type::Params now returns a value,
though in most contexts you'll probably want to call it in void context
anyway.
OBS-URL: https://build.opensuse.org/request/show/1278632
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=72
2025-05-24 13:30:09 +00:00
|
|
|
Version: 2.008002
|
2013-10-01 06:41:00 +00:00
|
|
|
Release: 0
|
2018-04-20 13:45:48 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-06-16 14:06:04 +00:00
|
|
|
Summary: Tiny, yet Moo(se)-compatible type constraint
|
2020-05-04 05:14:11 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-02-14 09:08:02 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:18 +02:00
|
|
|
Source100: README.md
|
2013-10-01 06:41:00 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
Accepting request 1046495 from devel:languages:perl:autoupdate
- updated to 2.002000
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.002000 2023-01-01 Happy Fibonacci Day! 1/1/23
[ Bug Fixes ]
- When Foo is a parameterized StrMatch type, ensure is_Foo always returns
a single boolean value, even in list context.
Diab Jerius++
[ Documentation ]
- Update NEWS.
- Update copyright dates to 2023.
[ Packaging ]
- Repackage as stable.
2.001_002 2022-12-03
[ Test Suite ]
- Test `t/20-modules/Type-Tiny-Enum/exporter_lexical.t` will now run on
older versions of Perl, provided Lexical::Sub is installed.
[ Packaging ]
- Depend on Exporter::Tiny 1.006000 which offers lexical export support
for older versions of Perl, provided Lexical::Sub is installed.
[ Other ]
- If Type::Params signatures receive multiple unrecognized named
arguments, the error message now lists them using
Type::Utils::english_list() instead of just joining them with commas.
This means that the error message will include 'and' before the last
unrecognized named argument. If Type::Tiny::AvoidCallbacks is set to
true while the signature is compiled, the old behaviour will be
retained.
- Type::Params no longer attempts to figure out the maximum number of
expected arguments to functions which take key-value pairs. This allows
`yourfunc(y=>1,y=>2)` to behave more intuitively, with the function just
seeing the second value for `y`, instead of it throwing an exception
complaining about too many arguments.
2.001_001 2022-10-19
[ Documentation ]
- Typo fix in Type::Tiny::Manual::UsingWithMoo.
[ Other ]
- Type::Library will better detect if two types result in functions with
the same name.
- Type::Tiny::XS will now provide XS implementations of some parameterized
ArrayLike/HashLike types.
- When importing `use Type::Library -util`, Type::Library will now pass
some relevant import options to Type::Utils.
2.001_000 2022-09-29
[ Bug Fixes ]
- Avoid uninitialized warnings when creating a union between an Enum type
and a non-Enum type.
Diab Jerius++
[ Documentation ]
- Clearer documentation of Types::TypeTiny::to_TypeTiny.
[ Test Suite ]
- No longer report Type::Tie version at start of test suite, as Type::Tie
is now bundled.
[ Other ]
- Added: Type::Library now has an undocumented, but tested and hopefully
stable `_remove_type` method.
- Added: Type::Tiny now has a `definition_context` attribute/method
indicating the file and line number where a type constraint was first
defined.
- The list of packages Type::Tiny considers to be 'internal' has been
moved from Error::TypeTiny to Type::Tiny.
- Type::Tiny will now mark particular parts of its guts as readonly.
Currently this is mainly used to prevent people pushing to and popping
from type constraints which overload `@{}`.
OBS-URL: https://build.opensuse.org/request/show/1046495
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=64
2023-01-04 15:33:29 +00:00
|
|
|
BuildRequires: perl(Exporter::Tiny) >= 1.006000
|
2021-05-04 14:39:48 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
Accepting request 1046495 from devel:languages:perl:autoupdate
- updated to 2.002000
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.002000 2023-01-01 Happy Fibonacci Day! 1/1/23
[ Bug Fixes ]
- When Foo is a parameterized StrMatch type, ensure is_Foo always returns
a single boolean value, even in list context.
Diab Jerius++
[ Documentation ]
- Update NEWS.
- Update copyright dates to 2023.
[ Packaging ]
- Repackage as stable.
2.001_002 2022-12-03
[ Test Suite ]
- Test `t/20-modules/Type-Tiny-Enum/exporter_lexical.t` will now run on
older versions of Perl, provided Lexical::Sub is installed.
[ Packaging ]
- Depend on Exporter::Tiny 1.006000 which offers lexical export support
for older versions of Perl, provided Lexical::Sub is installed.
[ Other ]
- If Type::Params signatures receive multiple unrecognized named
arguments, the error message now lists them using
Type::Utils::english_list() instead of just joining them with commas.
This means that the error message will include 'and' before the last
unrecognized named argument. If Type::Tiny::AvoidCallbacks is set to
true while the signature is compiled, the old behaviour will be
retained.
- Type::Params no longer attempts to figure out the maximum number of
expected arguments to functions which take key-value pairs. This allows
`yourfunc(y=>1,y=>2)` to behave more intuitively, with the function just
seeing the second value for `y`, instead of it throwing an exception
complaining about too many arguments.
2.001_001 2022-10-19
[ Documentation ]
- Typo fix in Type::Tiny::Manual::UsingWithMoo.
[ Other ]
- Type::Library will better detect if two types result in functions with
the same name.
- Type::Tiny::XS will now provide XS implementations of some parameterized
ArrayLike/HashLike types.
- When importing `use Type::Library -util`, Type::Library will now pass
some relevant import options to Type::Utils.
2.001_000 2022-09-29
[ Bug Fixes ]
- Avoid uninitialized warnings when creating a union between an Enum type
and a non-Enum type.
Diab Jerius++
[ Documentation ]
- Clearer documentation of Types::TypeTiny::to_TypeTiny.
[ Test Suite ]
- No longer report Type::Tie version at start of test suite, as Type::Tie
is now bundled.
[ Other ]
- Added: Type::Library now has an undocumented, but tested and hopefully
stable `_remove_type` method.
- Added: Type::Tiny now has a `definition_context` attribute/method
indicating the file and line number where a type constraint was first
defined.
- The list of packages Type::Tiny considers to be 'internal' has been
moved from Error::TypeTiny to Type::Tiny.
- Type::Tiny will now mark particular parts of its guts as readonly.
Currently this is mainly used to prevent people pushing to and popping
from type constraints which overload `@{}`.
OBS-URL: https://build.opensuse.org/request/show/1046495
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=64
2023-01-04 15:33:29 +00:00
|
|
|
Requires: perl(Exporter::Tiny) >= 1.006000
|
Accepting request 1278632 from devel:languages:perl:autoupdate
- updated to 2.008002
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.008002 2025-04-30
[ Bug Fixes ]
- MooseX-Types 0.51 broke Type::Tiny's ability to reliably detect if Moose
types were being used. This release fixes that.
Graham Knop++
2.008001 2025-04-15
[ Bug Fixes ]
- The Optional type constraint on its own, will now be treated the same as
Optional[Any]. Previously when used for named parameters, it would fail
to generate predicate methods.
2.008000 2025-03-31
[ Packaging ]
- Repackaged with a stable version number.
2.007_010 2025-03-23
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `is_wrapper` option and checks
no warnings are thrown in its test suite. That option is now silently
allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
2.007_009 2025-03-21
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `mite_signature` option and
checks no warnings are thrown in its test suite. That option is now
silently allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
[ Documentation ]
- Fix documentation for the coercion_generator attribute of Type::Tiny.
[ Other ]
- Added: Type::Params now has a per-parameter `default_on_undef` option.
- Added: Types::Standard::ArrayRef can now export shortcuts for
parameterized versions of the ArrayRef type constraint.
- Added: Types::Standard::CycleTuple can now export shortcuts for
parameterized versions of the CycleTuple type constraint.
- Added: Types::Standard::Dict can now export shortcuts for parameterized
versions of the Dict type constraint.
- Added: Types::Standard::HashRef can now export shortcuts for
parameterized versions of the HashRef type constraint.
- Added: Types::Standard::Map can now export shortcuts for parameterized
versions of the Map type constraint.
- Added: Types::Standard::ScalarRef can now export shortcuts for
parameterized versions of the ScalarRef type constraint.
- Added: Types::Standard::StrMatch can now export shortcuts for
parameterized versions of the StrMatch type constraint.
- Added: Types::Standard::Tuple can now export shortcuts for parameterized
versions of the Tuple type constraint.
- Added: When creating 'multi' signatures with Type::Params, the different
alternatives can now be given a string identifier.
2.007_008 2025-03-20
[ Bug Fixes ]
- Expressing return types for Type::Params as strings now works as
documented.
[ Documentation ]
- Use Perl's new `try` feature instead of Try::Tiny in SYNOPSIS for
Error::TypeTiny.
[ Test Suite ]
- Improved tests for the `ArgsObject` type constraint which is optionally
exported by Type::Params.
- Improved tests for the `goto_next` feature of Type::Params.
[ Other ]
- Added: Error::TypeTiny::WrongNumberOfParameters now has a `target`
attribute indicating what thing you provided the wrong number of
parameters for.
- Added: There's now a
Type::Tiny::check_parameter_count_for_parameterized_type utility
function intended to be used for parameterizable types to throw an error
when parameterized with the wrong number of parameters.
- Parameterizable types defined by Types::Standard, Types::Common::String,
Types::Common::Numeric, and Type::Params will throw an
Error::TypeTiny::WrongNumberOfParameters exception if parameterized with
the wrong number of parameters.
- Passing unknown options to Type::Params functions will now result in
warnings.
2.007_007 2025-03-18
[ Bug Fixes ]
- Localize $@ before stringifying Error::TypeTiny objects.
Karen Etheridge++
2.007_006 2025-03-14
- Added: Types::Standard::Dict::combine() function.
Branislav Zahradník++
- Type::Params named_to_list option now accepts blessed boolean objects.
Certain other options should be more permissive accepting them too.
XSven++
- Types::TypeTiny::BoolLike now accepts boolean.pm's bools.
Benct Philip Jonsson++
2.007_005 2025-03-07
[ Documentation ]
- Minor fixes and improvements for `Type::Params` documentation.
2.007_004 2025-03-07
[ Bug Fixes ]
- Avoid the `//` operator in `Type::Params::Parameter` as it isn't
supported in Perl 5.8. Fixes bug introduced in 2.007_003.
- Use `List::Util::sum` instead of `List::Util::sum0` which doesn't exist
in some older versions of List::Util. Fixes bug introduced in 2.007_003.
[ Documentation ]
- Major rewrite of `Type::Params` documentation to prioritize
`signature_for` and modern Perl, and some corresponding adjustments to
`Type::Tiny::Manual`.
[ Other ]
- The `goto_next` option in `Type::Params` is now just called `next`. The
original name is still supported for backwards compatibility.
2.007_003 2025-03-06
[ Documentation ]
- Minor pod fixed and improvements.
- Update copyright dates to 2025.
[ Other ]
- Added: New Type::Params feature allow_dash automatically supports `-foo`
as an alias for `foo`.
- Added: New Type::Params feature list_to_named automatically extracts
named parameters from a list of positional arguments.
- Added: Type::Params optionally exports two shortcut keywords:
`signature_for_func` and `signature_for_method`. The exact behaviour of
these may change in the future.
2.007_002 2024-12-23
[ Documentation ]
- Update most examples to use features (postfix derefs, sub signatures)
from more modern versions of Perl that allow for cleaner, tidier code.
2.007_001 2024-11-24
[ Bug Fixes ]
- If Perl has been built with -Dusequadmath then cowardly refuse to use
Type::Tiny::XS's implementation of is_Int.
Andreas J König++
2.007_000 2024-10-20
- Added: The `signature_for` function in Type::Params now includes most of
the functionality of Return::Type (a separate CPAN distribution not
bundled with Type::Tiny).
- Added: The `signature_for` function in Type::Params now returns a value,
though in most contexts you'll probably want to call it in void context
anyway.
OBS-URL: https://build.opensuse.org/request/show/1278632
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=72
2025-05-24 13:30:09 +00:00
|
|
|
Recommends: perl(Class::XSAccessor) >= 1.170
|
|
|
|
Recommends: perl(Devel::LexAlias) >= 0.50.0
|
2013-10-01 06:41:00 +00:00
|
|
|
Recommends: perl(Devel::StackTrace)
|
2017-06-20 06:28:45 +00:00
|
|
|
Recommends: perl(Ref::Util::XS) >= 0.100
|
2025-01-06 16:49:06 +00:00
|
|
|
Recommends: perl(Regexp::Util) >= 0.3.0
|
2017-06-09 07:22:59 +00:00
|
|
|
Recommends: perl(Sub::Util)
|
2025-01-06 16:49:06 +00:00
|
|
|
Recommends: perl(Type::Tiny::XS) >= 0.25.0
|
2013-10-01 06:41:00 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2019-12-18 15:55:39 +00:00
|
|
|
This documents the internals of the Type::Tiny class. Type::Tiny::Manual is
|
|
|
|
a better starting place if you're new.
|
2013-10-01 06:41:00 +00:00
|
|
|
|
2019-12-18 15:55:39 +00:00
|
|
|
Type::Tiny is a small class for creating Moose-like type constraint objects
|
|
|
|
which are compatible with Moo, Moose and Mouse.
|
2013-10-01 06:41:00 +00:00
|
|
|
|
|
|
|
%prep
|
Accepting request 1278632 from devel:languages:perl:autoupdate
- updated to 2.008002
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.008002 2025-04-30
[ Bug Fixes ]
- MooseX-Types 0.51 broke Type::Tiny's ability to reliably detect if Moose
types were being used. This release fixes that.
Graham Knop++
2.008001 2025-04-15
[ Bug Fixes ]
- The Optional type constraint on its own, will now be treated the same as
Optional[Any]. Previously when used for named parameters, it would fail
to generate predicate methods.
2.008000 2025-03-31
[ Packaging ]
- Repackaged with a stable version number.
2.007_010 2025-03-23
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `is_wrapper` option and checks
no warnings are thrown in its test suite. That option is now silently
allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
2.007_009 2025-03-21
[ Bug Fixes ]
- Warnings for unknown Type::Params signature options introduced in
2.007_008 broke Mite, which passes it a `mite_signature` option and
checks no warnings are thrown in its test suite. That option is now
silently allowed, even though Type::Params makes no use of it.
<https://metacpan.org/dist/Mite>
[ Documentation ]
- Fix documentation for the coercion_generator attribute of Type::Tiny.
[ Other ]
- Added: Type::Params now has a per-parameter `default_on_undef` option.
- Added: Types::Standard::ArrayRef can now export shortcuts for
parameterized versions of the ArrayRef type constraint.
- Added: Types::Standard::CycleTuple can now export shortcuts for
parameterized versions of the CycleTuple type constraint.
- Added: Types::Standard::Dict can now export shortcuts for parameterized
versions of the Dict type constraint.
- Added: Types::Standard::HashRef can now export shortcuts for
parameterized versions of the HashRef type constraint.
- Added: Types::Standard::Map can now export shortcuts for parameterized
versions of the Map type constraint.
- Added: Types::Standard::ScalarRef can now export shortcuts for
parameterized versions of the ScalarRef type constraint.
- Added: Types::Standard::StrMatch can now export shortcuts for
parameterized versions of the StrMatch type constraint.
- Added: Types::Standard::Tuple can now export shortcuts for parameterized
versions of the Tuple type constraint.
- Added: When creating 'multi' signatures with Type::Params, the different
alternatives can now be given a string identifier.
2.007_008 2025-03-20
[ Bug Fixes ]
- Expressing return types for Type::Params as strings now works as
documented.
[ Documentation ]
- Use Perl's new `try` feature instead of Try::Tiny in SYNOPSIS for
Error::TypeTiny.
[ Test Suite ]
- Improved tests for the `ArgsObject` type constraint which is optionally
exported by Type::Params.
- Improved tests for the `goto_next` feature of Type::Params.
[ Other ]
- Added: Error::TypeTiny::WrongNumberOfParameters now has a `target`
attribute indicating what thing you provided the wrong number of
parameters for.
- Added: There's now a
Type::Tiny::check_parameter_count_for_parameterized_type utility
function intended to be used for parameterizable types to throw an error
when parameterized with the wrong number of parameters.
- Parameterizable types defined by Types::Standard, Types::Common::String,
Types::Common::Numeric, and Type::Params will throw an
Error::TypeTiny::WrongNumberOfParameters exception if parameterized with
the wrong number of parameters.
- Passing unknown options to Type::Params functions will now result in
warnings.
2.007_007 2025-03-18
[ Bug Fixes ]
- Localize $@ before stringifying Error::TypeTiny objects.
Karen Etheridge++
2.007_006 2025-03-14
- Added: Types::Standard::Dict::combine() function.
Branislav Zahradník++
- Type::Params named_to_list option now accepts blessed boolean objects.
Certain other options should be more permissive accepting them too.
XSven++
- Types::TypeTiny::BoolLike now accepts boolean.pm's bools.
Benct Philip Jonsson++
2.007_005 2025-03-07
[ Documentation ]
- Minor fixes and improvements for `Type::Params` documentation.
2.007_004 2025-03-07
[ Bug Fixes ]
- Avoid the `//` operator in `Type::Params::Parameter` as it isn't
supported in Perl 5.8. Fixes bug introduced in 2.007_003.
- Use `List::Util::sum` instead of `List::Util::sum0` which doesn't exist
in some older versions of List::Util. Fixes bug introduced in 2.007_003.
[ Documentation ]
- Major rewrite of `Type::Params` documentation to prioritize
`signature_for` and modern Perl, and some corresponding adjustments to
`Type::Tiny::Manual`.
[ Other ]
- The `goto_next` option in `Type::Params` is now just called `next`. The
original name is still supported for backwards compatibility.
2.007_003 2025-03-06
[ Documentation ]
- Minor pod fixed and improvements.
- Update copyright dates to 2025.
[ Other ]
- Added: New Type::Params feature allow_dash automatically supports `-foo`
as an alias for `foo`.
- Added: New Type::Params feature list_to_named automatically extracts
named parameters from a list of positional arguments.
- Added: Type::Params optionally exports two shortcut keywords:
`signature_for_func` and `signature_for_method`. The exact behaviour of
these may change in the future.
2.007_002 2024-12-23
[ Documentation ]
- Update most examples to use features (postfix derefs, sub signatures)
from more modern versions of Perl that allow for cleaner, tidier code.
2.007_001 2024-11-24
[ Bug Fixes ]
- If Perl has been built with -Dusequadmath then cowardly refuse to use
Type::Tiny::XS's implementation of is_Int.
Andreas J König++
2.007_000 2024-10-20
- Added: The `signature_for` function in Type::Params now includes most of
the functionality of Return::Type (a separate CPAN distribution not
bundled with Type::Tiny).
- Added: The `signature_for` function in Type::Params now returns a value,
though in most contexts you'll probably want to call it in void context
anyway.
OBS-URL: https://build.opensuse.org/request/show/1278632
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Type-Tiny?expand=0&rev=72
2025-05-24 13:30:09 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2013-10-01 06:41:00 +00:00
|
|
|
|
|
|
|
%build
|
2019-01-15 06:42:06 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-01-12 12:04:34 +00:00
|
|
|
%make_build
|
2013-10-01 06:41:00 +00:00
|
|
|
|
|
|
|
%check
|
2019-01-15 06:42:06 +00:00
|
|
|
make test
|
2013-10-01 06:41:00 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-12-18 15:55:39 +00:00
|
|
|
%doc Changes CONTRIBUTING COPYRIGHT CREDITS doap.ttl examples NEWS README
|
2017-02-14 09:08:02 +00:00
|
|
|
%license LICENSE
|
2013-10-01 06:41:00 +00:00
|
|
|
|
|
|
|
%changelog
|