Changeset 2050

Show
Ignore:
Timestamp:
11/15/08 04:52:07
Author:
miyagawa
Message:

more changes to work around XML::Feed internal changes

Files:

Legend:

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

    r1741 r2050  
    66use XML::Feed; 
    77use XML::Feed::RSS; 
    8 $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
     8$XML::Feed::Format::RSS::PREFERRED_PARSER = $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
    99$XML::Atom::ForceUnicode = 1; 
    1010 
  • trunk/plagger/lib/Plagger/Plugin/Publish/Feed.pm

    r1959 r2050  
    1010use File::Spec; 
    1111 
    12 $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
     12$XML::Feed::Format::RSS::PREFERRED_PARSER = $XML::Feed::RSS::PREFERRED_PARSER = "XML::RSS::LibXML"; 
    1313 
    1414sub register { 
     
    138138 
    139139# XXX okay, this is a hack until XML::Feed is updated 
     140*XML::Feed::Entry::Format::Atom::add_enclosure = 
    140141*XML::Feed::Entry::Atom::add_enclosure = sub { 
    141142    my($entry, $enclosure) = @_; 
     
    148149}; 
    149150 
     151*XML::Feed::Entry::Format::RSS::add_enclosure = 
    150152*XML::Feed::Entry::RSS::add_enclosure = sub { 
    151153    my($entry, $enclosure) = @_; 
  • trunk/plagger/t/plugins/Publish-Feed/rss2-content.t

    r2049 r2050  
    2929      filename: rss.xml 
    3030--- expected chomp regexp 
    31 <content:encoded>\s*&#x3C;div 
     31<content:encoded>\s*&lt;div