r41381 - in /trunk/libxml-rss-perl: Build.PL Changes META.yml debian/changelog debian/control debian/copyright debian/libxml-rss-perl.docs debian/rules 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:31:05 UTC 2009


Author: jawnsy-guest
Date: Wed Aug  5 21:30:57 2009
New Revision: 41381

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=41381
Log:
* New upstream release
  + Remove unneeded "use" statements from the modules
  + Have an uppercase letter in namespace/module identifiers (RT#48405)
* Remove libxml-rss-perl.docs (TODO isn't all that important)
* Change to new short rules format
* Update copyright information (for M::I)
* Remove libtest-simple-perl from B-D-I since it was unversioned, and that
  is provided by perl-modules anyway

Removed:
    trunk/libxml-rss-perl/debian/libxml-rss-perl.docs
Modified:
    trunk/libxml-rss-perl/Build.PL
    trunk/libxml-rss-perl/Changes
    trunk/libxml-rss-perl/META.yml
    trunk/libxml-rss-perl/debian/changelog
    trunk/libxml-rss-perl/debian/control
    trunk/libxml-rss-perl/debian/copyright
    trunk/libxml-rss-perl/debian/rules
    trunk/libxml-rss-perl/lib/XML/RSS.pm
    trunk/libxml-rss-perl/t/1.0-generate.t
    trunk/libxml-rss-perl/t/2.0-modules.t

Modified: trunk/libxml-rss-perl/Build.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/Build.PL?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/Build.PL (original)
+++ trunk/libxml-rss-perl/Build.PL Wed Aug  5 21:30:57 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: trunk/libxml-rss-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/Changes?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/Changes (original)
+++ trunk/libxml-rss-perl/Changes Wed Aug  5 21:30:57 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: trunk/libxml-rss-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/META.yml?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/META.yml (original)
+++ trunk/libxml-rss-perl/META.yml Wed Aug  5 21:30:57 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: trunk/libxml-rss-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/debian/changelog?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/debian/changelog (original)
+++ trunk/libxml-rss-perl/debian/changelog Wed Aug  5 21:30:57 2009
@@ -1,8 +1,19 @@
-libxml-rss-perl (1.44-2) UNRELEASED; urgency=low
-
+libxml-rss-perl (1.45-1) UNRELEASED; urgency=low
+
+  [ Jonathan Yu ]
+  * New upstream release
+    + Remove unneeded "use" statements from the modules
+    + Have an uppercase letter in namespace/module identifiers (RT#48405)
+  * Remove libxml-rss-perl.docs (TODO isn't all that important)
+  * Change to new short rules format
+  * Update copyright information (for M::I)
+  * Remove libtest-simple-perl from B-D-I since it was unversioned, and that
+    is provided by perl-modules anyway
+
+  [ Nathan Handler ]
   * debian/watch: Update to ignore development releases.
 
- -- Nathan Handler <nhandler at ubuntu.com>  Sat, 06 Jun 2009 01:38:13 +0000
+ -- Jonathan Yu <frequency at cpan.org>  Wed, 05 Aug 2009 13:14:20 -0400
 
 libxml-rss-perl (1.44-1) unstable; urgency=low
 

Modified: trunk/libxml-rss-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/debian/control?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/debian/control (original)
+++ trunk/libxml-rss-perl/debian/control Wed Aug  5 21:30:57 2009
@@ -1,18 +1,17 @@
 Source: libxml-rss-perl
 Section: perl
 Priority: optional
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: perl (>= 5.6.0-16), libtest-manifest-perl (>= 0.9),
+ libxml-parser-perl (>= 2.23), libdatetime-format-mail-perl, libtest-pod-perl,
+ libdatetime-format-w3cdtf-perl, libtest-pod-coverage-perl,
+ libtest-differences-perl
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Jay Bonci <jaybonci at debian.org>,
- Brian Cassidy <brian.cassidy at gmail.com>,
+Uploaders: gregor herrmann <gregoa at debian.org>, Gunnar Wolf <gwolf at debian.org>,
+ Brian Cassidy <brian.cassidy at gmail.com>, Jay Bonci <jaybonci at debian.org>,
  Vincent Danjean <vdanjean at debian.org>, Damyan Ivanov <dmn at debian.org>,
- gregor herrmann <gregoa at debian.org>, Gunnar Wolf <gwolf at debian.org>,
- Ryan Niebur <ryanryan52 at gmail.com>
-Standards-Version: 3.8.1
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: perl, libtest-manifest-perl (>= 0.9), libtest-simple-perl,
- libxml-parser-perl (>= 2.23), libdatetime-format-mail-perl,
- libdatetime-format-w3cdtf-perl, libtest-differences-perl,
- libtest-pod-coverage-perl, libtest-pod-perl
+ Ryan Niebur <ryanryan52 at gmail.com>, Jonathan Yu <frequency at cpan.org>
+Standards-Version: 3.8.2
 Homepage: http://search.cpan.org/dist/XML-RSS/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libxml-rss-perl/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-perl/trunk/libxml-rss-perl/

Modified: trunk/libxml-rss-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/debian/copyright?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/debian/copyright (original)
+++ trunk/libxml-rss-perl/debian/copyright Wed Aug  5 21:30:57 2009
@@ -5,17 +5,24 @@
 Upstream-Name: XML-RSS
 
 Files: *
-Copyright:
- 2001 Jonathan Eisenzopf <eisen at pobox.com> and Rael Dornfest <rael at oreilly.com>
- 2006-2007 Ask Bjoern Hansen <ask at develooper.com>.
+Copyright: 2006-2007 Ask Bjoern Hansen <ask at develooper.com>
+ 2001, Jonathan Eisenzopf <eisen at pobox.com>
+ 2001, Rael Dornfest <rael at oreilly.com>
 License-Alias: Perl
 License: Artistic | GPL-1+
 
 Files: debian/*
-Copyright: 
+Copyright: 2009, Jonathan Yu <frequency at cpan.org>
+ 2009, Ryan Niebur <ryanryan52 at gmail.com>
+ 2009, gregor herrmann <gregoa at debian.org>
+ 2007-2009, members of the Debian Perl Group, cf. debian/changelog
+ 2008, Brian Cassidy <brian.cassidy at gmail.com>
+ 2008, gregor herrmann <gregoa at debian.org>
+ 2008, Gunnar Wolf <gwolf at debian.org>
+ 2007, Damyan Ivanov <dmn at debian.org>
+ 2007, Vincent Danjean <vdanjean at debian.org>
+ 2004, Jay Bonci <jaybonci at debian.org>
  1999-2003, Ardo van Rangelrooij <ardo at debian.org>
- 2004,      Jay Bonci <jaybonci at debian.org>
- 2007-2009, members of the Debian Perl Group, cf. debian/changelog
 License: Artistic | GPL-1+
 
 License: Artistic

Modified: trunk/libxml-rss-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/debian/rules?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/debian/rules (original)
+++ trunk/libxml-rss-perl/debian/rules Wed Aug  5 21:30:57 2009
@@ -1,23 +1,4 @@
 #!/usr/bin/make -f
 
-build: build-stamp
-build-stamp:
-	dh build
-	touch $@
-
-clean:
+%:
 	dh $@
-
-install: install-stamp
-install-stamp: build-stamp
-	dh install
-	touch $@
-
-binary-arch:
-
-binary-indep: install
-	dh $@
-
-binary: binary-arch binary-indep
-
-.PHONY: binary binary-arch binary-indep install clean build

Modified: trunk/libxml-rss-perl/lib/XML/RSS.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/lib/XML/RSS.pm?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/lib/XML/RSS.pm (original)
+++ trunk/libxml-rss-perl/lib/XML/RSS.pm Wed Aug  5 21:30:57 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: trunk/libxml-rss-perl/t/1.0-generate.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/t/1.0-generate.t?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/t/1.0-generate.t (original)
+++ trunk/libxml-rss-perl/t/1.0-generate.t Wed Aug  5 21:30:57 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: trunk/libxml-rss-perl/t/2.0-modules.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libxml-rss-perl/t/2.0-modules.t?rev=41381&op=diff
==============================================================================
--- trunk/libxml-rss-perl/t/2.0-modules.t (original)
+++ trunk/libxml-rss-perl/t/2.0-modules.t Wed Aug  5 21:30:57 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