Net-CardDAVTalk-0.12/ 000755 000765 000024 00000000000 15245132314 014452 5 ustar 00brong staff 000000 000000 Net-CardDAVTalk-0.12/LICENSE 000644 000765 000024 00000046334 15245122464 015476 0 ustar 00brong staff 000000 000000 This software is copyright (c) 2015-2026 by Fastmail Pty Ltd.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Terms of the Perl programming language system itself
a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
b) the "Artistic License"
--- The GNU General Public License, Version 1, February 1989 ---
This software is Copyright (c) 2015-2026 by Fastmail Pty Ltd.
This is free software, licensed under:
The GNU General Public License, Version 1, February 1989
GNU GENERAL PUBLIC LICENSE
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The license agreements of most software companies try to keep users
at the mercy of those companies. By contrast, our General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. The
General Public License applies to the Free Software Foundation's
software and to any other program whose authors commit to using it.
You can use it for your programs, too.
When we speak of free software, we are referring to freedom, not
price. Specifically, the General Public License is designed to make
sure that you have the freedom to give away or sell copies of free
software, that you receive source code or can get it if you want it,
that you can change the software or use pieces of it in new free
programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of a such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must tell them their rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any program or other work which
contains a notice placed by the copyright holder saying it may be
distributed under the terms of this General Public License. The
"Program", below, refers to any such program or work, and a "work based
on the Program" means either the Program or any work containing the
Program or a portion of it, either verbatim or with modifications. Each
licensee is addressed as "you".
1. You may copy and distribute verbatim copies of the Program's source
code as you receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice and
disclaimer of warranty; keep intact all the notices that refer to this
General Public License and to the absence of any warranty; and give any
other recipients of the Program a copy of this General Public License
along with the Program. You may charge a fee for the physical act of
transferring a copy.
2. You may modify your copy or copies of the Program or any portion of
it, and copy and distribute such modifications under the terms of Paragraph
1 above, provided that you also do the following:
a) cause the modified files to carry prominent notices stating that
you changed the files and the date of any change; and
b) cause the whole of any work that you distribute or publish, that
in whole or in part contains the Program or any part thereof, either
with or without modifications, to be licensed at no charge to all
third parties under the terms of this General Public License (except
that you may choose to grant warranty protection to some or all
third parties, at your option).
c) If the modified program normally reads commands interactively when
run, you must cause it, when started running for such interactive use
in the simplest and most usual way, to print or display an
announcement including an appropriate copyright notice and a notice
that there is no warranty (or else, saying that you provide a
warranty) and that users may redistribute the program under these
conditions, and telling the user how to view a copy of this General
Public License.
d) You may charge a fee for the physical act of transferring a
copy, and you may at your option offer warranty protection in
exchange for a fee.
Mere aggregation of another independent work with the Program (or its
derivative) on a volume of a storage or distribution medium does not bring
the other work under the scope of these terms.
3. You may copy and distribute the Program (or a portion or derivative of
it, under Paragraph 2) in object code or executable form under the terms of
Paragraphs 1 and 2 above provided that you also do one of the following:
a) accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of
Paragraphs 1 and 2 above; or,
b) accompany it with a written offer, valid for at least three
years, to give any third party free (except for a nominal charge
for the cost of distribution) a complete machine-readable copy of the
corresponding source code, to be distributed under the terms of
Paragraphs 1 and 2 above; or,
c) accompany it with the information you received as to where the
corresponding source code may be obtained. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form alone.)
Source code for a work means the preferred form of the work for making
modifications to it. For an executable file, complete source code means
all the source code for all modules it contains; but, as a special
exception, it need not include source code for modules which are standard
libraries that accompany the operating system on which the executable
file runs, or for standard header files or definitions files that
accompany that operating system.
4. You may not copy, modify, sublicense, distribute or transfer the
Program except as expressly provided under this General Public License.
Any attempt otherwise to copy, modify, sublicense, distribute or transfer
the Program is void, and will automatically terminate your rights to use
the Program under this License. However, parties who have received
copies, or rights to use copies, from you under this General Public
License will not have their licenses terminated so long as such parties
remain in full compliance.
5. By copying, distributing or modifying the Program (or any work based
on the Program) you indicate your acceptance of this license to do so,
and all its terms and conditions.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the original
licensor to copy, distribute or modify the Program subject to these
terms and conditions. You may not impose any further restrictions on the
recipients' exercise of the rights granted herein.
7. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of the license which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
the license, you may choose any version ever published by the Free Software
Foundation.
8. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively convey
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
Copyright (C) 19yy
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see .
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19xx name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than `show w' and `show
c'; they could even be mouse-clicks or menu items--whatever suits your
program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
program `Gnomovision' (a program to direct compilers to make passes
at assemblers) written by James Hacker.
, 1 April 1989
Moe Ghoul, President of Vice
That's all there is to it!
--- The Perl Artistic License 1.0 ---
This software is Copyright (c) 2015-2026 by Fastmail Pty Ltd.
This is free software, licensed under:
The Perl Artistic License 1.0
The "Artistic License"
Preamble
The intent of this document is to state the conditions under which a
Package may be copied, such that the Copyright Holder maintains some
semblance of artistic control over the development of the package,
while giving the users of the package the right to use and distribute
the Package in a more-or-less customary fashion, plus the right to make
reasonable modifications.
Definitions:
"Package" refers to the collection of files distributed by the
Copyright Holder, and derivatives of that collection of files
created through textual modification.
"Standard Version" refers to such a Package if it has not been
modified, or has been modified in accordance with the wishes
of the Copyright Holder as specified below.
"Copyright Holder" is whoever is named in the copyright or
copyrights for the package.
"You" is you, if you're thinking about copying or distributing
this Package.
"Reasonable copying fee" is whatever you can justify on the
basis of media cost, duplication charges, time of people involved,
and so on. (You will not be required to justify it to the
Copyright Holder, but only to the computing community at large
as a market that must bear the fee.)
"Freely Available" means that no fee is charged for the item
itself, though there may be fees involved in handling the item.
It also means that recipients of the item may redistribute it
under the same conditions they received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
2. You may apply bug fixes, portability fixes and other modifications
derived from the Public Domain or from the Copyright Holder. A Package
modified in such a way shall still be considered the Standard Version.
3. You may otherwise modify your copy of this Package in any way, provided
that you insert a prominent notice in each changed file stating how and
when you changed that file, and provided that you do at least ONE of the
following:
a) place your modifications in the Public Domain or otherwise make them
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.
b) use the modified Package only within your corporation or organization.
c) rename any non-standard executables so the names do not conflict
with standard executables, which must also be provided, and provide
a separate manual page for each non-standard executable that clearly
documents how it differs from the Standard Version.
d) make other distribution arrangements with the Copyright Holder.
4. You may distribute the programs of this Package in object code or
executable form, provided that you do at least ONE of the following:
a) distribute a Standard Version of the executables and library files,
together with instructions (in the manual page or equivalent) on where
to get the Standard Version.
b) accompany the distribution with the machine-readable source of
the Package with your modifications.
c) give non-standard executables non-standard names, and clearly
document the differences in manual pages (or equivalent), together
with instructions on where to get the Standard Version.
d) make other distribution arrangements with the Copyright Holder.
5. You may charge a reasonable copying fee for any distribution of this
Package. You may charge any fee you choose for support of this
Package. You may not charge a fee for this Package itself. However,
you may distribute this Package in aggregate with other (possibly
commercial) programs as part of a larger (possibly commercial) software
distribution provided that you do not advertise this Package as a
product of your own. You may embed this Package's interpreter within
an executable of yours (by linking); this shall be construed as a mere
form of aggregation, provided that the complete Standard Version of the
interpreter is so embedded.
6. The scripts and library files supplied as input to or produced as
output from the programs of this Package do not automatically fall
under the copyright of this Package, but belong to whoever generated
them, and may be sold commercially, and may be aggregated with this
Package. If such scripts or library files are aggregated with this
Package via the so-called "undump" or "unexec" methods of producing a
binary executable image, then distribution of such an image shall
neither be construed as a distribution of this Package nor shall it
fall under the restrictions of Paragraphs 3 and 4, provided that you do
not represent such an executable image as a Standard Version of this
Package.
7. C subroutines (or comparably compiled subroutines in other
languages) supplied by you and linked into this Package in order to
emulate subroutines and variables of the language defined by this
Package shall not be considered part of this Package, but are the
equivalent of input as in Paragraph 6, provided these subroutines do
not change the language in any way that would cause it to fail the
regression tests for the language.
8. Aggregation of this Package with a commercial distribution is always
permitted provided that the use of this Package is embedded; that is,
when no overt attempt is made to make this Package's interfaces visible
to the end user of the commercial distribution. Such use shall not be
construed as a distribution of this Package.
9. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
The End
Net-CardDAVTalk-0.12/PaxHeader/Changes 000644 000765 000024 00000000210 15245122662 017714 x ustar 00brong staff 000000 000000 30 mtime=1788126642.142170628
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/Changes 000644 000765 000024 00000002544 15245122662 015757 0 ustar 00brong staff 000000 000000 Revision history for Net-CardDAVTalk
0.12 Mon Aug 31 2026
- relicensed from Artistic License 2.0 to the same terms as Perl
itself (Artistic License 1.0 or GPL version 1 or later)
- include a LICENSE file in the distribution
0.11 Mon Apr 6 11:17 2026
- add dependencies on Text::JSContact and Net::DAVTalk
0.10 Sat Apr 4 13:00 2026
- Delegate vCard<=>JSContact conversion to Text::JSContact
- API now uses JSContact Card hashrefs instead of VCard objects
- NewContact/UpdateContact take hashrefs
- GetContact/GetContacts return hashrefs
- VCard.pm no longer used (kept for backward compatibility)
0.09 Fri Mar 2 13:09 2018
- add VCard updates for 'n' setting on groups and VPhoto
0.08 Wed Nov 15 16:04 2017
- always request syncToken and fetch canSync
0.07 Sun Nov 12 18:07 2017
- add BATCHSIZE support to GetContactsMulti
- set $Net::CardDAVTalk::BATCHSIZE = 100 (default, overridable)
0.06 Sun Nov 12 17:45 2017
- add GetContactLinks
- add SyncContactLinks
- add GetContactsMulti
0.05 Wed Feb 15 16:51 2017
- depend on List::MoreUtils, it's not always an included battery
0.04 Wed Feb 15 10:31 2017
- added ACL support from FastMail
0.03 Tue May 3 09:38 2016
- added dependencies to satisfy tests
0.02
- added POD
0.01 Date/time
First version, released on an unsuspecting world.
Net-CardDAVTalk-0.12/MANIFEST 000644 000765 000024 00000000515 15245132314 015604 0 ustar 00brong staff 000000 000000 Changes
ignore.txt
lib/Net/CardDAVTalk.pm
LICENSE
Makefile.PL
MANIFEST This list of files
README
t/00-load.t
t/boilerplate.t
t/manifest.t
t/pod-coverage.t
t/pod.t
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
Net-CardDAVTalk-0.12/PaxHeader/ignore.txt 000644 000765 000024 00000000210 15154401732 020442 x ustar 00brong staff 000000 000000 30 mtime=1773274074.306959647
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/ignore.txt 000644 000765 000024 00000000310 15154401732 016472 0 ustar 00brong staff 000000 000000 Makefile
Makefile.old
Build
Build.bat
META.*
MYMETA.*
.build/
_build/
cover_db/
blib/
inc/
.lwpcookies
.last_cover_stats
nytprof.out
pod2htm*.tmp
pm_to_blib
Net-CardDAVTalk-*
Net-CardDAVTalk-*.tar.gz
Net-CardDAVTalk-0.12/t/ 000755 000765 000024 00000000000 15245132313 014714 5 ustar 00brong staff 000000 000000 Net-CardDAVTalk-0.12/PaxHeader/README 000644 000765 000024 00000000210 15245122632 017276 x ustar 00brong staff 000000 000000 30 mtime=1788126618.303409407
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/README 000644 000765 000024 00000003266 15245122632 015343 0 ustar 00brong staff 000000 000000 Net-CardDAVTalk
The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.
A README file is required for CPAN modules since CPAN extracts the README
file from a module distribution so that people browsing the archive
can use it to get an idea of the module's uses. It is usually a good idea
to provide version information here so that people can decide whether
fixes for the module are worth downloading.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc Net::CardDAVTalk
You can also look for information at:
RT, CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-CardDAVTalk
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Net-CardDAVTalk
CPAN Ratings
http://cpanratings.perl.org/d/Net-CardDAVTalk
Search CPAN
http://search.cpan.org/dist/Net-CardDAVTalk/
LICENSE AND COPYRIGHT
Copyright 2015-2026 Fastmail Pty Ltd.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself; that is, either the GNU General
Public License as published by the Free Software Foundation (version 1,
or at your option any later version), or the Artistic License.
See http://dev.perl.org/licenses/ and the LICENSE file included with
this distribution for more information.
Net-CardDAVTalk-0.12/META.yml 000644 000765 000024 00000001357 15245132313 015730 0 ustar 00brong staff 000000 000000 ---
abstract: 'A library for talking to CardDAV servers'
author:
- 'Bron Gondwana '
build_requires:
Test::More: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.76, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Net-CardDAVTalk
no_index:
directory:
- t
- inc
requires:
Date::Format: '2.24'
File::MMagic: '1.30'
List::MoreUtils: '0.01'
List::Pairwise: '1.00'
Net::DAVTalk: '0.08'
Text::JSContact: '0.01'
Text::VCardFast: '0.07'
XML::Spice: '0.04'
perl: '5.006'
version: '0.12'
x_serialization_backend: 'CPAN::Meta::YAML version 0.020'
Net-CardDAVTalk-0.12/lib/ 000755 000765 000024 00000000000 15245132313 015217 5 ustar 00brong staff 000000 000000 Net-CardDAVTalk-0.12/Makefile.PL 000644 000765 000024 00000001753 15245122553 016436 0 ustar 00brong staff 000000 000000 use 5.006;
use strict;
use warnings FATAL => 'all';
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Net::CardDAVTalk',
AUTHOR => q{Bron Gondwana },
VERSION_FROM => 'lib/Net/CardDAVTalk.pm',
ABSTRACT_FROM => 'lib/Net/CardDAVTalk.pm',
LICENSE => 'Perl_5',
PL_FILES => {},
MIN_PERL_VERSION => 5.006,
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
BUILD_REQUIRES => {
'Test::More' => 0,
},
PREREQ_PM => {
'Net::DAVTalk' => '0.24',
'List::Pairwise' => '1.00',
'List::MoreUtils' => '0.01',
'XML::Spice' => '0.04',
'Net::DAVTalk' => '0.08',
'Text::VCardFast' => '0.07',
'Text::JSContact' => '0.01',
'File::MMagic' => '1.30',
'Date::Format' => '2.24',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Net-CardDAVTalk-*' },
);
Net-CardDAVTalk-0.12/META.json 000644 000765 000024 00000002325 15245132314 016075 0 ustar 00brong staff 000000 000000 {
"abstract" : "A library for talking to CardDAV servers",
"author" : [
"Bron Gondwana "
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 7.76, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : 2
},
"name" : "Net-CardDAVTalk",
"no_index" : {
"directory" : [
"t",
"inc"
]
},
"prereqs" : {
"build" : {
"requires" : {
"Test::More" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"Date::Format" : "2.24",
"File::MMagic" : "1.30",
"List::MoreUtils" : "0.01",
"List::Pairwise" : "1.00",
"Net::DAVTalk" : "0.08",
"Text::JSContact" : "0.01",
"Text::VCardFast" : "0.07",
"XML::Spice" : "0.04",
"perl" : "5.006"
}
}
},
"release_status" : "stable",
"version" : "0.12",
"x_serialization_backend" : "JSON::PP version 4.16"
}
Net-CardDAVTalk-0.12/lib/Net/ 000755 000765 000024 00000000000 15245132313 015745 5 ustar 00brong staff 000000 000000 Net-CardDAVTalk-0.12/lib/Net/PaxHeader/CardDAVTalk.pm 000644 000765 000024 00000000210 15245122602 022265 x ustar 00brong staff 000000 000000 30 mtime=1788126594.951311633
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/lib/Net/CardDAVTalk.pm 000644 000765 000024 00000044407 15245122602 020334 0 ustar 00brong staff 000000 000000 package Net::CardDAVTalk;
use 5.006;
use strict;
use warnings FATAL => 'all';
use Net::DAVTalk;
use base qw(Net::DAVTalk);
use Carp;
use Text::JSContact qw(vcard_to_jscontact jscontact_to_vcard);
use XML::Spice;
use URI::Escape qw(uri_unescape);
use JSON;
=head1 NAME
Net::CardDAVTalk - A library for talking to CardDAV servers
=head1 VERSION
Version 0.11
=cut
our $VERSION = '0.12';
our $BATCHSIZE = 100;
=head1 SYNOPSIS
This module maps from CardDAV to an old version of the FastMail API.
It's mostly useful as an example of how to talk CardDAV and for the
Cyrus IMAP test suite Cassandane.
use Net::CardDAVTalk;
my $foo = Net::CardDAVTalk->new();
...
=head1 SUBROUTINES/METHODS
=head2 $class->new()
Takes the same arguments as Net::DAVTalk and adds the single
namespace:
C => 'urn:ietf:params:xml:ns:carddav'
=cut
sub new {
my ($Class, %Params) = @_;
$Params{homesetns} = 'C';
$Params{homeset} = 'addressbook-home-set';
$Params{wellknown} = 'carddav';
my $Self = $Class->SUPER::new(%Params);
$Self->ns(C => 'urn:ietf:params:xml:ns:carddav');
$Self->ns(CY => 'http://cyrusimap.org/ns/');
return $Self;
}
# Address book methods {{{
=head2 $self->NewAddressBook($Path, %Args)
Creates a new addressbook collection. Requires the full
path (unlike Net::CalDAVTalk, which creates paths by UUID)
and takes a single argument, the name:
e.g.
$CardDAV->NewAddressBook("Default", name => "Addressbook");
=cut
sub NewAddressBook {
my ($Self, $Path, %Args) = @_;
$Path || confess 'New address book path not specified';
$Self->Request(
'MKCOL',
"$Path/",
x('D:mkcol', $Self->NS(),
x('D:set',
x('D:prop',
x('D:resourcetype',
x('D:collection'),
x('C:addressbook'),
),
x('D:displayname', $Args{name}),
),
),
),
);
return $Path;
}
=head2 $self->DeleteAddressBook($Path)
Deletes the addressbook at the given path
e.g.
$CardDAV->DeleteAddressBook("Shared");
=cut
sub DeleteAddressBook {
my ($Self, $Path) = @_;
$Path || confess 'Delete address book path not specified';
$Self->Request(
'DELETE',
"$Path/"
);
return 1;
}
=head2 $self->UpdateAddressBook($Path, %Args)
Like 'new', but for an existing addressbook. For now, can only change
the name.
e.g.
$CardDAV->UpdateAddressBook("Default", name => "My Happy Addressbook");
=cut
sub UpdateAddressBook {
my ($Self, $Path, %Args) = @_;
$Path || confess 'Update address book path not specified';
my @Params;
if (defined $Args{name}) {
push @Params, x('D:displayname', $Args{name});
}
return undef unless @Params;
$Self->Request(
'PROPPATCH',
"$Path/",
x('D:propertyupdate', $Self->NS(),
x('D:set',
x('D:prop',
@Params,
),
),
),
);
return 1;
}
=head2 $self->GetAddressBook($Path, %Args)
Calls 'GetAddressBooks' with the args, and greps for the one with the
matching path.
e.g.
my $AB = $CardDAV->GetAddressBook("Default");
=cut
sub GetAddressBook {
my ($Self, $Id, %Args) = @_;
my $Data = $Self->GetAddressBooks(%Args);
die "Can't read data" unless $Data;
my ($AddressBook) = grep { $_->{path} eq $Id } @$Data;
return $AddressBook;
}
=head2 $self->GetAddressBooks(%Args)
Get all the addressbooks on the server.
Returns an arrayref of hashrefs
e.g.
my $ABs = $CardDAV->GetAddressBooks(Sync => 1);
foreach my $AB (@$ABs) {
say "$AB->{path}: $AB->{name}";
}
=cut
sub GetAddressBooks {
my ($Self, %Args) = @_;
my $props = $Args{Properties} || [];
my $Response = $Self->Request(
'PROPFIND',
'',
x('D:propfind', $Self->NS(),
x('D:prop',
x('D:displayname'),
x('D:resourcetype'),
x('D:current-user-privilege-set'),
x('D:acl'),
x('D:sync-token'),
x('D:supported-report-set'),
@$props,
),
),
Depth => 1,
);
my @AddressBooks;
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
my $NS_CY = $Self->ns('CY');
foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) {
my $HRef = $Response->{"{$NS_D}href"}{content}
|| next;
my $Path = $Self->_unrequest_url($HRef);
foreach my $Propstat (@{$Response->{"{$NS_D}propstat"} || []}) {
next unless $Propstat->{"{$NS_D}prop"}{"{$NS_D}resourcetype"}{"{$NS_C}addressbook"};
# XXX - this is really quite specific and probably wrong-namespaced...
my $Perms = $Propstat->{"{$NS_D}prop"}{"{$NS_D}current-user-privilege-set"}{"{$NS_D}privilege"};
my $CanSync;
my $Report = $Propstat->{"{$NS_D}prop"}{"{$NS_D}supported-report-set"}{"{$NS_D}supported-report"};
$Report = [] unless ($Report and ref($Report) eq 'ARRAY');
foreach my $item (@$Report) {
# XXX - do we want to check the other things too?
$CanSync = 1 if $item->{"{$NS_D}report"}{"{$NS_D}sync-collection"};
}
my @ShareWith;
my $ace = $Propstat->{"{$NS_D}prop"}{"{$NS_D}acl"}{"{$NS_D}ace"};
$ace = [] unless ($ace and ref($ace) eq 'ARRAY');
foreach my $Acl (@$ace) {
next if $Acl->{"{$NS_D}protected"}; # ignore admin ACLs
my $user = uri_unescape($Acl->{"{$NS_D}principal"}{"{$NS_D}href"}{content} // '');
next unless $user =~ m{^/dav/principals/user/([^/]+)};
my $email = $1;
next if $email eq 'admin';
my %ShareObject = (
email => $email,
mayAdmin => $JSON::false,
mayWrite => $JSON::false,
mayRead => $JSON::false,
);
foreach my $item (@{$Acl->{"{$NS_D}grant"}{"{$NS_D}privilege"}}) {
$ShareObject{'mayAdmin'} = $JSON::true if $item->{"{$NS_CY}admin"};
$ShareObject{'mayWrite'} = $JSON::true if $item->{"{$NS_D}write-content"};
$ShareObject{'mayRead'} = $JSON::true if $item->{"{$NS_D}read"};
}
push @ShareWith, \%ShareObject;
}
my %AddressBook = (
href => $HRef,
path => $Path,
name => ($Propstat->{"{$NS_D}prop"}{"{$NS_D}displayname"}{content} || ''),
isReadOnly => (grep { exists $_->{"{$NS_D}write-content"} } @{$Perms || []}) ? $JSON::false : $JSON::true,
mayRead => (grep { exists $_->{"{$NS_D}read"} } @{$Perms || []}) ? $JSON::true : $JSON::false,
mayWrite => (grep { exists $_->{"{$NS_D}write-content"} } @{$Perms || []}) ? $JSON::true : $JSON::false,
mayAdmin => (grep { exists $_->{"{$NS_CY}admin"} } @{$Perms || []}) ? $JSON::true : $JSON::false,
shareWith => (@ShareWith ? \@ShareWith : $JSON::false),
syncToken => $Propstat->{"{$NS_D}prop"}{"{$NS_D}sync-token"}{content} || '',
canSync => $CanSync ? $JSON::true : $JSON::false,
);
push @AddressBooks, \%AddressBook;
}
}
return \@AddressBooks;
}
# }}}
# Contact methods {{{
=head2 $Self->NewContact($AddressBookPath, $Card)
Create a new contact from a JSContact Card hashref.
Generates a UID if not present.
Returns the full path to the card.
=cut
sub NewContact {
my ($Self, $Path, $Card) = @_;
$Path || confess "New contact path not specified";
ref($Card) eq 'HASH' || confess "Invalid contact (expected hashref)";
$Card->{uid} //= 'urn:uuid:' . $Self->genuuid();
my $Uid = $Card->{uid};
$Uid =~ s/^urn:uuid://;
my $VCardStr = jscontact_to_vcard($Card);
$Self->Request(
'PUT',
"$Path/$Uid.vcf",
$VCardStr,
'Content-Type' => 'text/vcard',
'If-None-Match' => '*',
);
return "$Path/$Uid.vcf";
}
=head2 $self->DeleteContact($Path)
Delete the contact at path $Path.
=cut
sub DeleteContact {
my ($Self, $CPath) = @_;
$CPath || confess "Delete contact path not specified";
$Self->Request(
'DELETE',
$CPath,
);
return $CPath;
}
=head2 $Self->UpdateContact($Path, $Card)
Like NewContact, but updates an existing contact.
Takes the full path and a JSContact Card hashref.
=cut
sub UpdateContact {
my ($Self, $CPath, $Card) = @_;
$CPath || confess "Update contact path not specified";
ref($Card) eq 'HASH' || confess "Invalid contact (expected hashref)";
my $VCardStr = jscontact_to_vcard($Card);
$Self->Request(
'PUT',
$CPath,
$VCardStr,
'Content-Type' => 'text/vcard',
'If-Match' => '*',
);
return $CPath;
}
=head2 $Self->GetContact($Path)
Fetch a specific contact by path. Returns a JSContact Card hashref.
=cut
sub GetContact {
my ($Self, $CPath) = @_;
$CPath || confess "Get contact path not specified";
my $Response = $Self->Request(
'GET',
$CPath,
);
my $Data = $Response && $Response->{content}
// return undef;
my $Card = eval { vcard_to_jscontact($Data) }
// return undef;
$Card->{CPath} = $CPath;
return $Card;
}
=head2 $Self->GetContactAndProps($Path, $Props)
Use a multiget to fetch the properties in the arrayref as well
as the card content.
Returns the card in scalar context - the card and an array of errors
in list context.
=cut
sub GetContactAndProps {
my ($Self, $CPath, $Props) = @_;
$Props //= [];
$CPath || confess "Get contact path not specified";
my $Response = $Self->Request(
'REPORT',
$CPath,
x('C:addressbook-multiget', $Self->NS(),
x('D:prop',
x('D:getetag'),
x('D:getcontenttype'),
x('C:address-data'),
map { x(join ":", @$_) } @$Props,
),
x('D:href', $CPath),
),
Depth => '0',
);
my ($Contact, @Errors);
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) {
foreach my $Propstat (@{$Response->{"{$NS_D}propstat"} || []}) {
my $VCard = eval { $Self->_ParseReportData($Response, $Propstat, $Props) } || do {
push @Errors, $@ if $@;
next;
};
$Contact = $VCard;
}
}
return wantarray ? ($Contact, \@Errors) : $Contact;
}
=head2 $self->GetContacts($Path, $Props, %Args)
Get multiple cards, possibly including props, using both a propfind
AND a multiget.
Returns an arrayref of contact and an arrayref of errors (or just the
contacts in scalar context again)
=cut
sub GetContacts {
my ($Self, $Path, $Props) = @_;
my $data = $Self->GetContactLinks($Path);
my @AllUrls = sort keys %$data;
my ($Contacts, $Errors, $HRefs) = $Self->GetContactsMulti($Path, \@AllUrls, $Props);
return wantarray ? ($Contacts, $Errors, $HRefs) : $Contacts;
}
=head2 $self->GetContactLinks($Path)
Returns a hash of href => etag for every contact URL (type: text/(x-)?vcard)
inside the collection at \$Path.
=cut
sub GetContactLinks {
my ($Self, $Path) = @_;
my $Response = $Self->Request(
'PROPFIND',
"$Path/",
x('D:propfind', $Self->NS(),
x('D:prop',
x('D:getcontenttype'),
x('D:getetag'),
),
),
Depth => '1',
);
my %response;
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) {
my $href = $Response->{"{$NS_D}href"}{content};
next unless $href;
if ($Response->{"{$NS_D}prop"}{"{$NS_D}getcontenttype"}) {
my $type = $Response->{"{$NS_D}prop"}{"{$NS_D}getcontenttype"}{content} || '';
next unless $type =~ m{text/(x-)?vcard};
}
my $etag = $Response->{"{$NS_D}prop"}{"{$NS_D}getetag"}{content} || '';
$response{$href} = $etag;
}
return \%response;
}
=head2 $self->GetContactsMulti($Path, $Urls, $Props)
Does an addressbook-multiget on the \$Path for all the URLs in \$Urls
also fetching \$Props on top of the address-data and getetag.
=cut
sub GetContactsMulti {
my ($Self, $Path, $Urls, $Props) = @_;
$Props //= [];
my (@Contacts, @Errors, %Links);
while (my @urls = splice(@$Urls, 0, $BATCHSIZE)) {
my $Response = $Self->Request(
'REPORT',
"$Path/",
x('C:addressbook-multiget', $Self->NS(),
x('D:prop',
x('D:getetag'),
x('C:address-data'),
map { x(join ":", @$_) } @$Props,
),
map { x('D:href', $_) } @urls,
),
Depth => '0',
);
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) {
my $href = $Response->{"{$NS_D}href"}{content};
next unless $href;
foreach my $Propstat (@{$Response->{"{$NS_D}propstat"} || []}) {
my $etag = $Propstat->{"{$NS_D}prop"}{"{$NS_D}getetag"}{content} || '';
my $VCard = eval { $Self->_ParseReportData($Response, $Propstat, $Props) } || do {
push @Errors, $@ if $@;
next;
};
push @Contacts, $VCard;
$Links{$href} = $etag;
}
}
}
return wantarray ? (\@Contacts, \@Errors, \%Links) : \@Contacts;
}
=head2 $self->SyncContacts($Path, $Props, %Args)
uses the argument 'syncToken' to find newly added and removed
cards from the server. Returns just the added/changed contacts
in scalar context, or a list of array of contacts, array of
removed, array of errors and the new syncToken as 4 items in
list context.
=cut
sub SyncContacts {
my ($Self, $Path, $Props, %Args) = @_;
my ($Added, $Removed, $Errors, $SyncToken) = $Self->SyncContactLinks($Path, %Args);
my @AllUrls = sort keys %$Added;
my ($Contacts, $ThisErrors, $Links) = $Self->GetContactsMulti($Path, \@AllUrls, $Props);
push @$Errors, @$ThisErrors;
return wantarray ? ($Contacts, $Removed, $Errors, $SyncToken, $Links) : $Contacts;
}
=head2 $self->SyncContactLinks($Path, %Args)
uses the argument 'syncToken' to find newly added and removed
cards from the server.
Returns a list of:
* Hash of href to etag for added/changed cargs
* List of href of removed cards
* List of errors
* Scalar value of new syncToken
=cut
sub SyncContactLinks {
my ($Self, $Path, %Args) = @_;
$Path || confess "Sync contacts path required";
# WebDAV Collection Synchronization (RFC6578)
my $Response = $Self->Request(
'REPORT',
"$Path/",
x('D:sync-collection', $Self->NS(),
x('D:sync-token', ($Args{syncToken} ? ($Args{syncToken}) : ())),
x('D:sync-level', 1),
x('D:prop',
x('D:getetag'),
),
),
);
my (%Added, @Removed, @Errors);
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
foreach my $Response (@{$Response->{"{$NS_D}response"} || []}) {
my $href = $Response->{"{$NS_D}href"}{content}
|| next;
# For members that have been removed, the DAV:response MUST
# contain one DAV:status with a value set to '404 Not Found' and
# MUST NOT contain any DAV:propstat element
if (!$Response->{"{$NS_D}propstat"}) {
my $Status = $Response->{"{$NS_D}status"}{content};
if ($Status =~ m/ 404 /) {
push @Removed, $href;
} else {
warn "ODD STATUS";
push @Errors, "Odd status in non-propstat response $href: $Status";
}
next;
}
# For members that have changed (i.e., are new or have had their
# mapped resource modified), the DAV:response MUST contain at
# least one DAV:propstat element and MUST NOT contain any
# DAV:status element.
foreach my $Propstat (@{$Response->{"{$NS_D}propstat"} || []}) {
my $Status = $Propstat->{"{$NS_D}status"}{content};
if ($Status =~ m/ 200 /) {
my $etag = $Propstat->{"{$NS_D}prop"}{"{$NS_D}getetag"}{content};
$Added{$href} = $etag;
}
elsif ($Status =~ m/ 404 /) {
# Missing properties return 404 status response, ignore
}
else {
warn "ODD STATUS";
push @Errors, "Odd status in propstat response $href: $Status";
}
}
}
my $SyncToken = $Response->{"{$NS_D}sync-token"}{content};
return (\%Added, \@Removed, \@Errors, $SyncToken);
}
=head2 $self->MoveContact($Path, $NewPath)
Move a contact to a new path (usually in a new addressbook) - both
paths are card paths.
=cut
sub MoveContact {
my ($Self, $CPath, $NewPath) = @_;
$CPath || confess "Move contact path not specified";
$NewPath || confess "Move contact destination path not specified";
$Self->Request(
'MOVE',
$CPath,
undef,
'Destination' => $Self->request_url($NewPath),
);
return $NewPath;
}
# }}}
sub _ParseReportData {
my ($Self, $Response, $Propstat, $Props) = @_;
my $NS_C = $Self->ns('C');
my $NS_D = $Self->ns('D');
my $HRef = $Response->{"{$NS_D}href"}{content}
// return;
my $CPath = $Self->_unrequest_url($HRef);
my $Data = $Propstat->{"{$NS_D}prop"}{"{$NS_C}address-data"}{content}
// return;
my $Card = eval { vcard_to_jscontact($Data) };
return unless $Card;
$Card->{CPath} = $CPath;
$Card->{href} = $HRef;
$Card->{_raw} = $Data;
my %ExtraProps;
for (@$Props) {
my ($NS, $PropName) = @$_;
my $NS_P = $Self->ns($NS);
my $PropValue = $Propstat->{"{$NS_D}prop"}{"{$NS_P}$PropName"}{content}
// next;
$ExtraProps{"${NS}:${PropName}"} = $PropValue;
}
$Card->{meta} = \%ExtraProps if %ExtraProps;
return $Card;
}
sub _unrequest_url {
my $Self = shift;
my $Path = shift;
if ($Path =~ m{^/}) {
$Path =~ s#^\Q$Self->{basepath}\E/?##;
} else {
$Path =~ s#^\Q$Self->{url}\E/?##;
}
$Path =~ s#/$##;
return $Path;
}
=head1 AUTHOR
Bron Gondwana, C<< >>
=head1 BUGS
Please report any bugs or feature requests to C, or through
the web interface at L. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::CardDAVTalk
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker (report bugs here)
L
=item * AnnoCPAN: Annotated CPAN documentation
L
=item * CPAN Ratings
L
=item * Search CPAN
L
=back
=head1 ACKNOWLEDGEMENTS
=head1 LICENSE AND COPYRIGHT
Copyright 2015-2026 Fastmail Pty Ltd.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself; that is, either the GNU General
Public License as published by the Free Software Foundation (version 1,
or at your option any later version), or the Artistic License.
See L and the LICENSE file included with
this distribution for more information.
=cut
1; # End of Net::CardDAVTalk
Net-CardDAVTalk-0.12/t/PaxHeader/pod.t 000644 000765 000024 00000000210 15154401732 017630 x ustar 00brong staff 000000 000000 30 mtime=1773274074.307883319
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/t/pod.t 000644 000765 000024 00000000401 15154401732 015661 0 ustar 00brong staff 000000 000000 #!perl -T
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;
# Ensure a recent version of Test::Pod
my $min_tp = 1.22;
eval "use Test::Pod $min_tp";
plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
all_pod_files_ok();
Net-CardDAVTalk-0.12/t/PaxHeader/manifest.t 000644 000765 000024 00000000207 15154401732 020662 x ustar 00brong staff 000000 000000 29 mtime=1773274074.30772061
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/t/manifest.t 000644 000765 000024 00000000507 15154401732 016714 0 ustar 00brong staff 000000 000000 #!perl -T
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;
unless ( $ENV{RELEASE_TESTING} ) {
plan( skip_all => "Author tests not required for installation" );
}
my $min_tcm = 0.9;
eval "use Test::CheckManifest $min_tcm";
plan skip_all => "Test::CheckManifest $min_tcm required" if $@;
ok_manifest();
Net-CardDAVTalk-0.12/t/PaxHeader/00-load.t 000644 000765 000024 00000000210 15154401732 020202 x ustar 00brong staff 000000 000000 30 mtime=1773274074.307556025
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/t/00-load.t 000644 000765 000024 00000000362 15154401732 016241 0 ustar 00brong staff 000000 000000 #!perl -T
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;
plan tests => 1;
BEGIN {
use_ok( 'Net::CardDAVTalk' ) || print "Bail out!\n";
}
diag( "Testing Net::CardDAVTalk $Net::CardDAVTalk::VERSION, Perl $], $^X" );
Net-CardDAVTalk-0.12/t/PaxHeader/boilerplate.t 000644 000765 000024 00000000210 15154401732 021350 x ustar 00brong staff 000000 000000 30 mtime=1773274074.307642693
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/t/boilerplate.t 000644 000765 000024 00000002511 15154401732 017405 0 ustar 00brong staff 000000 000000 #!perl -T
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;
plan tests => 3;
sub not_in_file_ok {
my ($filename, %regex) = @_;
open( my $fh, '<', $filename )
or die "couldn't open $filename for reading: $!";
my %violated;
while (my $line = <$fh>) {
while (my ($desc, $regex) = each %regex) {
if ($line =~ $regex) {
push @{$violated{$desc}||=[]}, $.;
}
}
}
if (%violated) {
fail("$filename contains boilerplate text");
diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
} else {
pass("$filename contains no boilerplate text");
}
}
sub module_boilerplate_ok {
my ($module) = @_;
not_in_file_ok($module =>
'the great new $MODULENAME' => qr/ - The great new /,
'boilerplate description' => qr/Quick summary of what the module/,
'stub function definition' => qr/function[12]/,
);
}
TODO: {
local $TODO = "Need to replace the boilerplate text";
not_in_file_ok(README =>
"The README is used..." => qr/The README is used/,
"'version information here'" => qr/to provide version information/,
);
not_in_file_ok(Changes =>
"placeholder date/time" => qr(Date/time)
);
module_boilerplate_ok('lib/Net/CardDAVTalk.pm');
}
Net-CardDAVTalk-0.12/t/PaxHeader/pod-coverage.t 000644 000765 000024 00000000210 15154401732 021421 x ustar 00brong staff 000000 000000 30 mtime=1773274074.307802443
57 LIBARCHIVE.xattr.com.apple.provenance=AQIA7l1WdRyXcOQ
49 SCHILY.xattr.com.apple.provenance= î]Vu—pä
Net-CardDAVTalk-0.12/t/pod-coverage.t 000644 000765 000024 00000001412 15154401732 017455 0 ustar 00brong staff 000000 000000 #!perl -T
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;
# Ensure a recent version of Test::Pod::Coverage
my $min_tpc = 1.08;
eval "use Test::Pod::Coverage $min_tpc";
plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
if $@;
# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
# but older versions don't recognize some common documentation styles
my $min_pc = 0.18;
eval "use Pod::Coverage $min_pc";
plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
if $@;
plan skip_all => "Author tests not required for installation"
unless $ENV{AUTHOR_TESTING} or $ENV{RELEASE_TESTING};
plan tests => 1;
pod_coverage_ok( "Net::CardDAVTalk", "main module is covered is covered" );