summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-03-13 17:46:07 -0700
committerMark Wells <mark@freeside.biz>2015-03-13 17:46:07 -0700
commitf81bdf93c112e3222ba9f0be2477fd3403fdc9f5 (patch)
tree4ff358e158c1c5c319d3a240e66ce019fba0e956
parent9c5e55dee57384a1210044f95f459de72ce063f5 (diff)
allow Moo < 1.0
-rw-r--r--Geocoding/Result.pm24
-rw-r--r--Makefile.PL2
-rw-r--r--debian/changelog7
-rw-r--r--debian/control6
4 files changed, 23 insertions, 16 deletions
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 <mark@freeside.biz> 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 <mark@dancingmad.dyndns.org>
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.