Changeset 309

Show
Ignore:
Timestamp:
03/05/06 09:52:39
Author:
miyagawa
Message:

SmartFeed? is now subclassable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/Makefile.PL

    r296 r309  
    4141        recommends('XML::Feed', 0.08), 
    4242        recommends('XML::Atom'), 
    43         recommends('XML::RSS::LibXML', 0.16), 
     43        recommends('XML::RSS::LibXML', 0.17), 
    4444    ], 
    4545    'Publish::Gmail' => [ 
     
    9696        -default => 1, 
    9797        recommends('XML::Feed', 0.08), 
    98         recommends('XML::RSS::LibXML', 0.16), 
     98        recommends('XML::RSS::LibXML', 0.17), 
    9999    ], 
    100100    'Filter::ResolveRelativeLink' => [ 
  • trunk/plagger/lib/Plagger/Plugin/SmartFeed.pm

    r307 r309  
    1111    $context->register_hook( 
    1212        $self, 
    13         'smartfeed.init'  => \&feed_init
    14         'smartfeed.entry' => \&feed_entry
    15         'smartfeed.finalize' => \&feed_finalize
     13        'smartfeed.init'  => $self->can('feed_init')
     14        'smartfeed.entry' => $self->can('feed_entry')
     15        'smartfeed.finalize' => $self->can('feed_finalize')
    1616    ); 
    1717} 
  • trunk/plagger/lib/Plagger/Plugin/SmartFeed/All.pm

    r308 r309  
    22use strict; 
    33use base qw( Plagger::Plugin::SmartFeed ); 
    4  
    5 sub rule_hook { 'smartfeed.entry' } 
    6  
    7 sub register { 
    8     my($self, $context) = @_; 
    9     $context->register_hook( 
    10         $self, 
    11         'smartfeed.init'  => \&feed_init, 
    12         'smartfeed.entry' => \&feed_entry, 
    13         'smartfeed.finalize' => \&feed_finalize, 
    14     ); 
    15 } 
    164 
    175sub feed_init {