From d241d1f7268572d11e78210dac40d8c61620fc22 Mon Sep 17 00:00:00 2001 From: Yanko Kaneti <[email protected]> Date: Mon, 3 Aug 2015 20:24:35 +0300 Subject: Update tests for the new non wildard status of .cy
diff --git a/0001-Update-test-to-reflect-the-new-non-wildcarded-.cy.patch b/0001-Update-test-to-reflect-the-new-non-wildcarded-.cy.patch new file mode 100644 index 0000000..b33877d --- /dev/null +++ b/0001-Update-test-to-reflect-the-new-non-wildcarded-.cy.patch @@ -0,0 +1,33 @@ +From b4df917705067b68d2e4b374b998826f21722394 Mon Sep 17 00:00:00 2001 +From: Yanko Kaneti <[email protected]> +Date: Mon, 3 Aug 2015 20:18:18 +0300 +Subject: [PATCH] Update test to reflect the new non wildcarded .cy + +See +https://github.com/publicsuffix/list/commit/e962c2437530c90ce95b4a6a4b5fe9aca0c9a921 +--- + t/01-psuffix.t | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/t/01-psuffix.t b/t/01-psuffix.t +index 169b685..99cc260 100644 +--- a/t/01-psuffix.t ++++ b/t/01-psuffix.t +@@ -57,10 +57,10 @@ is public_suffix('a.b.example.uk.com'), 'uk.com'; + is public_suffix('test.ac'), 'ac'; + + # TLD with only one (wildcard) rule: +-is public_suffix('cy'), undef; +-is public_suffix('c.cy'), 'c.cy'; +-is public_suffix('b.c.cy'), 'c.cy'; +-is public_suffix('a.b.c.cy'), 'c.cy'; ++is public_suffix('il'), undef; ++is public_suffix('c.il'), 'c.il'; ++is public_suffix('b.c.il'), 'c.il'; ++is public_suffix('a.b.c.il'), 'c.il'; + + # More complex suffixes: + is public_suffix('jp'), 'jp'; +-- +2.5.0 + diff --git a/perl-Mozilla-PublicSuffix.spec b/perl-Mozilla-PublicSuffix.spec index 2f26f9c..2e3d266 100644 --- a/perl-Mozilla-PublicSuffix.spec +++ b/perl-Mozilla-PublicSuffix.spec @@ -10,6 +10,9 @@ Source0: http://www.cpan.org/authors/id/R/RS/RSIMOES/Mozilla-PublicSuffix # https://github.com/rsimoes/Mozilla-PublicSuffix/pull/6 Patch1: Mozilla-PublicSuffix-unbundle.patch +# https://github.com/rsimoes/Mozilla-PublicSuffix/pull/8 +Patch2: 0001-Update-test-to-reflect-the-new-non-wildcarded-.cy.patch + BuildArch: noarch BuildRequires: perl >= 0:5.008 BuildRequires: perl(File::Temp) @@ -55,6 +58,7 @@ perl Build.PL installdirs=vendor --config system_publicsuffix_list=/usr/share/pu %changelog * Mon Aug 3 2015 Yanko Kaneti <[email protected]> 0.1.19-7 - Use the new name for the system publicsuffix list +- Update tests for the new non wildard status of .cy * Mon Jun 22 2015 Yanko Kaneti <[email protected]> 0.1.19-6 - Adjust for the separation of perl(open). Bug 1234362 -- cgit v0.10.2 http://pkgs.fedoraproject.org/cgit/perl-Mozilla-PublicSuffix.git/commit/?h=master&id=d241d1f7268572d11e78210dac40d8c61620fc22 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/perl-devel
