Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-Package-DeprecationManager-0.17-1.22 RPM for noarch

From OpenSuSE Leap 15.6 for noarch

Name: perl-Package-DeprecationManager Distribution: SUSE Linux Enterprise 15
Version: 0.17 Vendor: SUSE LLC <https://www.suse.com/>
Release: 1.22 Build date: Fri May 25 20:27:31 2018
Group: Development/Libraries/Perl Build host: sheep03
Size: 35928 Source RPM: perl-Package-DeprecationManager-0.17-1.22.src.rpm
Packager: https://www.suse.com/
Url: http://search.cpan.org/dist/Package-DeprecationManager/
Summary: Manage deprecation warnings for your distribution
This module allows you to manage a set of deprecations for one or more
modules.

When you import 'Package::DeprecationManager', you must provide a set of
'-deprecations' as a hash ref. The keys are "feature" names, and the values
are the version when that feature was deprecated.

In many cases, you can simply use the fully qualified name of a subroutine
or method as the feature name. This works for cases where the whole
subroutine is deprecated. However, the feature names can be any string.
This is useful if you don't want to deprecate an entire subroutine, just a
certain usage.

You can also provide an optional array reference in the '-ignore'
parameter.

The values to be ignored can be package names or regular expressions (made
with 'qr//'). Use this to ignore packages in your distribution that can
appear on the call stack when a deprecated feature is used.

As part of the import process, 'Package::DeprecationManager' will export
two subroutines into its caller. It provides an 'import()' sub for the
caller and a 'deprecated()' sub.

The 'import()' sub allows callers of _your_ class to specify an
'-api_version' parameter. If this is supplied, then deprecation warnings
are only issued for deprecations with API versions earlier than the one
specified.

You must call the 'deprecated()' sub in each deprecated subroutine. When
called, it will issue a warning using 'Carp::cluck()'.

The 'deprecated()' sub can be called in several ways. If you do not pass
any arguments, it will generate an appropriate warning message. If you pass
a single argument, this is used as the warning message.

Finally, you can call it with named arguments. Currently, the only allowed
names are 'message' and 'feature'. The 'feature' argument should correspond
to the feature name passed in the '-deprecations' hash.

If you don't explicitly specify a feature, the 'deprecated()' sub uses
'caller()' to identify its caller, using its fully qualified subroutine
name.

A given deprecation warning is only issued once for a given package. This
module tracks this based on both the feature name _and_ the error message
itself. This means that if you provide several different error messages for
the same feature, all of those errors will appear.

Provides

Requires

License

Artistic-2.0

Changelog

* Thu Jun 23 2016 coolo@suse.com
  - updated to 0.17
    see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
    0.17     2016-06-17
    - Remove use of namespace::autoclean.
* Wed Mar 23 2016 coolo@suse.com
  - updated to 0.16
    see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
    0.16     2016-03-21
    - The subs installed into the caller are now named with Sub::Name. This makes
      these subs appear to be part of the caller, as opposed to an import, which
      is what we want, since each installed sub is constructed uniquely for a
      given package.
* Sat Nov 14 2015 coolo@suse.com
  - updated to 0.15
    see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
    0.15     2015-11-13
    - Made this module co-operate with existing import() subs in packages that use
      this module, as long as you use this module last.
* Sun Apr 19 2015 coolo@suse.com
  - updated to 0.14
    see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
    0.14     2015-04-18
    - Use any() from List::Util 1.33+ instead of List::MoreUtils.
* Wed Mar 20 2013 lars@linux-schulserver.de
  - remove Package-DeprecationManager-0.10-Build_n_Test.patch as it
    did not apply to newest version any more - use inline sed instead
* Tue May 29 2012 coolo@suse.com
  - updated to 0.13
    - Fix dist.ini to not add Test::Spelling as a requirement. (Tomas Doran)
    - Fix tests to pass with Carp 1.25. Reported by Andreas Koenig. RT#75520
* Mon Oct 31 2011 pascal.bleser@opensuse.org
  - update to 0.11:
    * allow an empty hash for the -deprecations parameter
* Wed Dec 01 2010 coolo@novell.com
  - switch to perl_requires macro
* Thu Nov 11 2010 chris@computersalat.de
  - recreated by cpanspec 1.78
    o fixed deps
  - reworked Build_n_Test patch
  - noarch pkg
* Tue Nov 02 2010 jw@novell.com
  - updated to 0.10, as 0.04 was too old for perl-Moose 0.19
* Mon Jul 26 2010 pascal.bleser@opensuse.org
  - initial package (0.04)

Files

/usr/lib/perl5/vendor_perl/5.26.1/Package
/usr/lib/perl5/vendor_perl/5.26.1/Package/DeprecationManager.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Package-DeprecationManager
/usr/share/doc/packages/perl-Package-DeprecationManager/CONTRIBUTING.md
/usr/share/doc/packages/perl-Package-DeprecationManager/Changes
/usr/share/doc/packages/perl-Package-DeprecationManager/LICENSE
/usr/share/doc/packages/perl-Package-DeprecationManager/README.md
/usr/share/man/man3/Package::DeprecationManager.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Fri Apr 26 23:30:45 2024