| 1 | package XML::RSS::Private::Output::V2_0; | ||
| 2 | $XML::RSS::Private::Output::V2_0::VERSION = '1.60'; | ||
| 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 vars (qw(@ISA)); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use XML::RSS::Private::Output::Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 9 | use XML::RSS::Private::Output::Roles::ModulesElems; | ||
| 10 | use XML::RSS::Private::Output::Roles::ImageDims; | ||
| 11 | |||
| 12 | @ISA = (qw( | ||
| 13 | XML::RSS::Private::Output::Roles::ImageDims | ||
| 14 | XML::RSS::Private::Output::Roles::ModulesElems | ||
| 15 | XML::RSS::Private::Output::Base | ||
| 16 | ) | ||
| 17 | ); | ||
| 18 | |||
| 19 | sub _get_filtered_items { | ||
| 20 | my $self = shift; | ||
| 21 | |||
| 22 | return [ | ||
| 23 | grep {exists($_->{title}) || exists($_->{description})} | ||
| 24 | @{$self->_get_items()}, | ||
| 25 | ]; | ||
| 26 | } | ||
| 27 | |||
| 28 | sub _out_item_2_0_tags { | ||
| 29 | my ($self, $item) = @_; | ||
| 30 | |||
| 31 | $self->_output_def_item_tag($item, "author"); | ||
| 32 | $self->_output_array_item_tag($item, "category"); | ||
| 33 | $self->_output_def_item_tag($item, "comments"); | ||
| 34 | |||
| 35 | $self->_out_guid($item); | ||
| 36 | |||
| 37 | $self->_output_def_item_tag($item, "pubDate"); | ||
| 38 | |||
| 39 | $self->_out_item_source($item); | ||
| 40 | |||
| 41 | $self->_out_item_enclosure($item); | ||
| 42 | } | ||
| 43 | |||
| 44 | sub _get_textinput_tag { | ||
| 45 | return "textInput"; | ||
| 46 | } | ||
| 47 | |||
| 48 | sub _get_item_defined { | ||
| 49 | return 1; | ||
| 50 | } | ||
| 51 | |||
| 52 | sub _output_rss_middle { | ||
| 53 | my $self = shift; | ||
| 54 | |||
| 55 | # PICS rating | ||
| 56 | # Not supported by RSS 2.0 | ||
| 57 | # $output .= '<rating>'.$self->{channel}->{rating}.'</rating>'."\n" | ||
| 58 | # if $self->{channel}->{rating}; | ||
| 59 | |||
| 60 | # copyright | ||
| 61 | $self->_out_copyright(); | ||
| 62 | |||
| 63 | $self->_out_dates(); | ||
| 64 | |||
| 65 | # external CDF URL | ||
| 66 | $self->_out_def_chan_tag("docs"); | ||
| 67 | |||
| 68 | $self->_out_editors; | ||
| 69 | |||
| 70 | $self->_out_channel_array_self_dc_field("category"); | ||
| 71 | $self->_out_channel_self_dc_field("generator"); | ||
| 72 | |||
| 73 | # Insert cloud support here | ||
| 74 | |||
| 75 | # ttl | ||
| 76 | $self->_out_channel_self_dc_field("ttl"); | ||
| 77 | |||
| 78 | $self->_out_modules_elements($self->channel()); | ||
| 79 | |||
| 80 | $self->_out_last_elements; | ||
| 81 | } | ||
| 82 | |||
| 83 | 1; | ||
| 84 | |||
| 85 | __END__ | ||
| 86 | |||
| 87 | =pod | ||
| 88 | |||
| 89 | =head1 VERSION | ||
| 90 | |||
| 91 | version 1.60 | ||
| 92 | |||
| 93 | =head1 AUTHOR | ||
| 94 | |||
| 95 | Shlomi Fish <shlomif@cpan.org> | ||
| 96 | |||
| 97 | =head1 COPYRIGHT AND LICENSE | ||
| 98 | |||
| 99 | This software is copyright (c) 2001 by Various. | ||
| 100 | |||
| 101 | This is free software; you can redistribute it and/or modify it under | ||
| 102 | the same terms as the Perl 5 programming language system itself. | ||
| 103 | |||
| 104 | =head1 BUGS | ||
| 105 | |||
| 106 | Please report any bugs or feature requests on the bugtracker website | ||
| 107 | L<https://github.com/shlomif/perl-XML-RSS/issues> | ||
| 108 | |||
| 109 | When submitting a bug or request, please include a test-file or a | ||
| 110 | patch to an existing test-file that illustrates the bug or desired | ||
| 111 | feature. | ||
| 112 | |||
| 113 | =for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan | ||
| 114 | |||
| 115 | =head1 SUPPORT | ||
| 116 | |||
| 117 | =head2 Perldoc | ||
| 118 | |||
| 119 | You can find documentation for this module with the perldoc command. | ||
| 120 | |||
| 121 | perldoc XML::RSS::Private::Output::V2_0 | ||
| 122 | |||
| 123 | =head2 Websites | ||
| 124 | |||
| 125 | The following websites have more information about this module, and may be of help to you. As always, | ||
| 126 | in addition to those websites please use your favorite search engine to discover more resources. | ||
| 127 | |||
| 128 | =over 4 | ||
| 129 | |||
| 130 | =item * | ||
| 131 | |||
| 132 | MetaCPAN | ||
| 133 | |||
| 134 | A modern, open-source CPAN search engine, useful to view POD in HTML format. | ||
| 135 | |||
| 136 | L<https://metacpan.org/release/XML-RSS> | ||
| 137 | |||
| 138 | =item * | ||
| 139 | |||
| 140 | Search CPAN | ||
| 141 | |||
| 142 | The default CPAN search engine, useful to view POD in HTML format. | ||
| 143 | |||
| 144 | L<http://search.cpan.org/dist/XML-RSS> | ||
| 145 | |||
| 146 | =item * | ||
| 147 | |||
| 148 | RT: CPAN's Bug Tracker | ||
| 149 | |||
| 150 | The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN. | ||
| 151 | |||
| 152 | L<https://rt.cpan.org/Public/Dist/Display.html?Name=XML-RSS> | ||
| 153 | |||
| 154 | =item * | ||
| 155 | |||
| 156 | AnnoCPAN | ||
| 157 | |||
| 158 | The AnnoCPAN is a website that allows community annotations of Perl module documentation. | ||
| 159 | |||
| 160 | L<http://annocpan.org/dist/XML-RSS> | ||
| 161 | |||
| 162 | =item * | ||
| 163 | |||
| 164 | CPAN Ratings | ||
| 165 | |||
| 166 | The CPAN Ratings is a website that allows community ratings and reviews of Perl modules. | ||
| 167 | |||
| 168 | L<http://cpanratings.perl.org/d/XML-RSS> | ||
| 169 | |||
| 170 | =item * | ||
| 171 | |||
| 172 | CPANTS | ||
| 173 | |||
| 174 | The CPANTS is a website that analyzes the Kwalitee ( code metrics ) of a distribution. | ||
| 175 | |||
| 176 | L<http://cpants.cpanauthors.org/dist/XML-RSS> | ||
| 177 | |||
| 178 | =item * | ||
| 179 | |||
| 180 | CPAN Testers | ||
| 181 | |||
| 182 | The CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions. | ||
| 183 | |||
| 184 | L<http://www.cpantesters.org/distro/X/XML-RSS> | ||
| 185 | |||
| 186 | =item * | ||
| 187 | |||
| 188 | CPAN Testers Matrix | ||
| 189 | |||
| 190 | The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms. | ||
| 191 | |||
| 192 | L<http://matrix.cpantesters.org/?dist=XML-RSS> | ||
| 193 | |||
| 194 | =item * | ||
| 195 | |||
| 196 | CPAN Testers Dependencies | ||
| 197 | |||
| 198 | The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution. | ||
| 199 | |||
| 200 | L<http://deps.cpantesters.org/?module=XML::RSS> | ||
| 201 | |||
| 202 | =back | ||
| 203 | |||
| 204 | =head2 Bugs / Feature Requests | ||
| 205 | |||
| 206 | Please report any bugs or feature requests by email to C<bug-xml-rss at rt.cpan.org>, or through | ||
| 207 | the web interface at L<https://rt.cpan.org/Public/Bug/Report.html?Queue=XML-RSS>. You will be automatically notified of any | ||
| 208 | progress on the request by the system. | ||
| 209 | |||
| 210 | =head2 Source Code | ||
| 211 | |||
| 212 | The code is open to the world, and available for you to hack on. Please feel free to browse it and play | ||
| 213 | with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull | ||
| 214 | from your repository :) | ||
| 215 | |||
| 216 | L<https://github.com/shlomif/perl-XML-RSS> | ||
| 217 | |||
| 218 | git clone git://github.com/shlomif/perl-XML-RSS.git | ||
| 219 | |||
| 220 | =cut | ||