Changeset 1213
- Timestamp:
- 08/07/06 16:24:36
- Files:
-
- trunk/plagger/lib/Plagger/Plugin/Bundle/Planet.pm (modified) (3 diffs)
- trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm (modified) (2 diffs)
- trunk/plagger/lib/Plagger/Plugin/SmartFeed.pm (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/SmartFeed/All.pm (modified) (1 diff)
- trunk/plagger/t/plugins/Bundle-Planet/feedvalidator.t (moved) (moved from trunk/plagger/t/plugins/Bundle-Planet/atom1.t) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/lib/Plagger/Plugin/Bundle/Planet.pm
r1173 r1213 44 44 title => $self->conf->{title}, 45 45 link => $self->conf->{url}, 46 description => $self->conf->{description}, 46 47 }, 47 48 }); … … 127 128 stylesheet: foo.css 128 129 duration: 7 days 130 description: Everything about Foobar from the Web 129 131 130 132 =head1 DESCRIPTION … … 186 188 Additional rule to add to filter entris using SmartFeed::All. Optional and defaults to nothing. 187 189 190 =item description 191 192 Description to use in XHTML tagline and Atom/RSS feeds. Optional. 193 188 194 =back 189 195 trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm
r1212 r1213 51 51 $feed->modified(Plagger::Date->now); 52 52 $feed->generator("Plagger/$Plagger::VERSION"); 53 $feed->description($f->description); 53 54 54 55 if ($feed_format eq 'Atom') { … … 75 76 $entry->issued($e->date) if $e->date; 76 77 $entry->modified($e->date) if $e->date; 77 $entry->author($e->author); 78 79 if ($feed_format eq 'RSS') { 80 $entry->author($e->author . ' <nobody@example.com>'); 81 } else { 82 $entry->author($e->author); 83 } 84 78 85 $entry->id("tag:plagger.org,2006:" . $e->id); 79 86 trunk/plagger/lib/Plagger/Plugin/SmartFeed.pm
r1061 r1213 25 25 $feed->title( $self->conf->{title} || "Entries " . $self->rule->as_title ); 26 26 $feed->link( $self->conf->{link} ); 27 $feed->description( $self->conf->{description} || $feed->title ); 27 28 28 29 $self->{feed} = $feed; trunk/plagger/lib/Plagger/Plugin/SmartFeed/All.pm
r1173 r1213 9 9 $feed->type('smartfeed'); 10 10 $feed->id( $self->conf->{id} || ('smartfeed:all') ); 11 $feed->title( $self->conf->{title} || "All Entries " );11 $feed->title( $self->conf->{title} || "All Entries" ); 12 12 $feed->link( $self->conf->{link} ); 13 $feed->description( $self->conf->{description} || $feed->title ); 13 14 14 15 $self->{feed} = $feed; trunk/plagger/t/plugins/Bundle-Planet/feedvalidator.t
r1212 r1213 14 14 15 15 our $dir = "$FindBin::Bin/planet"; 16 our $output = "$dir/atom.xml";17 16 18 17 run_eval_expected; … … 43 42 theme: sixapart-std 44 43 stylesheet: foo.css 44 description: Everything about Foobar 45 45 --- expected 46 my $out = `$ENV{HOME}/svn/feedvalidator/src/demo.py $main:: outputA`;46 my $out = `$ENV{HOME}/svn/feedvalidator/src/demo.py $main::dir/atom.xml A`; 47 47 like $out, qr/No errors or warnings/; 48 $out = `$ENV{HOME}/svn/feedvalidator/src/demo.py $main::dir/rss.xml A`; 49 like $out, qr/No errors or warnings/;
