From: Mark Wells Date: Sat, 14 Mar 2015 00:46:07 +0000 (-0700) Subject: allow Moo < 1.0 X-Git-Url: http://git.freeside.biz/gitweb/?p=Geo-USCensus-Geocoding.git;a=commitdiff_plain;h=f81bdf93c112e3222ba9f0be2477fd3403fdc9f5 allow Moo < 1.0 --- diff --git a/Geocoding/Result.pm b/Geocoding/Result.pm index e0e271a..bf595ca 100644 --- a/Geocoding/Result.pm +++ b/Geocoding/Result.pm @@ -3,17 +3,19 @@ package Geo::USCensus::Geocoding::Result; use Moo; # just for attribute declaration has 'is_match' => ( is => 'rw', default => 0 ); -has [ 'content', - 'match_level', - 'address', - 'state', - 'county', - 'tract', - 'block', - 'error_message', - 'latitude', - 'longitude' - ] => ( is => 'rw', default => '' ); +foreach ( 'content', + 'match_level', + 'address', + 'state', + 'county', + 'tract', + 'block', + 'error_message', + 'latitude', + 'longitude' + ) { + has $_ => ( is => 'rw', default => '' ); +} sub censustract { my $self = shift; diff --git a/Makefile.PL b/Makefile.PL index 908534b..e0794f4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,7 +16,7 @@ WriteMakefile( 'Test::More' => 0, 'LWP::UserAgent' => 0, 'Text::CSV' => 0, - 'Moo' => 1, + 'Moo' => 0, }, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Geo-USCensus-Geocoding-*' }, diff --git a/debian/changelog b/debian/changelog index 4c4729e..4494b38 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +libgeo-uscensus-geocoding-perl (0.01-2) unstable; urgency=low + + * Allow Moo versions < 1.0 + * Fix transposition of latitude and longitude + + -- Mark Wells Fri, 13 Mar 2015 17:43:19 -0700 + libgeo-uscensus-geocoding-perl (0.01-1) unstable; urgency=low * Initial Release. diff --git a/debian/control b/debian/control index 2f2102a..003d449 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: perl Priority: optional Maintainer: Mark Wells Build-Depends: debhelper (>= 9) -Build-Depends-Indep: libmoo-perl (>= 1), +Build-Depends-Indep: libmoo-perl, libtext-csv-perl, libwww-perl, perl @@ -13,10 +13,8 @@ Homepage: https://metacpan.org/release/Geo-USCensus-Geocoding Package: libgeo-uscensus-geocoding-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, - libmoo-perl (>= 1), + libmoo-perl, libtext-csv-perl, libwww-perl Description: The U.S. Census Bureau geocoding service - (no description was found) . - This description was automagically extracted from the module by dh-make-perl.