Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c87a551

Browse files
committed
Locale-Codes: Update to 3.53
Fixed the default error condition in legacy modules.
1 parent f8b59d1 commit c87a551

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+539
-407
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ package Maintainers;
918918
},
919919

920920
'Locale::Codes' => {
921-
'DISTRIBUTION' => 'SBECK/Locale-Codes-3.51.tar.gz',
921+
'DISTRIBUTION' => 'SBECK/Locale-Codes-3.53.tar.gz',
922922
'FILES' => q[cpan/Locale-Codes],
923923
'EXCLUDED' => [
924924
qw( README.first

cpan/Locale-Codes/lib/Locale/Codes.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use Carp;
1515
use Locale::Codes::Constants;
1616

1717
our($VERSION);
18-
$VERSION='3.51';
18+
$VERSION='3.53';
1919

2020
use Exporter qw(import);
2121
our(@EXPORT_OK,%EXPORT_TAGS);

cpan/Locale-Codes/lib/Locale/Codes/Changes.pod

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,34 @@ September, December). I will also check on request, so if a code
2222
changes that you use, feel free to contact me. Any time there are new
2323
codes, I will add them to the module and release a new version.
2424

25-
=head1 VERSION 3.54 (planned 2017-12-01; sbeck)
25+
=head1 VERSION 3.55 (planned 2017-12-01; sbeck)
2626

27-
=head1 VERSION 3.53 (planned 2017-09-01; sbeck)
27+
=head1 VERSION 3.54 (planned 2017-09-01; sbeck)
2828

29-
=head1 VERSION 3.52 (planned 2017-06-01; sbeck)
29+
=head1 VERSION 3.53 (2017-07-25; sbeck)
30+
31+
NEW CODE(s)
32+
33+
=over 4
34+
35+
=item Fixed the default error condition in legacy modules.
36+
37+
With the addition of the OO module, better error handling was added (and it
38+
was on by default). The non-OO (legacy) modules did not report errors, so
39+
code that uses them, would now behave differently if invalid data were
40+
passed in.
41+
42+
I have turned off error handling by default in the legacy modules. The
43+
show_errors method was added to each of the non-OO modules to report errors
44+
if desired.
45+
46+
Reported by dmaestro on GitHub.
47+
48+
=back
49+
50+
=head1 VERSION 3.52 (2017-06-01; sbeck)
51+
52+
NEW CODE(s)
3053

3154
=head1 VERSION 3.51 (2017-04-10; sbeck)
3255

cpan/Locale-Codes/lib/Locale/Codes/Constants.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ package Locale::Codes::Constants;
77

88
# This file was automatically generated. Any changes to this file will
99
# be lost the next time 'gen_mods' is run.
10-
# Generated on: Mon Apr 10 10:38:20 EDT 2017
10+
# Generated on: Tue Jul 25 13:42:10 EDT 2017
1111

1212
use strict;
1313
use warnings;
1414
require 5.006;
1515
use Exporter qw(import);
1616

1717
our($VERSION,@EXPORT);
18-
$VERSION = '3.51';
18+
$VERSION = '3.53';
1919

2020
################################################################################
2121
our(@CONSTANTS,%ALL_CODESETS);

cpan/Locale-Codes/lib/Locale/Codes/Country.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ package Locale::Codes::Country;
77

88
# This file was automatically generated. Any changes to this file will
99
# be lost the next time 'gen_mods' is run.
10-
# Generated on: Mon Apr 10 10:38:20 EDT 2017
10+
# Generated on: Tue Jul 25 13:42:10 EDT 2017
1111

1212
use strict;
1313
use warnings;
1414
require 5.006;
1515
use Exporter qw(import);
1616

1717
our($VERSION,@EXPORT);
18-
$VERSION = '3.51';
18+
$VERSION = '3.53';
1919

2020
################################################################################
2121
use Locale::Codes;
@@ -31,8 +31,9 @@ use Locale::Codes::Constants;
3131
push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_COUNTRY);
3232

3333
our $obj = new Locale::Codes('country');
34+
$obj->show_errors(0);
3435

35-
sub _show_errors {
36+
sub show_errors {
3637
my($val) = @_;
3738
$obj->show_errors($val);
3839
}

cpan/Locale-Codes/lib/Locale/Codes/Country.pod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ qualified with the package name:
6464

6565
=over 4
6666

67+
=item B<Locale::Codes::Country::show_errors(FLAG)>
68+
69+
By default, invalid input will produce empty results, but no errors. By
70+
passing in a non-zero value of FLAG, errors will be produced.
71+
6772
=item B<Locale::Codes::Country::rename_country(CODE ,NEW_NAME [,CODESET])>
6873

6974
See B<rename_code> in L<Locale::Codes>

cpan/Locale-Codes/lib/Locale/Codes/Country_Codes.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Locale::Codes::Country_Codes;
33

44
# This file was automatically generated. Any changes to this file will
55
# be lost the next time 'harvest_data' is run.
6-
# Generated on: Mon Apr 10 10:37:11 EDT 2017
6+
# Generated on: Tue Jul 25 13:41:00 EDT 2017
77

88
use strict;
99
require 5.006;
1010
use warnings;
1111
use utf8;
1212

1313
our($VERSION);
14-
$VERSION='3.51';
14+
$VERSION='3.53';
1515

1616
$Locale::Codes::Data{'country'}{'id'} = '0280';
1717

cpan/Locale-Codes/lib/Locale/Codes/Country_Retired.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ Locale::Codes::Country_Retired;
33

44
# This file was automatically generated. Any changes to this file will
55
# be lost the next time 'deprecate_codes' is run.
6-
# Generated on: Mon Apr 10 10:39:56 EDT 2017
6+
# Generated on: Tue Jul 25 13:42:42 EDT 2017
77

88
use strict;
99
require 5.006;
1010
use warnings;
1111
use utf8;
1212

1313
our($VERSION);
14-
$VERSION='3.51';
14+
$VERSION='3.53';
1515

1616
$Locale::Codes::Retired{'country'}{'alpha-2'}{'code'} = {
1717
q(an) => q(Netherlands Antilles),

cpan/Locale-Codes/lib/Locale/Codes/Currency.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ package Locale::Codes::Currency;
77

88
# This file was automatically generated. Any changes to this file will
99
# be lost the next time 'gen_mods' is run.
10-
# Generated on: Mon Apr 10 10:38:20 EDT 2017
10+
# Generated on: Tue Jul 25 13:42:10 EDT 2017
1111

1212
use strict;
1313
use warnings;
1414
require 5.006;
1515
use Exporter qw(import);
1616

1717
our($VERSION,@EXPORT);
18-
$VERSION = '3.51';
18+
$VERSION = '3.53';
1919

2020
################################################################################
2121
use Locale::Codes;
@@ -31,8 +31,9 @@ use Locale::Codes::Constants;
3131
push(@EXPORT,@Locale::Codes::Constants::CONSTANTS_CURRENCY);
3232

3333
our $obj = new Locale::Codes('currency');
34+
$obj->show_errors(0);
3435

35-
sub _show_errors {
36+
sub show_errors {
3637
my($val) = @_;
3738
$obj->show_errors($val);
3839
}

cpan/Locale-Codes/lib/Locale/Codes/Currency.pod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ qualified with the package name:
6464

6565
=over 4
6666

67+
=item B<Locale::Codes::Currency::show_errors(FLAG)>
68+
69+
By default, invalid input will produce empty results, but no errors. By
70+
passing in a non-zero value of FLAG, errors will be produced.
71+
6772
=item B<Locale::Codes::Currency::rename_currency(CODE ,NEW_NAME [,CODESET])>
6873

6974
See B<rename_code> in L<Locale::Codes>

0 commit comments

Comments
 (0)