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