r41379 - in /branches/upstream/libxml-rss-perl/current: Build.PL Changes META.yml lib/XML/RSS.pm t/1.0-generate.t t/2.0-modules.t

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Wed Aug 5 21:12:02 UTC 2009


Author: jawnsy-guest
Date: Wed Aug  5 21:11:46 2009
New Revision: 41379

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

Modified:
    branches/upstream/libxml-rss-perl/current/Build.PL
    branches/upstream/libxml-rss-perl/current/Changes
    branches/upstream/libxml-rss-perl/current/META.yml
    branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm
    branches/upstream/libxml-rss-perl/current/t/1.0-generate.t
    branches/upstream/libxml-rss-perl/current/t/2.0-modules.t

Modified: branches/upstream/libxml-rss-perl/current/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/Build.PL?rev=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/Build.PL (original)
+++ branches/upstream/libxml-rss-perl/current/Build.PL Wed Aug  5 21:11:46 2009
@@ -22,6 +22,29 @@
         'Test::Manifest' => '0.9',
         'Test::More' => 0,
     },
-    'license' => "perl", 
+    'license' => "perl",
+    dist_author => 'Shlomi Fish <shlomif at cpan.org>',
+    meta_merge =>
+    {
+        resources =>
+        {
+            repository => "https://svn.perl.org/modules/XML-RSS/trunk",
+            homepage => "http://perl-rss.sourceforge.net/",
+        },
+        keywords =>
+        [
+            "feed",
+            "feeds",
+            "generate",
+            "generating",
+            "parse",
+            "parsing",
+            "rss",
+            "RSS",
+            "web-feed",
+            "web-feeds",
+            "xml",
+        ],
+    },    
 );
 $build->create_build_script;

Modified: branches/upstream/libxml-rss-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/Changes?rev=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/Changes (original)
+++ branches/upstream/libxml-rss-perl/current/Changes Wed Aug  5 21:11:46 2009
@@ -1,4 +1,13 @@
 Revision history for Perl module XML::RSS
+
+1.45 - August 5, 2009
+    - Removed some unused module requirements statements from lib/**.pm.
+    - Added a note about date parsing/generation (thanks to an email
+    correspondent).
+    - Applied a patch by "David White" to have uppercase letter in 
+    namespace/module identifiers.
+        - https://rt.cpan.org/Ticket/Display.html?id=48405
+    - Added "resources" and "keywords" to the Build.PL.
 
 1.44 - April 1, 2009
     - Applied a patch from Simon Wistow (after some modifications) to

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=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/META.yml (original)
+++ branches/upstream/libxml-rss-perl/current/META.yml Wed Aug  5 21:11:46 2009
@@ -1,16 +1,17 @@
 ---
 name: XML-RSS
-version: 1.44
+version: 1.45
 author:
-  - 'Original code: Jonathan Eisenzopf <eisen at pobox.com>'
-  - |-
-    Further changes: Rael Dornfest <rael at oreilly.com>, Ask Bjoern Hansen 
-    <ask at develooper.com>
-  - 'Currently: Shlomi Fish <shlomif at cpan.org>'
+  - 'Shlomi Fish <shlomif at cpan.org>'
 abstract: creates and updates RSS files
 license: perl
 resources:
+  homepage: http://perl-rss.sourceforge.net/
   license: http://dev.perl.org/licenses/
+  repository: https://svn.perl.org/modules/XML-RSS/trunk
+build_requires:
+  Test::Manifest: 0.9
+  Test::More: 0
 requires:
   DateTime: 0
   DateTime::Format::Mail: 0
@@ -18,13 +19,12 @@
   HTML::Entities: 0
   XML::Parser: 2.23
   perl: 5.006
-build_requires:
-  Test::Manifest: 0.9
-  Test::More: 0
+configure_requires:
+  Module::Build: 0.34
 provides:
   XML::RSS:
     file: lib/XML/RSS.pm
-    version: 1.44
+    version: 1.45
   XML::RSS::Private::Output::Base:
     file: lib/XML/RSS/Private/Output/Base.pm
   XML::RSS::Private::Output::Roles::ImageDims:
@@ -39,7 +39,19 @@
     file: lib/XML/RSS/Private/Output/V1_0.pm
   XML::RSS::Private::Output::V2_0:
     file: lib/XML/RSS/Private/Output/V2_0.pm
-generated_by: Module::Build version 0.32
+generated_by: Module::Build version 0.34
 meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.2.html
-  version: 1.2
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: 1.4
+keywords:
+  - feed
+  - feeds
+  - generate
+  - generating
+  - parse
+  - parsing
+  - rss
+  - RSS
+  - web-feed
+  - web-feeds
+  - xml

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=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm (original)
+++ branches/upstream/libxml-rss-perl/current/lib/XML/RSS.pm Wed Aug  5 21:11:46 2009
@@ -5,9 +5,6 @@
 
 use Carp;
 use XML::Parser;
-use HTML::Entities qw(encode_entities_numeric encode_entities);
-use DateTime::Format::Mail;
-use DateTime::Format::W3CDTF;
 
 use XML::RSS::Private::Output::Base;
 use XML::RSS::Private::Output::V0_9;
@@ -17,7 +14,7 @@
 
 use vars qw($VERSION $AUTOLOAD @ISA $AUTO_ADD);
 
-$VERSION = '1.44';
+$VERSION = '1.45';
 
 $AUTO_ADD = 0;
 
@@ -386,8 +383,8 @@
     my $self = shift;
     my $hash = {@_};
 
-    $hash->{prefix} =~ /^[a-z_][a-z0-9.\-_]*$/
-      or croak "a namespace prefix should look like [a-z_][a-z0-9.\\-_]*";
+    $hash->{prefix} =~ /^[a-z_][a-z0-9.\-_]*$/i
+      or croak "a namespace prefix should look like [A-Za-z_][A-Za-z0-9.\\-_]*";
 
     $hash->{uri}
       or croak "a URI must be provided in a namespace declaration";
@@ -1686,6 +1683,11 @@
 users are now able to syndication many different kinds of content
 including news headlines, threaded measages, products catalogs, etc.
 
+B<Note:> In order to parse and generate dates (such as C<pubDate>
+and C<dc:date>) it is recommended to use L<DateTime::Format::Mail> and 
+L<DateTime::Format::W3CDTF> , which is what L<XML::RSS> uses internally
+and requires.
+
 =head1 METHODS
 
 =over 4

Modified: branches/upstream/libxml-rss-perl/current/t/1.0-generate.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/t/1.0-generate.t?rev=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/t/1.0-generate.t (original)
+++ branches/upstream/libxml-rss-perl/current/t/1.0-generate.t Wed Aug  5 21:11:46 2009
@@ -2,9 +2,9 @@
 use warnings;
 
 use Test::More;
-plan tests => 24;
+plan tests => 25;
 
-# 1-2
+# 1
 use_ok("XML::RSS");
 use POSIX;
 
@@ -31,17 +31,18 @@
 use constant RSS_ITEM_DESC  => "Yadda & yadda & yadda";
 use constant RSS_XML_BASE   => "http://example.com/";
 
-# 3
+# 2
 ok($current_date,"Current date:$current_date");
 
-# 4
+# 3
 my $rss = XML::RSS->new(version => RSS_VERSION, 'xml:base' => RSS_XML_BASE);
 isa_ok($rss,"XML::RSS");
 
-# 5-6
+# 4-5
 cmp_ok($rss->{'version'},"eq",RSS_VERSION,"Version is ".RSS_VERSION);
 cmp_ok($rss->{'xml:base'},"eq",RSS_XML_BASE,"Base is ".RSS_XML_BASE);
 
+# 6-16
 ok($rss->channel(
 		 'title'          => "Test 1.0 Feed",
 		 'link'           => "http://example.com/",
@@ -82,6 +83,9 @@
 
 ok($rss->add_module(prefix=>RSS_MOD_PREFIX,uri=>RSS_MOD_URI),
    "Added namespace:".RSS_MOD_PREFIX);
+
+ok($rss->add_module(prefix=>'creativeCommons',uri=>'http://backend.userland.com/creativeCommonsRssModule'),
+   "Added namespace with uppercase letters in prefix");
 
 # Dunno - some degree of weirdness
 # with the constant that I don't

Modified: branches/upstream/libxml-rss-perl/current/t/2.0-modules.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libxml-rss-perl/current/t/2.0-modules.t?rev=41379&op=diff
==============================================================================
--- branches/upstream/libxml-rss-perl/current/t/2.0-modules.t (original)
+++ branches/upstream/libxml-rss-perl/current/t/2.0-modules.t Wed Aug  5 21:11:46 2009
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 3;
+use Test::More tests => 4;
 use XML::RSS;
 
 {
@@ -49,3 +49,9 @@
     like ($@, qr{\Aa URI must be provided},
         "Testing for exception upon an unspecified URI.");
 }
+
+{
+    my $rss = XML::RSS->new( version => '2.0' );
+    # TEST
+    ok($rss->add_module(prefix=>'creativeCommons', uri=>'http://backend.userland.com/creativeCommonsRssModule'),"Added namespace with uppercase letters in prefix");
+}




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