Changeset 37

Show
Ignore:
Timestamp:
02/06/06 15:15:32
Author:
miyagawa
Message:

publish.notify now has a better name publish.add_feed. Fixes #7

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r36 r37  
    111111            $self->run_hook('filter.content', { entry => $entry, content => $entry->text }); 
    112112        } 
    113         $self->run_hook('publish.notify', { feed => $feed }); 
     113        $self->run_hook('publish.add_feed', { feed => $feed }); 
    114114    } 
    115115 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Debug.pm

    r36 r37  
    99    $context->register_hook( 
    1010        $self, 
    11         'publish.notify' => \&notify
     11        'publish.add_feed' => \&add_feed
    1212    ); 
    1313} 
    1414 
    15 sub notify
     15sub add_feed
    1616    my($self, $context, $args) = @_; 
    1717    $context->dumper($args->{feed}); 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm

    r36 r37  
    1515    $context->register_hook( 
    1616        $self, 
    17         'publish.notify' => \&notify, 
     17        'publish.add_feed' => \&notify, 
    1818    ); 
    1919} 
  • trunk/plagger/lib/Plagger/Plugin/Publish/JavaScript.pm

    r36 r37  
    1010    $context->register_hook( 
    1111        $self, 
    12         'publish.notify'   => \&notify
     12        'publish.add_feed' => \&add_feed
    1313    ); 
    1414} 
    1515 
    16 sub notify
     16sub add_feed
    1717    my($self, $context, $args) = @_; 
    1818 
  • trunk/plagger/lib/Plagger/Plugin/Publish/PSP.pm

    r36 r37  
    99    $context->register_hook( 
    1010        $self, 
    11         'publish.notify'   => \&notify
     11        'publish.add_feed' => \&add_feed
    1212        'publish.finalize' => \&finalize, 
    1313    ); 
    1414} 
    1515 
    16 sub notify
     16sub add_feed
    1717    my($self, $context, $args) = @_; 
    1818    push @{ $self->{__feeds} }, $feed;