Feed.pm

filter: Statementstmt 59.4% 22 / 37 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod 100% 4 / 4 totaltotal 63.4% 33 / 52 CC 1 SCAR 3.1
CC
1
Cov
59%
new
2.0
ls
2.0
get
2.0
CRAP 1.4
« Feed/Actions/List.pm ↑ Summary Feed/Actions/Get.pm »
1 package Cnutt::Feed;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use Pod::Usage;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use Cnutt::Feed::Actions::List;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Cnutt::Feed::Actions::Get;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Cnutt::Feed::Actions::Fetch;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =encoding utf8
14  
15 =head1 NAME
16  
17 Cnutt::Feed - A rss/atom reader which delivers entries to your mailboxes
18  
19 =head1 VERSION
20  
21 Version 1.1
22  
23 =cut
24  
25 2 our $VERSION = '1.1';
26  
27 =head1 DESCRIPTION
28  
29 See cnutt-feed manual.
30  
31 =head1 METHODS
32  
33 =head2 new
34  
35 =cut
36  
37 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
38 0 my $class = shift;
39 0 my %options = @_;
40 0 my $self = \%options;
41 0 bless $self;
42 0 return $self;
43 }
44  
45 =head2 ls
46  
47 List the feeds from an url.
48  
49 =cut
50  
51 0 ▶sub ls {
Subroutine ls: not called CC=1 SCAR=6.9
Pod documented
52 0 my $options = shift;
53 0 my $url = shift;
54  
55 0 Cnutt::Feed::Actions::List::ls($options, $url);
56 }
57  
58 =head2 get
59  
60 Take an url and a mailbox on the command line and download the feed to
61 the mailbox.
62  
63 =cut
64  
65 0 ▶sub get {
Subroutine get: not called CC=1 SCAR=6.9
Pod documented
66 0 my $options = shift;
67 0 my $url = shift;
68 0 my $mb = shift;
69  
70 0 Cnutt::Feed::Actions::Get::get($options, $url, $mb);
71 }
72  
73 =head2 fetch
74  
75 Take a feed name and fetch it according the config file data.
76  
77 =cut
78  
79 0 ▶sub fetch {
Subroutine fetch: not called CC=1 SCAR=6.9
Pod documented
80 0 my $options = shift;
81 0 my @names = @_;
82  
83 0 Cnutt::Feed::Actions::Fetch::fetch($options, @names);
84 }
85  
86 =head1 AUTHOR
87  
88 Olivier Schwander, C<< <olivier.schwander at ens-lyon.org> >>
89  
90 =head1 BUGS
91  
92 Please report any bugs or feature requests to C<bug-cnutt-feed at
93 rt.cpan.org>, or through the web interface at
94 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=cnutt-feed>. I will
95 be notified, and then you'll automatically be notified of progress on
96 your bug as I make changes.
97  
98 =head1 SUPPORT
99  
100 A darcs repository is available here :
101  
102 L<http://chadok.info/darcs/cnutt/cnutt-feed>
103  
104 You can also look for information at:
105  
106 =over 4
107  
108 =item * RT: CPAN's request tracker
109  
110 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=cnutt-feed>
111  
112 =item * AnnoCPAN: Annotated CPAN documentation
113  
114 L<http://annocpan.org/dist/cnutt-feed>
115  
116 =item * CPAN Ratings
117  
118 L<http://cpanratings.perl.org/d/cnutt-feed>
119  
120 =item * Search CPAN
121  
122 L<http://search.cpan.org/dist/cnutt-feed>
123  
124 =back
125  
126 =head1 COPYRIGHT & LICENSE
127  
128 Copyright 2007-2008 Olivier Schwander, all rights reserved.
129  
130 This program is free software; you can redistribute it and/or modify it
131 under the same terms as Perl itself.
132  
133 =cut
134  
« Feed/Actions/List.pm ↑ Summary Feed/Actions/Get.pm »