From bc5f070b87b6f4bcc2f3b1eb5b6fb6b4cf4850b1 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Fri, 11 Jul 2014 18:27:00 +0000 Subject: [PATCH] - Merge in upstream fix: https://rt.cpan.org/Public/Bug/Display.html?ShowHeaders=1;id=94259 PR: 190088 Submitted by: awalker@sourcefire.com Approved by: maintainer timeout (1 month+) --- devel/p5-JSON-Schema/Makefile | 2 +- .../files/patch-lib__JSON__Schema__Helper.pm | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 devel/p5-JSON-Schema/files/patch-lib__JSON__Schema__Helper.pm diff --git a/devel/p5-JSON-Schema/Makefile b/devel/p5-JSON-Schema/Makefile index d7223d9bb223..7fd7b7be29ce 100644 --- a/devel/p5-JSON-Schema/Makefile +++ b/devel/p5-JSON-Schema/Makefile @@ -3,7 +3,7 @@ PORTNAME= JSON-Schema PORTVERSION= 0.015 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/devel/p5-JSON-Schema/files/patch-lib__JSON__Schema__Helper.pm b/devel/p5-JSON-Schema/files/patch-lib__JSON__Schema__Helper.pm new file mode 100644 index 000000000000..edc86558e18a --- /dev/null +++ b/devel/p5-JSON-Schema/files/patch-lib__JSON__Schema__Helper.pm @@ -0,0 +1,32 @@ +--- ./lib/JSON/Schema/Helper.pm.orig 2014-05-21 15:43:01.000000000 -0400 ++++ ./lib/JSON/Schema/Helper.pm 2014-05-21 15:49:17.000000000 -0400 +@@ -308,12 +308,12 @@ + if ((defined $schema->{'minimumCanEqual'} and not $schema->{'minimumCanEqual'}) + or $schema->{'exclusiveMinimum'}) + { +- $addError->("must be greater than minimum value '" . $schema->{'minimum'}) . "'" ++ $addError->("must be greater than minimum value '" . $schema->{'minimum'} . "'") + if $value lt $schema->{'minimum'}; + } + else + { +- $addError->("must be greater than or equal to minimum value '" . $schema->{'minimum'}) . "'" ++ $addError->("must be greater than or equal to minimum value '" . $schema->{'minimum'} . "'") + if $value le $schema->{'minimum'}; + } + } +@@ -336,12 +336,12 @@ + if ((defined $schema->{'maximumCanEqual'} and not $schema->{'maximumCanEqual'}) + or $schema->{'exclusiveMaximum'}) + { +- $addError->("must be less than or equal to maximum value '" . $schema->{'maximum'}) . "'" ++ $addError->("must be less than or equal to maximum value '" . $schema->{'maximum'} . "'") + if $value gt $schema->{'maximum'}; + } + else + { +- $addError->("must be less than or equal to maximum value '" . $schema->{'maximum'}) . "'" ++ $addError->("must be less than or equal to maximum value '" . $schema->{'maximum'} . "'") + if $value ge $schema->{'maximum'}; + } + }