SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-WWW-Shorten-Simple rpm build for : openSUSE Tumbleweed. For other distributions click perl-WWW-Shorten-Simple.

Name : perl-WWW-Shorten-Simple
Version : 0.20.0 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.2 Date : 2015-12-26 11:25:30
Group : Unspecified Source RPM : perl-WWW-Shorten-Simple-0.20.0-1.2.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Factory wrapper around WWW::Shorten to avoid imports
Description :
WWW::Shorten::Simple is a wrapper (factory) around WWW::Shorten so that you
can create an object representing each URL shortening service, instead of
_import_ing \'makeashorterlink\' function into your namespace.

This allows you to call multiple URL shortening services in one package,
for instance to call WWW::Shorten::RevCanonical to extract rev=\"canonical\",
fallback to bit.ly if username and API key are present, and then finally to
TinyURL.

use WWW::Shorten::Simple;

my AATTshorteners = (
WWW::Shorten::Simple->new(\'RevCanonical\'),
WWW::Shorten::Simple->new(\'Bitly\', $bitly_username, $bitly_api_key),
WWW::Shorten::Simple->new(\'TinyURL\'),
);

my $short_url;
for my $shortener (AATTshorteners) {
$short_url = eval { $shortener->shorten($long_url) } # eval to ignore errors
and last;
}

This wrapper works with most WWW::Shorten implementation that implements
the default \'makeashorterlink\' and \'makealongerlink\' functions. The options
should be able to be passed as an optional parameters to \'makeashorterlink\'
function.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-WWW-Shorten-Simple-0.20.0-1.2.noarch.rpm
     

Provides :
perl(WWW::Shorten::Simple)
perl-WWW-Shorten-Simple

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(WWW::Shorten)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/WWW
/usr/lib/perl5/vendor_perl/5.40.0/WWW/Shorten
/usr/lib/perl5/vendor_perl/5.40.0/WWW/Shorten/Simple.pm
/usr/share/doc/packages/perl-WWW-Shorten-Simple
/usr/share/doc/packages/perl-WWW-Shorten-Simple/Changes
/usr/share/doc/packages/perl-WWW-Shorten-Simple/README
/usr/share/licenses/perl-WWW-Shorten-Simple
/usr/share/licenses/perl-WWW-Shorten-Simple/LICENSE
/usr/share/man/man3/WWW::Shorten::Simple.3pm.gz

 
ICM