[libcatmandu-perl] 79/101: bump required version of URI::Template

Jonas Smedegaard dr at jones.dk
Tue Feb 23 13:43:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libcatmandu-perl.

commit 6db313601e3e76bf86a6b3106484f36737ab1834
Author: Nicolas Steenlant <nicolas.steenlant at ugent.be>
Date:   Tue Feb 9 10:15:28 2016 +0100

    bump required version of URI::Template
---
 Changes                  | 3 +++
 cpanfile                 | 2 +-
 lib/Catmandu/Importer.pm | 4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Changes b/Changes
index c9cbde4..fefe030 100644
--- a/Changes
+++ b/Changes
@@ -1,6 +1,9 @@
 Revision history for Catmandu
 
 {{$NEXT}}
+  - bump required version of URI::Template because we need variable names
+    returned in order
+  - pod fixes
 
 1.00_01  2016-02-04 16:30:11 CET
   - lots of pod
diff --git a/cpanfile b/cpanfile
index aa872a6..c3dad60 100644
--- a/cpanfile
+++ b/cpanfile
@@ -42,7 +42,7 @@ requires 'Throwable', '0.200004';
 requires 'Try::Tiny::ByClass', '0.01';
 requires 'URI', 0;
 requires 'URI::Escape', 0;
-requires 'URI::Template', 0;
+requires 'URI::Template', 0.22;
 requires 'YAML::XS', '0.41';
 
 recommends 'Log::Log4perl', '1.44';
diff --git a/lib/Catmandu/Importer.pm b/lib/Catmandu/Importer.pm
index 239ed12..a384135 100644
--- a/lib/Catmandu/Importer.pm
+++ b/lib/Catmandu/Importer.pm
@@ -100,14 +100,14 @@ sub _build_fh {
                 if (is_hash_ref($vars)) { # named variables
                     for my $key (keys %$vars) {
                         my $var = $vars->{$key};
-                        $body =~ s/{$key}/$var/; 
+                        $body =~ s/{$key}/$var/;
                     }
                 } else { # positional variables
                     if (is_value($vars)) {
                         $vars = [split ',', $vars];
                     }
                     for my $var (@$vars) {
-                        $body =~ s/{\w+}/$var/; 
+                        $body =~ s/{\w+}/$var/;
                     }
                 }
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcatmandu-perl.git



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