[Bps-public-commit] Parse-ACNS branch, master, updated. 0.03-8-g65af26b

Alex Vandiver alexmv at bestpractical.com
Mon Jun 9 21:33:51 EDT 2014


The branch, master has been updated
       via  65af26be8a162f3f266645ae46cfc3f3d485899d (commit)
       via  1d1e83d54a993705524f9ee80fe3e501985c7c54 (commit)
      from  855fa6b0d861884f9e022a4d48db803e438fedbb (commit)

Summary of changes:
 Changes           | 4 ++++
 META.yml          | 2 +-
 lib/Parse/ACNS.pm | 5 ++++-
 3 files changed, 9 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 1d1e83d54a993705524f9ee80fe3e501985c7c54
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri May 17 22:39:27 2013 +0400

    relax namespace check
    
    treat everything that matches ^http://www\.acns\.net\b as
    http://www.acns.net/ACNS.

diff --git a/lib/Parse/ACNS.pm b/lib/Parse/ACNS.pm
index 0509ac8..0e18537 100644
--- a/lib/Parse/ACNS.pm
+++ b/lib/Parse/ACNS.pm
@@ -199,6 +199,9 @@ sub parse {
         elsif ( $uri eq 'http://www.acns.net/ACNS' ) {
             # do nothing
         }
+        elsif ( $uri =~ m{^http://www\.acns\.net\b}i ) {
+            $root->setNamespaceDeclURI($root->prefix, 'http://www.acns.net/ACNS');
+        }
         else {
             die "Top level element has '$uri' namespace and it's not something we can parse as ACNS";
         }

commit 65af26be8a162f3f266645ae46cfc3f3d485899d
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri May 17 22:42:53 2013 +0400

    bump version, 0.05

diff --git a/Changes b/Changes
index 632d8d6..92a9851 100644
--- a/Changes
+++ b/Changes
@@ -1,3 +1,7 @@
+0.05 2013-05-17
+
+    * relax namespace check a bit
+
 0.04 2013-02-24
 
     * support for ACNS 2.0, schema versions 1.0, 1.1 and 1.2.
diff --git a/META.yml b/META.yml
index 62247d7..8753bdd 100644
--- a/META.yml
+++ b/META.yml
@@ -32,4 +32,4 @@ requires:
   perl: 5.8.0
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.04
+version: 0.05
diff --git a/lib/Parse/ACNS.pm b/lib/Parse/ACNS.pm
index 0e18537..c9a14db 100644
--- a/lib/Parse/ACNS.pm
+++ b/lib/Parse/ACNS.pm
@@ -4,7 +4,7 @@ use warnings;
 
 
 package Parse::ACNS;
-our $VERSION = '0.04';
+our $VERSION = '0.05';
 
 =head1 NAME
 

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list