summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-03-30 16:48:49 -0700
committerMark Wells <mark@freeside.biz>2015-03-30 16:48:49 -0700
commit9b4059c3f2d0e14bc39f4b2ab2394a5e2e2e92e7 (patch)
tree3f46a45c331ae7787bbb503a5647f913f5888ddf
parentf81bdf93c112e3222ba9f0be2477fd3403fdc9f5 (diff)
Moo < 1.0 compat fix
-rw-r--r--Geocoding/Result.pm4
-rw-r--r--debian/changelog6
2 files changed, 8 insertions, 2 deletions
diff --git a/Geocoding/Result.pm b/Geocoding/Result.pm
index bf595ca..4598441 100644
--- a/Geocoding/Result.pm
+++ b/Geocoding/Result.pm
@@ -2,7 +2,7 @@ package Geo::USCensus::Geocoding::Result;
use Moo; # just for attribute declaration
-has 'is_match' => ( is => 'rw', default => 0 );
+has 'is_match' => ( is => 'rw', default => sub { 0 } );
foreach ( 'content',
'match_level',
'address',
@@ -14,7 +14,7 @@ foreach ( 'content',
'latitude',
'longitude'
) {
- has $_ => ( is => 'rw', default => '' );
+ has $_ => ( is => 'rw', default => sub { '' } );
}
sub censustract {
diff --git a/debian/changelog b/debian/changelog
index 4494b38..9316d0d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libgeo-uscensus-geocoding-perl (0.01-3) unstable; urgency=low
+
+ * No, really, allow Moo versions < 1.0
+
+ -- Mark Wells <mark@freeside.biz> Mon, 30 Mar 2015 16:45:30 -0700
+
libgeo-uscensus-geocoding-perl (0.01-2) unstable; urgency=low
* Allow Moo versions < 1.0