Skip to content

Commit

Permalink
Release 0.34
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 27, 2024
1 parent 91a714e commit 64302c7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Revision history for Geo-Coder-List

0.34
0.34 Sat Oct 26 20:42:57 EDT 2024
Turn off on-line tests for smokers
Use Test::DescribeMe to simplify tests
new(): Use Scalar::Util to verify it's an object
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Geo-Coder-List Version 0.33
Geo-Coder-List Version 0.34

INSTALLATION

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Geo::Coder::List - Call many Geo-Coders

# VERSION

Version 0.32
Version 0.34

# SYNOPSIS

Expand Down Expand Up @@ -95,7 +95,8 @@ to set the proxy information from environment variables:
$ua->env_proxy(1);
$geocoder_list->ua($ua);

Note that unlike Geo::Coders there is no read method since that would be pointless.
Note that unlike Geo::Coders,
there is no read method since that would be pointless.

## reverse\_geocode

Expand Down
11 changes: 6 additions & 5 deletions lib/Geo/Coder/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Geo::Coder::List - Call many Geo-Coders
=head1 VERSION
Version 0.33
Version 0.34
=cut

our $VERSION = '0.33';
our $VERSION = '0.34';
our %locations; # L1 cache, always used

=head1 SYNOPSIS
Expand Down Expand Up @@ -770,13 +770,14 @@ sub _get_params

# Populate %rc based on the number and type of arguments
if(($num_args == 1) && (defined $default)) {
%rc = ($default => shift);
# %rc = ($default => shift);
return { $default => shift };
} elsif(($num_args % 2) == 0) {
%rc = @_;
} elsif($num_args == 1) {
Carp::croak("Usage: ", __PACKAGE__, "->", (caller(1))[3], "()");
Carp::croak('Usage: ', __PACKAGE__, '->', (caller(1))[3], '()');
} elsif($num_args == 0 && defined $default) {
Carp::croak("Usage: ", __PACKAGE__, "->", (caller(1))[3], "($default => \$val)");
Carp::croak('Usage: ', __PACKAGE__, '->', (caller(1))[3], '($default => \$val)');
}

return \%rc;
Expand Down

0 comments on commit 64302c7

Please sign in to comment.