r26173 - in /branches/upstream/libxml-rss-perl/current: ./ examples/0.91/ lib/XML/ lib/XML/RSS/Private/Output/ t/

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Oct 19 13:43:23 UTC 2008


Author: gregoa
Date: Sun Oct 19 13:43:20 2008
New Revision: 26173

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=26173
Log:
[svn-upgrade] Integrating new upstream version, libxml-rss-perl (1.36)

Added:
    branches/upstream/libxml-rss-perl/current/t/2.0-parse-self.t
Modified:
    branches/upstream/libxml-rss-perl/current/Changes
    branches/upstream/libxml-rss-perl/current/MANIFEST
    branches/upstream/libxml-rss-perl/current/META.yml
    branches/upstream/libxml-rss-perl/current/examples/0.91/fm.rdf
    branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91.rdf
    branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91_full.rdf
    branches/upstream/libxml-rss-perl/current/examples/0.91/xmlnews.rdf
    branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm
    branches/upstream/libxml-rss-perl/current/lib/XML/RSS/Private/Output/V0_91.pm
    branches/upstream/libxml-rss-perl/current/t/test_manifest
    branches/upstream/libxml-rss-perl/current/t/xml-header.t

Modified: branches/upstream/libxml-rss-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/Changes?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/Changes (original)
+++ branches/upstream/libxml-rss-perl/current/Changes Sun Oct 19 13:43:20 2008
@@ -1,162 +1,174 @@
 Revision history for Perl module XML::RSS
 
+1.36 - October 7, 2008
+    - ->parse() now explicitly returns $self.
+        - http://rt.cpan.org/Public/Bug/Display.html?id=34914
+    - ->parsefile() now explicitly returns $self.
+        - http://rt.cpan.org/Public/Bug/Display.html?id=34914
+    - Applied a patch to change the RSS-0.91 DTD URL from my.netscape.com
+    to rssboard.org:
+        - http://rt.cpan.org/Ticket/Display.html?id=39780
+    - Reformatted the Changes file to standardize on 4-space-indents.
+    - Small documentation patch: (add_item with dc:date)
+        - http://rt.cpan.org/Ticket/Display.html?id=39780
+
 1.35 - September 13, 2008
-       - Added a Module::Build-based Build.PL so we'll have an easier time 
-       with the META.yml and the Kwalitee.
-       - Kwalitee - added "use warnings" to all Perl files.
-            - now depending on at least perl-5.6.0.
-       - Kwalitee - fixed the "use" statement of
-       "Test::Run::CmdLine::Iface" to a runtime require.
+    - Added a Module::Build-based Build.PL so we'll have an easier time 
+    with the META.yml and the Kwalitee.
+    - Kwalitee - added "use warnings" to all Perl files.
+        - now depending on at least perl-5.6.0.
+    - Kwalitee - fixed the "use" statement of
+    "Test::Run::CmdLine::Iface" to a runtime require.
 
 1.34 - September 12, 2008
-       - fixed a typo in the documentation of lib/XML/RSS.pm - 
-       "regardless" instead of "regarless".
-            - http://rt.cpan.org/Public/Bug/Display.html?id=37916
-            - (Reported by Reuben Thomas, Fixed by Shlomif).
-       - fixed a code fragment - pop() instead of shift() for older
-       items, and while() instead of if():
-            - http://rt.cpan.org/Public/Bug/Display.html?id=39231
-            - (Reported by Dave, Fixed by Shlomif).
+    - fixed a typo in the documentation of lib/XML/RSS.pm - 
+    "regardless" instead of "regarless".
+        - http://rt.cpan.org/Public/Bug/Display.html?id=37916
+        - (Reported by Reuben Thomas, Fixed by Shlomif).
+    - fixed a code fragment - pop() instead of shift() for older
+    items, and while() instead of if():
+        - http://rt.cpan.org/Public/Bug/Display.html?id=39231
+        - (Reported by Dave, Fixed by Shlomif).
 
 1.33 - June 8, 2008
-       - Allowed the end-user to customise the _encode() routine in 
-       XML::RSS::Private::Output::Base from XML::RSS using the
-       encode_cb key.
+    - Allowed the end-user to customise the _encode() routine in 
+    XML::RSS::Private::Output::Base from XML::RSS using the
+    encode_cb key.
 
 1.32 - February 8, 2008
-       - Fixed http://rt.cpan.org/Public/Bug/Display.html?id=25336 :
-           - made sure the namespace specified elements can have a hash
-           as a value in which case they'll be outputted as a standalone tag
-           with attributes.
-       - Fixed http://rt.cpan.org/Ticket/Display.html?id=25368 :
-           - changed pop() to shift() to remove the oldest item in the
-           example in lib/XML/RSS.pm, per the comments in the bug report.
-       - Fixed http://rt.cpan.org/Ticket/Display.html?id=24329#txn-296761 :
-           - updated the URLs for information about RSS mentioned under
-           "=head1 DESCRIPTION", based on a Google search. 
-           - (Shlomi Fish)
-       - Fixed http://rt.cpan.org/Ticket/Display.html?id=33001 :
-           - made sure that isPermalink is true if and only if the isPermalink
-           attribute is "true". Not if it is non-existent, etc.
-           - this modified the behaviour of the module.
+    - Fixed http://rt.cpan.org/Public/Bug/Display.html?id=25336 :
+        - made sure the namespace specified elements can have a hash
+        as a value in which case they'll be outputted as a standalone tag
+        with attributes.
+    - Fixed http://rt.cpan.org/Ticket/Display.html?id=25368 :
+        - changed pop() to shift() to remove the oldest item in the
+        example in lib/XML/RSS.pm, per the comments in the bug report.
+    - Fixed http://rt.cpan.org/Ticket/Display.html?id=24329#txn-296761 :
+        - updated the URLs for information about RSS mentioned under
+        "=head1 DESCRIPTION", based on a Google search. 
+        - (Shlomi Fish)
+    - Fixed http://rt.cpan.org/Ticket/Display.html?id=33001 :
+        - made sure that isPermalink is true if and only if the isPermalink
+        attribute is "true". Not if it is non-existent, etc.
+        - this modified the behaviour of the module.
 
 1.31 - June 29, 2007
-       - Fixed the save() function to handle perl-5.6.x (and possibly below)
-         where the ":encoding(...)" filehandle are not available (Shlomi Fish)
+    - Fixed the save() function to handle perl-5.6.x (and possibly below)
+    where the ":encoding(...)" filehandle are not available (Shlomi Fish)
 
 1.30 - June 18, 2007
-       - Same as 1.29_02 (from February 23, 2007)
-       - Removed some methods that were not used.
-       - Added more tests to increase the test coverage.
-       - Fixed a bug where prefixes could be specified with invalid characters
-         because there was a range (.-_) instead of three individual
-         characters (.\-_).
-       - Many files were left in the distribution or Subversion repository 
-         that were executable but need not be. Made them non-executable.
-       - Clean up examples/ directory and move generated files out of t/
-       - isPermaLink / guid fixes (RT#23983, Shlomi)
-       - increased the test coverage of XML::RSS up to 100%. (Shlomif)
-       - SECURITY BUG FIX: eliminated a markup injection vulnerability in the
-         taxo:topics output of RSS 1.0. (Shlomif)
-       - Moved the append function, which is unused and cannot be effectively 
-         used, out of the main module and into the rejects directory inside
-         the repository (but outside the module). (Shlomif)
-       - Added POD for full POD coverage. (Shlomif)
-       - Several other bug fixes. (Shlomif)
-       - Heavy refactoring of the code. (Shlomif)
-       - perltidy configuration file; run perltidy on XML::RSS (and 
-         intentionally not on the tests) (ABH).
-       - Removed the remaining tab characters. (Shlomif)
-       - Fixed a bug in one of the tests. (Shlomif)
-       - Converted the rendering processes of the various RSS versions to 
-         one class per RSS version and applied the "Convert Conditionals
-         to Polymorphism" refactoring. (Shlomif)
-       - Removed the languages hash which was completely unused. (Shlomif)
-       - Converted the parsing routines to be methods of XML::RSS to increase
-         modularity. XML::RSS no longer inherits from XML::Parser. (Shlomif)
-       - Extracted several methods from the parsing stage. (Shlomif)
-       - Added a regression test to 
-         https://rt.cpan.org/Ticket/Display.html?id=24742   (Shlomif)
-       - Tweaked the Makefile.PL Test::Run integration according to:
-         http://www.nntp.perl.org/group/perl.qa/2006/11/msg7400.html
-         (Shlomif)
+    - Same as 1.29_02 (from February 23, 2007)
+    - Removed some methods that were not used.
+    - Added more tests to increase the test coverage.
+    - Fixed a bug where prefixes could be specified with invalid characters
+      because there was a range (.-_) instead of three individual
+      characters (.\-_).
+    - Many files were left in the distribution or Subversion repository 
+      that were executable but need not be. Made them non-executable.
+    - Clean up examples/ directory and move generated files out of t/
+    - isPermaLink / guid fixes (RT#23983, Shlomi)
+    - increased the test coverage of XML::RSS up to 100%. (Shlomif)
+    - SECURITY BUG FIX: eliminated a markup injection vulnerability in the
+      taxo:topics output of RSS 1.0. (Shlomif)
+    - Moved the append function, which is unused and cannot be effectively 
+      used, out of the main module and into the rejects directory inside
+      the repository (but outside the module). (Shlomif)
+    - Added POD for full POD coverage. (Shlomif)
+    - Several other bug fixes. (Shlomif)
+    - Heavy refactoring of the code. (Shlomif)
+    - perltidy configuration file; run perltidy on XML::RSS (and 
+      intentionally not on the tests) (ABH).
+    - Removed the remaining tab characters. (Shlomif)
+    - Fixed a bug in one of the tests. (Shlomif)
+    - Converted the rendering processes of the various RSS versions to 
+      one class per RSS version and applied the "Convert Conditionals
+      to Polymorphism" refactoring. (Shlomif)
+    - Removed the languages hash which was completely unused. (Shlomif)
+    - Converted the parsing routines to be methods of XML::RSS to increase
+      modularity. XML::RSS no longer inherits from XML::Parser. (Shlomif)
+    - Extracted several methods from the parsing stage. (Shlomif)
+    - Added a regression test to 
+      https://rt.cpan.org/Ticket/Display.html?id=24742   (Shlomif)
+    - Tweaked the Makefile.PL Test::Run integration according to:
+      http://www.nntp.perl.org/group/perl.qa/2006/11/msg7400.html
+      (Shlomif)
 
 1.22 - December 17th, 2006 
-       - Fix XML::Feed compatability. Make sure $item->{content} is always setup
-         (broke in 1.20, RT#23822, Shlomi, Andreas J. Koenig)
-       - Fix the tests to work on Win32 (RT#23752, Shlomi, Kenichi Ishigaki)
-       - make add_module work for both RSS 1.0 and 2.0 (RT#16191,
-         RT#18907, RT#13209, Ben Trott, Ivan Willis)
-       - Fixed the problem with a version => "2.0" RSS not parsing correctly
-         the namespaced elements in a RSS 1.0 feed (in RT#23822, Shlomi)
-       - Channel->{link | textInput} (sic) property mapping in RSS 2.0
-         (RT#9862, Shlomi / chatiman)
-       - Don't fail the tests if Test::Pod::Coverage is missing
-         (reported by Andreas J. Koenig)
+    - Fix XML::Feed compatability. Make sure $item->{content} is always setup
+      (broke in 1.20, RT#23822, Shlomi, Andreas J. Koenig)
+    - Fix the tests to work on Win32 (RT#23752, Shlomi, Kenichi Ishigaki)
+    - make add_module work for both RSS 1.0 and 2.0 (RT#16191,
+      RT#18907, RT#13209, Ben Trott, Ivan Willis)
+    - Fixed the problem with a version => "2.0" RSS not parsing correctly
+      the namespaced elements in a RSS 1.0 feed (in RT#23822, Shlomi)
+    - Channel->{link | textInput} (sic) property mapping in RSS 2.0
+      (RT#9862, Shlomi / chatiman)
+    - Don't fail the tests if Test::Pod::Coverage is missing
+      (reported by Andreas J. Koenig)
 
 1.21 - December 5th, 2006
-       - Support inserting a XSL stylesheet URL into the XML output
-         (RT#11569, Jason A. Smith, Shlomi Fish)
-       - Remove empty lines in the test_manifest - some versions of
-         Test::Manifest doesn't do the right thing with
-         those. (RT#23678, Hugo van der Sanden)
-       - Add Pod::Coverage tests
-       - More Date Conversion (Shlomi) 
-       - Fix for a Markup Injection Vulnerability (RT#23435, Shlomi)
+    - Support inserting a XSL stylesheet URL into the XML output
+      (RT#11569, Jason A. Smith, Shlomi Fish)
+    - Remove empty lines in the test_manifest - some versions of
+      Test::Manifest doesn't do the right thing with
+      those. (RT#23678, Hugo van der Sanden)
+    - Add Pod::Coverage tests
+    - More Date Conversion (Shlomi) 
+    - Fix for a Markup Injection Vulnerability (RT#23435, Shlomi)
 
 1.20 - November 10th, 2006
-       - Value for $XML::RSS::modules gets destroyed (RT#18755, Shlomi)
-         - Note that YOU CAN NO LONGER USE $XML::RSS::modules, you
+    - Value for $XML::RSS::modules gets destroyed (RT#18755, Shlomi)
+      - Note that YOU CAN NO LONGER USE $XML::RSS::modules, you
            have to use the add_modules call as documented!
-       - encode generates warnings for undefined text (RT#13523, Mark Stosberg)
-       - Missing last build date value in RSS 2.0 (RT#19417)
-       - renamed the internal encode method to _encode
-       - RSS 2.0 spec allows omission of title from entry (RT#18817,
-         test from Shlomi)
-       - Can't create "0" values in optional items (RT#11415, based on
-         patch from Shlomi - thanks!)
-       - Remove the executable bit from Makefile.PL
-       - Add test to test regression of CPAN RT#5438 (Shlomi)
-       - More tests...
+    - encode generates warnings for undefined text (RT#13523, Mark Stosberg)
+    - Missing last build date value in RSS 2.0 (RT#19417)
+    - renamed the internal encode method to _encode
+    - RSS 2.0 spec allows omission of title from entry (RT#18817,
+      test from Shlomi)
+    - Can't create "0" values in optional items (RT#11415, based on
+      patch from Shlomi - thanks!)
+    - Remove the executable bit from Makefile.PL
+    - Add test to test regression of CPAN RT#5438 (Shlomi)
+    - More tests...
 
 1.12 - October 25, 2006
-       - Add more tests
-       - make sure META.yml is correctly generated
-       - Fix enclosure parsing (RT#7920, Tatsuhiko Miyagawa)
-       - Incorrect entity encoding in XML output (RT#22467, reported by Stephen Hall)
+    - Add more tests
+    - make sure META.yml is correctly generated
+    - Fix enclosure parsing (RT#7920, Tatsuhiko Miyagawa)
+    - Incorrect entity encoding in XML output (RT#22467, reported by Stephen Hall)
 
 1.11 - October 19, 2006
-       - use HTML::Entities instead of the "homegrown" entity encoding code
-       - Minor doc fix (David Steinbrunner)
-       - Fix encoding of the > char, added tests (RT#19420, Shlomi Fish)
-       - XML::RSS ignores output encoding (RT#11124, RT#7343, test
-         failures on win32, Vaclav Haisman, Steve Peters)
-       - encoding of source element (RT#2285)
-       - use base instead of @ISA
-       - Thanks to Shlomi Fish for helping sorting through the RT queue!
+    - use HTML::Entities instead of the "homegrown" entity encoding code
+    - Minor doc fix (David Steinbrunner)
+    - Fix encoding of the > char, added tests (RT#19420, Shlomi Fish)
+    - XML::RSS ignores output encoding (RT#11124, RT#7343, test
+      failures on win32, Vaclav Haisman, Steve Peters)
+    - encoding of source element (RT#2285)
+    - use base instead of @ISA
+    - Thanks to Shlomi Fish for helping sorting through the RT queue!
 
 1.10 - March 11, 2006
-       - Module (for now) maintained by Ask Bjoern Hansen
-       - Fixed category output in RSS 2.0 (RT#17303, Yasuhiro Onishi)
-       - Update documentation with new Subversion server and bug tracking
-       - Clean up distribution (tests, Makefile.PL, file locations, ...)
+    - Module (for now) maintained by Ask Bjoern Hansen
+    - Fixed category output in RSS 2.0 (RT#17303, Yasuhiro Onishi)
+    - Update documentation with new Subversion server and bug tracking
+    - Clean up distribution (tests, Makefile.PL, file locations, ...)
 
 1.05 - Thu Aug 12 20:54:31 2004
-       - fixed version number
-       - improved RSS 2.0 generation support
-       - typo and documentation fixes
+    - fixed version number
+    - improved RSS 2.0 generation support
+    - typo and documentation fixes
     
 1.04 - Web Mar 03 20:49:43 2004
-       - update Changes to include changes for 1.03
-       
+    - update Changes to include changes for 1.03
+    
 1.03 - Web Mar 03 00:24:07 2004
-       - quell warnings when parsing RSS 0.9x, RSS 2.0
+    - quell warnings when parsing RSS 0.9x, RSS 2.0
    
 1.02 - Mon Feb 20 15:34:21 2003
-       - fixed bug in encode().  encode() did not respect CDATA
-         sections and would mangle them when encountered.  now behaves
-         properly (we hope) even when CDATA and #PCDATA are mixed
-         together liberally
+    - fixed bug in encode().  encode() did not respect CDATA
+      sections and would mangle them when encountered.  now behaves
+      properly (we hope) even when CDATA and #PCDATA are mixed
+      together liberally
 
 1.01 - Mon Feb  3 15:46:25 2003
     * fixed bug with handle_char().  i (brian d foy) mis-diagnosed a
@@ -183,14 +195,14 @@
     standard namespace to the modules list
 
 0.98_03 - Fri Jan 17 19:22:20 2003
-       * changed the handle_char() routine to replace data rather than
-       append to existing data.  this takes care of the doubling problem
-       in the last issue.
+    * changed the handle_char() routine to replace data rather than
+    append to existing data.  this takes care of the doubling problem
+    in the last issue.
  
-       * set the RSS 2.0 namespace in the _initializer routine
+    * set the RSS 2.0 namespace in the _initializer routine
  
-       * all tests now pass.  if this works for people, it could turn into
-       a release candidate
+    * all tests now pass.  if this works for people, it could turn into
+    a release candidate
 
 0.98_02 - Fri Jan 17 19:15:45 2003
     * changed the handle_char() routine to replace data rather than
@@ -222,8 +234,8 @@
 
 0.96 Sat Mar 17 17:21:27 EST 2001
      - fixed RSS 0.91 output. When the source file that is parsed was
-       1.0, it did not properly translate all of the dc elements to
-       0.91 channel elements.
+    1.0, it did not properly translate all of the dc elements to
+    0.91 channel elements.
 
 0.95 Sat Dec 23 11:28:03 EST 2000
      - added support for including external namespaces and elements

Modified: branches/upstream/libxml-rss-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/MANIFEST?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/MANIFEST (original)
+++ branches/upstream/libxml-rss-perl/current/MANIFEST Sun Oct 19 13:43:20 2008
@@ -32,6 +32,7 @@
 lib/XML/RSS/Private/Output/V2_0.pm
 Makefile.PL
 MANIFEST
+META.yml
 README
 t/0.91-parse.t
 t/0.9-generate.t
@@ -45,6 +46,7 @@
 t/2.0-generate.t
 t/2.0-modules.t
 t/2.0-parse-2.t
+t/2.0-parse-self.t
 t/2.0-parse.t
 t/2.0-permalink.t
 t/2.0-wo-title.t
@@ -74,4 +76,3 @@
 t/test_manifest
 t/version.t
 t/xml-header.t
-META.yml

Modified: branches/upstream/libxml-rss-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/META.yml?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/META.yml (original)
+++ branches/upstream/libxml-rss-perl/current/META.yml Sun Oct 19 13:43:20 2008
@@ -1,6 +1,6 @@
 ---
 name: XML-RSS
-version: 1.35
+version: 1.36
 author:
   - 'Original code: Jonathan Eisenzopf <eisen at pobox.com>'
   - |-
@@ -24,7 +24,7 @@
 provides:
   XML::RSS:
     file: lib/XML/RSS.pm
-    version: 1.35
+    version: 1.36
   XML::RSS::Private::Output::Base:
     file: lib/XML/RSS/Private/Output/Base.pm
   XML::RSS::Private::Output::Roles::ImageDims:

Modified: branches/upstream/libxml-rss-perl/current/examples/0.91/fm.rdf
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/examples/0.91/fm.rdf?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/examples/0.91/fm.rdf (original)
+++ branches/upstream/libxml-rss-perl/current/examples/0.91/fm.rdf Sun Oct 19 13:43:20 2008
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
-"http://my.netscape.com/publish/formats/rss-0.91.dtd">
+"http://www.rssboard.org/rss-0.91.dtd">
 <rss version="0.91">
 
 <channel>

Modified: branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91.rdf
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91.rdf?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91.rdf (original)
+++ branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91.rdf Sun Oct 19 13:43:20 2008
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
-            "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+            "http://www.rssboard.org/rss-0.91.dtd">
 
 <rss version="0.91">
 

Modified: branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91_full.rdf
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91_full.rdf?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91_full.rdf (original)
+++ branches/upstream/libxml-rss-perl/current/examples/0.91/fm0.91_full.rdf Sun Oct 19 13:43:20 2008
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
 <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
-            "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+            "http://www.rssboard.org/rss-0.91.dtd">
 
 <rss version="0.91">
 

Modified: branches/upstream/libxml-rss-perl/current/examples/0.91/xmlnews.rdf
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/examples/0.91/xmlnews.rdf?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/examples/0.91/xmlnews.rdf (original)
+++ branches/upstream/libxml-rss-perl/current/examples/0.91/xmlnews.rdf Sun Oct 19 13:43:20 2008
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 
-<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://www.rssboard.org/rss-0.91.dtd">
 
 <rss version="0.91">
 

Modified: branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm (original)
+++ branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm Sun Oct 19 13:43:20 2008
@@ -17,7 +17,7 @@
 
 use vars qw($VERSION $AUTOLOAD @ISA $AUTO_ADD);
 
-$VERSION = '1.35';
+$VERSION = '1.36';
 
 $AUTO_ADD = 0;
 
@@ -991,6 +991,8 @@
 
     $self->_auto_add_modules if $AUTO_ADD;
     $self->{version} = $self->{_internal}->{version};
+
+    return $self;
 }
 
 sub parsefile {
@@ -1008,6 +1010,8 @@
 
     $self->_auto_add_modules if $AUTO_ADD;
     $self->{version} = $self->{_internal}->{version};
+
+    return $self;
 }
 
 # Check if Perl supports the :encoding layer in File I/O.
@@ -1429,7 +1433,9 @@
 
 =item parse ($string)
 
-Parses an RDF Site Summary which is passed into B<parse()> as the first parameter.
+Parses an RDF Site Summary which is passed into B<parse()> as the first 
+parameter. Returns the instance of the object so one can say 
+C<<$rss->parse($string)->other_method()>>.
 
 See the add_module() method for instructions on automatically adding
 modules as a string is parsed.
@@ -1503,7 +1509,7 @@
 is the compartmentalization of their key/value paris in a second-level
 hash.
 
-  $rss->add_item (title=>$title, link=>$link, dc=>{ subject=>$subject, creator=>$creator });
+  $rss->add_item (title=>$title, link=>$link, dc=>{ subject=>$subject, creator=>$creator, date=>$date });
 
 For elements of the Dublin Core module, use the key 'dc'.  For elements
 of the Syndication module, 'syn'.  For elements of the Taxonomy module,

Modified: branches/upstream/libxml-rss-perl/current/lib/XML/RSS/Private/Output/V0_91.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/lib/XML/RSS/Private/Output/V0_91.pm?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/lib/XML/RSS/Private/Output/V0_91.pm (original)
+++ branches/upstream/libxml-rss-perl/current/lib/XML/RSS/Private/Output/V0_91.pm Sun Oct 19 13:43:20 2008
@@ -18,7 +18,7 @@
 {
     return
     qq{<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"\n} .
-    qq{            "http://my.netscape.com/publish/formats/rss-0.91.dtd">\n\n} .
+    qq{            "http://www.rssboard.org/rss-0.91.dtd">\n\n} .
     qq{<rss version="0.91">\n\n};
 }
 

Added: branches/upstream/libxml-rss-perl/current/t/2.0-parse-self.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/t/2.0-parse-self.t?rev=26173&op=file
==============================================================================
--- branches/upstream/libxml-rss-perl/current/t/2.0-parse-self.t (added)
+++ branches/upstream/libxml-rss-perl/current/t/2.0-parse-self.t Sun Oct 19 13:43:20 2008
@@ -1,0 +1,71 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More tests => 4;
+
+use XML::RSS;
+
+my $text = <<"EOF";
+<?xml version="1.0" encoding="UTF-8" ?>
+<?xml-stylesheet href="/rss/news/journalism.xsl" type="text/xsl"?>
+<rss version="2.0">
+<channel><title>Journalism - Topix.net</title>
+<link>http://www.topix.net/news/journalism</link>
+<description>News on Journalism from Topix.net</description>
+<language>en-us</language>
+<copyright>Copyright 2006, Topix.net</copyright>
+<image><title>Topix.net</title>
+<link>http://www.topix.net/</link>
+<url>http://www.topix.net/pics/logo4.gif</url>
+</image>
+<item>
+<title>Gannett Reportedly Mulling Tribune Bid </title>
+<link>http://topix.net/r/0l1Qq8DEtErajq5wDAIHZ0RavmEQ=2BIyZGBfGjcVwyQpW0DFdgUcy=2FtbxGNgMtYEdbU7ucVOR=2Bw2Bu6K4EDvt9=2B7ILEWB6Q5Zxy64f9JxkGU92am=2FLdMjb=2FCxbmfNuBQX6</link>
+<description><![CDATA[Gannett Co., the largest newspaper publisher in the nation, has surfaced as a potential buyer of the Chicago Tribune and other newspapers owned by Tribune Co., according to published reports.<br/><a href="http://www.topix.net/forum/link/thread?forum=news/journalism&artsig=435ed4cd01">Comment</a>]]></description>
+<source url="http://www.topix.net">The Associated Press on Topix.net</source>
+<pubDate>Mon, 13 Nov 2006 15:50:44 GMT</pubDate>
+<guid isPermaLink="false">eQE3vmbXGCzvaHn0deSSyA</guid>
+<enclosure url="http://64.13.133.31/pics/a49e1416bf69bc4399d74c818517214d-l" length="3597" type="image/jpg" />
+</item>
+<textInput>
+<title>Journalism - Topix.net</title>
+<description>Use the text input below to search Topix.net</description>
+<name>q</name>
+<link>http://www.topix.net/search/</link>
+</textInput></channel>
+</rss>
+EOF
+
+{
+    my $rss = XML::RSS->new();
+
+    # TEST
+    is ($rss->parse($text)->{textinput}->{link},
+        "http://www.topix.net/search/", 
+        "->parse() returns the object again"
+    );
+
+    # TEST
+    is ($rss->{textinput}->{link}, "http://www.topix.net/search/",
+        "Testing for textinput link"
+    );
+
+    # TEST
+    is ($rss->{channel}->{link}, "http://www.topix.net/news/journalism",
+        "Testing for channel link"
+    );
+}
+
+{
+    my $rss = XML::RSS->new();
+
+    # TEST
+    is ($rss->parsefile(
+            File::Spec->catfile("t", "data", "2.0", "sf-hs-with-pubDate.rss")
+        )->{channel}->{link},
+        "http://community.livejournal.com/shlomif_hsite/",
+        "->parsefile() returns the object",
+    );
+}

Modified: branches/upstream/libxml-rss-perl/current/t/test_manifest
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/t/test_manifest?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/t/test_manifest (original)
+++ branches/upstream/libxml-rss-perl/current/t/test_manifest Sun Oct 19 13:43:20 2008
@@ -15,6 +15,7 @@
 2.0-permalink.t
 2.0-parse.t
 2.0-parse-2.t
+2.0-parse-self.t
 2.0-wo-title.t
 1.0-to-2.0.t
 auto_add_modules.t

Modified: branches/upstream/libxml-rss-perl/current/t/xml-header.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/t/xml-header.t?rev=26173&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/t/xml-header.t (original)
+++ branches/upstream/libxml-rss-perl/current/t/xml-header.t Sun Oct 19 13:43:20 2008
@@ -80,7 +80,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
 <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
-            "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+            "http://www.rssboard.org/rss-0.91.dtd">
 
 <rss version="0.91">
 EOF
@@ -138,7 +138,7 @@
 <?xml-stylesheet type="text/xsl" href="http://myhost.tld/foo.xsl"?>
 
 <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
-            "http://my.netscape.com/publish/formats/rss-0.91.dtd">
+            "http://www.rssboard.org/rss-0.91.dtd">
 
 <rss version="0.91">
 EOF




More information about the Pkg-perl-cvs-commits mailing list