33 Commits

Author SHA256 Message Date
7ce26274d9 Accepting request 1080872 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1080872
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=34
2023-04-20 13:15:06 +00:00
c6b0d13b18 Accepting request 1062200 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1062200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=33
2023-01-31 15:10:02 +00:00
f09ee5dad8 Accepting request 1055886 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1055886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=32
2023-01-04 16:53:57 +00:00
24010a46f7 Accepting request 1007969 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1007969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=31
2022-10-06 05:41:29 +00:00
e81a49b36a Accepting request 1002194 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1002194
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=30
2022-09-09 16:27:55 +00:00
3822179460 Accepting request 997405 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/997405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=29
2022-08-16 15:58:10 +00:00
640c49244a Accepting request 985574 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/985574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=28
2022-06-28 13:23:03 +00:00
6b011af9cb Accepting request 983152 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/983152
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=27
2022-06-16 16:21:12 +00:00
894ad172c2 Accepting request 909910 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/909910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=26
2021-08-03 20:48:50 +00:00
beb74972bf Accepting request 892230 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/892230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=25
2021-05-11 21:04:21 +00:00
7d75cb821d Accepting request 890412 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/890412
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=24
2021-05-04 20:01:26 +00:00
defa022286 Accepting request 862613 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/862613
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=23
2021-01-13 17:21:54 +00:00
7dc372b141 Accepting request 844797 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/844797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=22
2020-10-29 13:52:01 +00:00
744fa77f37 Accepting request 832737 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/832737
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=21
2020-09-07 19:36:06 +00:00
a559e4b1dc Accepting request 829971 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/829971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=20
2020-08-29 18:40:56 +00:00
115dafec3c Accepting request 828477 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/828477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=19
2020-08-21 17:18:26 +00:00
89a5919675 Accepting request 826129 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/826129
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=18
2020-08-13 08:19:49 +00:00
54df703f92 Accepting request 799926 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/799926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=17
2020-05-04 16:39:50 +00:00
d70f0e5b2d Accepting request 786097 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/786097
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=16
2020-03-18 11:45:36 +00:00
5d828b8c45 Accepting request 777643 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/777643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=15
2020-02-20 13:59:51 +00:00
a8e3caebeb Accepting request 769782 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/769782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=14
2020-02-04 18:54:58 +00:00
f7df584e4a Accepting request 768757 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/768757
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=13
2020-01-30 21:37:24 +00:00
2dcdca9d24 Accepting request 764294 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/764294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=12
2020-01-14 20:10:13 +00:00
4e098186e0 Accepting request 759924 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/759924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=11
2019-12-30 11:34:46 +00:00
2f60516731 Accepting request 757893 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/757893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=10
2019-12-21 11:29:40 +00:00
4197824b82 Accepting request 748731 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/748731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=9
2019-11-14 23:37:53 +00:00
02ced93fa3 Accepting request 666109 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/666109
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=8
2019-01-21 09:54:40 +00:00
b93c9f4af8 Accepting request 631786 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/631786
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=7
2018-08-31 08:44:21 +00:00
9f1c33af46 Accepting request 599325 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/599325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=6
2018-04-25 08:00:56 +00:00
bc9860eba4 Accepting request 504923 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/504923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=5
2017-06-21 11:57:13 +00:00
ab3796e71e Accepting request 502486 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/502486
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=4
2017-06-09 13:58:25 +00:00
2a016ffeed Accepting request 457031 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/457031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=3
2017-02-16 16:05:14 +00:00
71c92f8a4f Accepting request 296708 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/296708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Type-Tiny?expand=0&rev=2
2015-04-15 14:27:23 +00:00
4 changed files with 10 additions and 201 deletions

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:697e7f775edfc85f4cf07792d04fd19b09c25285f98f5938e8efc4f74507a128
size 470299

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d12f4c4952e1184b10a45ce45bba8226aad2ec584032dcde6adf5074be6b46e
size 500479

View File

@@ -1,194 +1,3 @@
-------------------------------------------------------------------
Thu May 1 05:35:26 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- 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.
-------------------------------------------------------------------
Mon Sep 30 05:34:15 UTC 2024 - Tina Müller <timueller+perl@suse.de>
- updated to 2.006000
see /usr/share/doc/packages/perl-Type-Tiny/Changes
2.006000 2024-09-24
[ Documentation ]
- Update NEWS.
[ Packaging ]
- Repackage as stable. (See also the changelog for 2.005_001 and
2.005_002.)
2.005_002 2024-09-08
[ Bug Fixes ]
- Fix uninitialized warning messages from Error::TypeTiny when processing
very shallow stack traces.
Diab Jerius++
[ Documentation ]
- Fix minor typo in documentation for named parameters in `Type::Params`.
- Update copyright notices in files to 2024.
[ Other ]
- Improved initialization of variables when they are tied to a type
constraint; initialization to explicit values will work even when not
tied via the `ttie` wrapper function; if no explicit values are
provided, tied scalars will be initialized to the type's `type_default`.
So for example, `tie( my $title, Str )` will initialize `$title` to the
empty string instead of undef, and `tie( my $title, Str, 'Foo' )` will
initialize the variable to 'Foo' as was already implied by
documentation.
Daniel Mita++
XSven++
- Inlining `Int` now calls the XS implementation when available. (The
speed improvement is negligible, but it also may result in small memory
savings.)
Zaki Mughal++
<https://github.com/tobyink/p5-type-tiny/pull/145>
- Removed: Support for the ${^TYPE_PARAMS_MULTISIG} global variable has
been dropped. Using this global variable was deprecated in trial version
1.999_010 and stable version 2.000000, both of which are nearly two
years old. Use ${^_TYPE_PARAMS_MULTISIG} instead.
2.005_001 2024-09-07
[ Documentation ]
- Fixes for various typos.
Yoshikazu Sawa++
<https://github.com/tobyink/p5-type-tiny/pull/155>
- Improve documentation for the initialization of the `coercion` attribute
for `Type::Tiny`.
Diab Jerius++
[ Other ]
- Updated: Smartmatch discontinued beginning perl-5.41.3; Type::Tiny will
no longer attempt to support smartmatch if the Perl version is too high.
James E Keenan++
<https://github.com/tobyink/p5-type-tiny/pull/161>
-------------------------------------------------------------------
Thu Apr 6 03:11:18 UTC 2023 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Type-Tiny
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%define cpan_name Type-Tiny
Name: perl-Type-Tiny
Version: 2.008002
Version: 2.004000
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Tiny, yet Moo(se)-compatible type constraint
@@ -31,13 +31,13 @@ BuildRequires: perl-macros
BuildRequires: perl(Exporter::Tiny) >= 1.006000
BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Exporter::Tiny) >= 1.006000
Recommends: perl(Class::XSAccessor) >= 1.170
Recommends: perl(Devel::LexAlias) >= 0.50.0
Recommends: perl(Class::XSAccessor) >= 1.17
Recommends: perl(Devel::LexAlias) >= 0.05
Recommends: perl(Devel::StackTrace)
Recommends: perl(Ref::Util::XS) >= 0.100
Recommends: perl(Regexp::Util) >= 0.3.0
Recommends: perl(Regexp::Util) >= 0.003
Recommends: perl(Sub::Util)
Recommends: perl(Type::Tiny::XS) >= 0.25.0
Recommends: perl(Type::Tiny::XS) >= 0.025
%{perl_requires}
%description
@@ -48,7 +48,7 @@ Type::Tiny is a small class for creating Moose-like type constraint objects
which are compatible with Moo, Moose and Mouse.
%prep
%autosetup -n %{cpan_name}-%{version} -p1
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor