Changeset 63

Show
Ignore:
Timestamp:
02/09/06 17:00:51
Author:
miyagawa
Message:

rename Splice to SmartFeed?. Fixes #29

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/config.yaml.sample

    r54 r63  
    3131  - module: Aggregator::Simple 
    3232 
    33   - module: Splice::Tag 
     33  - module: SmartFeed::Tag 
    3434    config: 
    3535      tag: perl tech 
  • trunk/plagger/lib/Plagger/Plugin/SmartFeed/Tag.pm

    r61 r63  
    1 package Plagger::Plugin::Splice::Tag; 
     1package Plagger::Plugin::SmartFeed::Tag; 
    22use strict; 
    33use base qw( Plagger::Plugin ); 
     
    99    $context->register_hook( 
    1010        $self, 
    11         'update.fixup' => \&splicer
     11        'update.fixup' => \&fixup
    1212    ); 
    1313} 
    1414 
    15 sub splicer
     15sub fixup
    1616    my($self, $context) = @_; 
    1717 
     
    2020 
    2121    my $feed = Plagger::Feed->new; 
    22     $feed->type('spliced:tag'); 
    23     $feed->id( $self->conf->{id} || ('spliced:tag:' . join('+', @tags)) ); 
     22    $feed->type('smartfeed:tag'); 
     23    $feed->id( $self->conf->{id} || ('smartfeed:tag:' . join('+', @tags)) ); 
    2424    $feed->title( $self->conf->{title} || $self->gen_title($op, @tags) ); 
    2525