diff -Nru libnet-dict-perl-2.19/Changes libnet-dict-perl-2.21/Changes --- libnet-dict-perl-2.19/Changes 2014-12-17 00:15:11.000000000 +0000 +++ libnet-dict-perl-2.21/Changes 2016-03-01 12:50:41.000000000 +0000 @@ -1,5 +1,18 @@ Revision history for Perl module Net::Dict +2.21 2016-03-01 NEILB + - Use Test::RequiresInternet to skip tests if you don't have + an internet connection and ability to connect to dict.org's + DICT server. This is a holding position until I can add a + mock DICT server. Added a basic require test, so there's + always at least one test that should pass. + +2.20 2016-02-27 NEILB + - Updated tests to reflect changes in dict.org databases. + Thanks to SREZIC for pointing out that they'd changed. + - Fixed typo in doc. Patch from Gregor Herrmann. RT#112367 + - Dropped usage of "use vars". + 2.19 2014-12-17 - Fixed failing tests - caused by updated dictionaries on dict.org - Added a TODO.md file with the things I want to get around to doing. diff -Nru libnet-dict-perl-2.19/debian/changelog libnet-dict-perl-2.21/debian/changelog --- libnet-dict-perl-2.19/debian/changelog 2015-07-21 20:38:22.000000000 +0000 +++ libnet-dict-perl-2.21/debian/changelog 2016-03-11 19:09:57.000000000 +0000 @@ -1,3 +1,37 @@ +libnet-dict-perl (2.21-1) unstable; urgency=medium + + * Import upstream version 2.21 + * Add build dependency on libtest-requiresinternet-perl + * autopkgtest: stop to skip smoke test, the Internet connection issue was + solved by upstream + * debian/rules: override dh_auto_test, just run t/01-require.t + + -- Lucas Kanashiro Fri, 11 Mar 2016 15:55:59 -0300 + +libnet-dict-perl (2.20-1) unstable; urgency=medium + + * Team upload. + * Import upstream version 2.20. + * Drop spelling.patch, merged upstream. + + -- gregor herrmann Sun, 28 Feb 2016 00:30:01 +0100 + +libnet-dict-perl (2.19-2) unstable; urgency=medium + + * Team upload. + + [ Salvatore Bonaccorso ] + * debian/control: Use HTTPS transport protocol for Vcs-Git URI + + [ gregor herrmann ] + * Skip smoke tests during autopkgtest. + The tests need internet access and rely on the server responses. + Thanks to ci.debian.net. + * Add a patch to fix a spelling mistake in the POD. + * Declare compliance with Debian Policy 3.9.7. + + -- gregor herrmann Wed, 24 Feb 2016 17:15:02 +0100 + libnet-dict-perl (2.19-1) unstable; urgency=low * Initial Release. (Closes: #792879) diff -Nru libnet-dict-perl-2.19/debian/control libnet-dict-perl-2.21/debian/control --- libnet-dict-perl-2.19/debian/control 2015-07-21 20:38:22.000000000 +0000 +++ libnet-dict-perl-2.21/debian/control 2016-03-11 19:09:57.000000000 +0000 @@ -5,11 +5,12 @@ Uploaders: Lucas Kanashiro Build-Depends: debhelper (>= 9) Build-Depends-Indep: perl, - libtest-differences-perl -Standards-Version: 3.9.6 + libtest-differences-perl, + libtest-requiresinternet-perl (>= 0.05) +Standards-Version: 3.9.7 Homepage: https://metacpan.org/release/Net-Dict Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libnet-dict-perl.git -Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnet-dict-perl.git +Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libnet-dict-perl.git Testsuite: autopkgtest-pkg-perl Package: libnet-dict-perl diff -Nru libnet-dict-perl-2.19/debian/rules libnet-dict-perl-2.21/debian/rules --- libnet-dict-perl-2.19/debian/rules 2015-07-21 20:38:22.000000000 +0000 +++ libnet-dict-perl-2.21/debian/rules 2016-03-11 19:09:57.000000000 +0000 @@ -6,8 +6,8 @@ %: dh $@ -# Skip all tests, they depend of Internet access override_dh_auto_test: + dh_auto_test -- TEST_FILES=t/01-require.t override_dh_auto_install: dh_auto_install diff -Nru libnet-dict-perl-2.19/lib/Net/Dict.pm libnet-dict-perl-2.21/lib/Net/Dict.pm --- libnet-dict-perl-2.19/lib/Net/Dict.pm 2014-12-12 10:46:12.000000000 +0000 +++ libnet-dict-perl-2.21/lib/Net/Dict.pm 2016-03-01 12:50:58.000000000 +0000 @@ -17,8 +17,8 @@ use Net::Cmd; use Carp; -use vars qw(@ISA $debug); -our $VERSION = '2.19'; +our $VERSION = '2.21'; +our $debug; #----------------------------------------------------------------------- # Default values for arguments to new(). We also use this to @@ -33,7 +33,7 @@ Client => "Net::Dict v$VERSION", ); -@ISA = qw(Net::Cmd IO::Socket::INET); +our @ISA = qw(Net::Cmd IO::Socket::INET); #======================================================================= # diff -Nru libnet-dict-perl-2.19/lib/Net/Dict.pod libnet-dict-perl-2.21/lib/Net/Dict.pod --- libnet-dict-perl-2.19/lib/Net/Dict.pod 2014-04-25 22:44:08.000000000 +0000 +++ libnet-dict-perl-2.21/lib/Net/Dict.pod 2016-03-01 12:52:09.000000000 +0000 @@ -6,7 +6,7 @@ =head1 SYNOPSIS use Net::Dict; - + $dict = Net::Dict->new('dict.server.host'); $h = $dict->define("word"); foreach $i (@{$h}) { @@ -217,7 +217,7 @@ Specify the dictionaries that will be searched during the successive define() or match() calls. Defaults to '*'. -No existance checks are performed by this interface, so you'd better make +No existence checks are performed by this interface, so you'd better make sure the dictionaries you specify are on the server (e.g. by calling dbs()). diff -Nru libnet-dict-perl-2.19/Makefile.PL libnet-dict-perl-2.21/Makefile.PL --- libnet-dict-perl-2.19/Makefile.PL 2014-06-25 22:43:35.000000000 +0000 +++ libnet-dict-perl-2.21/Makefile.PL 2016-03-01 12:44:17.000000000 +0000 @@ -1,7 +1,6 @@ # # Makefile.PL for Net-Dict # -# $Id: Makefile.PL,v 1.2 2003/05/05 23:56:17 neilb Exp $ # use ExtUtils::MakeMaker; @@ -45,6 +44,7 @@ ? (TEST_REQUIRES => { 'Test::More' => 0.88, 'Test::Differences' => 0.62, + 'Test::RequiresInternet' => 0.05, }) : () ), diff -Nru libnet-dict-perl-2.19/MANIFEST libnet-dict-perl-2.21/MANIFEST --- libnet-dict-perl-2.19/MANIFEST 2014-12-17 00:17:37.000000000 +0000 +++ libnet-dict-perl-2.21/MANIFEST 2016-03-01 12:53:53.000000000 +0000 @@ -8,6 +8,7 @@ tkdict examples/simple.pl examples/portuguese.pl +t/01-require.t t/connection.t t/database.t t/define.t diff -Nru libnet-dict-perl-2.19/META.json libnet-dict-perl-2.21/META.json --- libnet-dict-perl-2.19/META.json 2014-12-17 00:17:37.000000000 +0000 +++ libnet-dict-perl-2.21/META.json 2016-03-01 12:53:53.000000000 +0000 @@ -4,7 +4,7 @@ "Neil Bowers " ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.02, CPAN::Meta::Converter version 2.143240", + "generated_by" : "ExtUtils::MakeMaker version 7.02, CPAN::Meta::Converter version 2.150005", "license" : [ "perl_5" ], @@ -27,7 +27,8 @@ "requires" : { "ExtUtils::MakeMaker" : "0", "Test::Differences" : "0.62", - "Test::More" : "0.88" + "Test::More" : "0.88", + "Test::RequiresInternet" : "0.05" } }, "configure" : { @@ -51,5 +52,6 @@ "url" : "https://github.com/neilbowers/Net-Dict" } }, - "version" : "2.19" + "version" : "2.21", + "x_serialization_backend" : "JSON::PP version 2.27203" } diff -Nru libnet-dict-perl-2.19/META.yml libnet-dict-perl-2.21/META.yml --- libnet-dict-perl-2.19/META.yml 2014-12-17 00:17:37.000000000 +0000 +++ libnet-dict-perl-2.21/META.yml 2016-03-01 12:53:53.000000000 +0000 @@ -6,10 +6,11 @@ ExtUtils::MakeMaker: '0' Test::Differences: '0.62' Test::More: '0.88' + Test::RequiresInternet: '0.05' configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.02, CPAN::Meta::Converter version 2.143240' +generated_by: 'ExtUtils::MakeMaker version 7.02, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -29,4 +30,5 @@ perl: '5.006' resources: repository: https://github.com/neilbowers/Net-Dict -version: '2.19' +version: '2.21' +x_serialization_backend: 'CPAN::Meta::YAML version 0.016' diff -Nru libnet-dict-perl-2.19/t/01-require.t libnet-dict-perl-2.21/t/01-require.t --- libnet-dict-perl-2.19/t/01-require.t 1970-01-01 00:00:00.000000000 +0000 +++ libnet-dict-perl-2.21/t/01-require.t 2016-03-01 12:49:56.000000000 +0000 @@ -0,0 +1,8 @@ +#!perl + +use strict; +use warnings; + +use Test::More 0.88 tests => 1; + +require_ok('Net::Dict'); diff -Nru libnet-dict-perl-2.19/t/connection.t libnet-dict-perl-2.21/t/connection.t --- libnet-dict-perl-2.19/t/connection.t 2014-12-17 00:13:45.000000000 +0000 +++ libnet-dict-perl-2.21/t/connection.t 2016-03-01 12:47:26.000000000 +0000 @@ -6,7 +6,8 @@ use strict; $^W = 1; -use Test::More 0.88 tests => 17; +use Test::More 0.88; +use Test::RequiresInternet 0.05 ('dict.org' => 2628); use Test::Differences qw/ eq_or_diff /; use lib 't/lib'; @@ -20,6 +21,8 @@ my $dict; my $string; +plan tests => 17; + $SIG{__WARN__} = sub { $WARNING = join('', @_); }; #----------------------------------------------------------------------- @@ -218,9 +221,9 @@ wn 147311 3002 kB 9247 kB 29 MB moby-thesaurus 30263 528 kB 10 MB 28 MB elements 142 2 kB 17 kB 53 kB -vera 11877 135 kB 222 kB 735 kB -jargon 2314 40 kB 577 kB 1432 kB -foldoc 15031 298 kB 2198 kB 5379 kB +vera 12016 136 kB 213 kB 709 kB +jargon 2314 40 kB 565 kB 1346 kB +foldoc 15126 300 kB 2210 kB 5411 kB easton 3968 64 kB 1077 kB 2648 kB hitchcock 2619 34 kB 33 kB 85 kB bouvier 6797 128 kB 2338 kB 6185 kB @@ -235,7 +238,7 @@ fd-nld-eng 22753 378 kB 366 kB 991 kB fd-eng-ara 87430 1404 kB 721 kB 2489 kB fd-spa-eng 4508 67 kB 77 kB 190 kB -fd-eng-hun 89685 1907 kB 2158 kB 5876 kB +fd-eng-hun 89685 1907 kB 2159 kB 5876 kB fd-ita-eng 3435 48 kB 37 kB 92 kB fd-wel-eng 734 9 kB 7 kB 17 kB fd-eng-nld 7720 119 kB 168 kB 446 kB @@ -253,11 +256,11 @@ fd-fra-nld 9610 152 kB 195 kB 502 kB fd-ita-deu 2929 40 kB 37 kB 87 kB fd-eng-hin 25648 418 kB 1041 kB 3019 kB -fd-deu-eng 81622 1613 kB 1346 kB 4176 kB +fd-deu-eng 81627 1614 kB 1346 kB 4176 kB fd-por-eng 10667 164 kB 125 kB 315 kB fd-lat-deu 7342 107 kB 105 kB 365 kB fd-jpn-deu 447 5 kB 6 kB 12 kB -fd-eng-deu 93279 1708 kB 1403 kB 4212 kB +fd-eng-deu 93283 1708 kB 1403 kB 4212 kB fd-eng-scr 605 7 kB 8 kB 21 kB fd-eng-rom 996 14 kB 12 kB 31 kB fd-iri-eng 1191 16 kB 11 kB 28 kB @@ -267,7 +270,7 @@ fd-eng-rus 1699 23 kB 26 kB 71 kB fd-afr-deu 3806 52 kB 49 kB 129 kB fd-eng-por 15854 248 kB 239 kB 634 kB -fd-hun-eng 139941 3343 kB 2244 kB 6184 kB +fd-hun-eng 139941 3344 kB 2245 kB 6184 kB fd-eng-swe 5485 71 kB 75 kB 191 kB fd-deu-ita 4460 64 kB 38 kB 99 kB fd-cro-eng 79821 1791 kB 1016 kB 2899 kB diff -Nru libnet-dict-perl-2.19/t/database.t libnet-dict-perl-2.21/t/database.t --- libnet-dict-perl-2.19/t/database.t 2014-12-17 00:12:39.000000000 +0000 +++ libnet-dict-perl-2.21/t/database.t 2016-03-01 12:47:40.000000000 +0000 @@ -3,7 +3,8 @@ # database.t - Net::Dict testsuite for database related methods # -use Test::More 0.88 tests => 13; +use Test::More 0.88; +use Test::RequiresInternet 0.05 ('dict.org' => 2628); use Test::Differences qw/ eq_or_diff /; use Net::Dict; use lib 't/lib'; @@ -18,6 +19,8 @@ my $dbinfo; my $title; +plan tests => 13; + $SIG{__WARN__} = sub { $WARNING = join('', @_); }; #----------------------------------------------------------------------- @@ -177,7 +180,7 @@ fd-cro-eng:Croatian-English Freedict Dictionary fd-cze-eng:Czech-English Freedict dictionary fd-dan-eng:Danish-English FreeDict Dictionary ver. 0.2.1 -fd-deu-eng:German-English FreeDict Dictionary ver. 0.3.3 +fd-deu-eng:German-English FreeDict Dictionary ver. 0.3.4 fd-deu-fra:German-French FreeDict Dictionary ver. 0.3.1 fd-deu-ita:German-Italian FreeDict Dictionary ver. 0.1.1 fd-deu-nld:German-Dutch FreeDict Dictionary ver. 0.1.1 @@ -185,7 +188,7 @@ fd-eng-ara:English-Arabic FreeDict Dictionary ver. 0.6.2 fd-eng-cro:English-Croatian Freedict Dictionary fd-eng-cze:English-Czech fdicts/FreeDict Dictionary -fd-eng-deu:English-German FreeDict Dictionary ver. 0.3.5 +fd-eng-deu:English-German FreeDict Dictionary ver. 0.3.6 fd-eng-fra:English-French FreeDict Dictionary ver. 0.1.4 fd-eng-hin:English-Hindi FreeDict Dictionary ver. 1.5.1 fd-eng-hun:English-Hungarian FreeDict Dictionary ver. 0.1 @@ -207,7 +210,7 @@ fd-fra-nld:French-Dutch FreeDict Dictionary ver. 0.1.2 fd-gla-deu:Scottish Gaelic-German FreeDict Dictionary ver. 0.1.1 fd-hin-eng:English-Hindi Freedict Dictionary [reverse index] -fd-hun-eng:Hungarian-English FreeDict Dictionary ver. 0.3 +fd-hun-eng:Hungarian-English FreeDict Dictionary ver. 0.3.1 fd-iri-eng:Irish-English Freedict dictionary fd-ita-deu:Italian-German FreeDict Dictionary ver. 0.1.1 fd-ita-eng:Italian-English FreeDict Dictionary ver. 0.1.1 @@ -227,7 +230,7 @@ fd-tur-deu:Turkish-German FreeDict Dictionary ver. 0.1.1 fd-tur-eng:Turkish-English FreeDict Dictionary ver. 0.2.1 fd-wel-eng:Welsh-English Freedict dictionary -foldoc:The Free On-line Dictionary of Computing (20 July 2014) +foldoc:The Free On-line Dictionary of Computing (18 March 2015) gaz2k-counties:U.S. Gazetteer Counties (2000) gaz2k-places:U.S. Gazetteer Places (2000) gaz2k-zips:U.S. Gazetteer Zip Code Tabulation Areas (2000) @@ -236,7 +239,7 @@ jargon:The Jargon File (version 4.4.7, 29 Dec 2003) moby-thesaurus:Moby Thesaurus II by Grady Ward, 1.0 trans:Translating Dictionaries -vera:V.E.R.A. -- Virtual Entity of Relevant Acronyms (January 2014) +vera:V.E.R.A. -- Virtual Entity of Relevant Acronyms (September 2014) wn:WordNet (r) 3.0 (2006) world02:CIA World Factbook 2002 ==== dbtitle-wn ==== diff -Nru libnet-dict-perl-2.19/t/define.t libnet-dict-perl-2.21/t/define.t --- libnet-dict-perl-2.19/t/define.t 2014-06-25 21:46:13.000000000 +0000 +++ libnet-dict-perl-2.21/t/define.t 2016-03-01 12:47:51.000000000 +0000 @@ -3,7 +3,8 @@ # define.t - Net::Dict testsuite for define() method # -use Test::More 0.88 tests => 16; +use Test::More 0.88; +use Test::RequiresInternet 0.05 ('dict.org' => 2628); use Net::Dict; use lib 't/lib'; use Net::Dict::TestConfig qw/ $TEST_HOST $TEST_PORT /; @@ -18,6 +19,8 @@ my $dbinfo; my $title; +plan tests => 16; + $SIG{__WARN__} = sub { $WARNING = join('', @_); }; #----------------------------------------------------------------------- diff -Nru libnet-dict-perl-2.19/t/match.t libnet-dict-perl-2.21/t/match.t --- libnet-dict-perl-2.19/t/match.t 2014-06-25 22:36:54.000000000 +0000 +++ libnet-dict-perl-2.21/t/match.t 2016-03-01 12:48:13.000000000 +0000 @@ -3,7 +3,8 @@ # match.t - Net::Dict testsuite for match() method # -use Test::More 0.88 tests => 15; +use Test::More 0.88; +use Test::RequiresInternet 0.05 ('dict.org' => 2628); use Test::Differences qw/ eq_or_diff /; use Net::Dict; use lib 't/lib'; @@ -21,6 +22,8 @@ my %strathash; my $title; +plan tests => 15; + if (defined $VERBOSE && $VERBOSE==1) { print STDERR "\nVERBOSE ON\n"; }