From e687d7a35f2cf6dddc37c58775208e567308e0a0 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Tue, 30 Apr 2024 10:46:26 +0300 Subject: [PATCH] bump ring_area --- shard.yml | 1 + spec/geo/polygon_spec.cr | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 9c2242b..bb03796 100644 --- a/shard.yml +++ b/shard.yml @@ -16,6 +16,7 @@ dependencies: github: geocrystal/geo_bearing ring_area: github: geocrystal/ring_area + version: ">= 0.2.1" geojson: github: geocrystal/geojson diff --git a/spec/geo/polygon_spec.cr b/spec/geo/polygon_spec.cr index 94c88d0..afaf15b 100644 --- a/spec/geo/polygon_spec.cr +++ b/spec/geo/polygon_spec.cr @@ -97,7 +97,8 @@ describe Geo::Polygon do polygon = Geo::Polygon.new(coords) - it { polygon.area.should eq(7748891609977.457) } + it { polygon.area.should be_a(RingArea::Area) } + it { polygon.area.to_meters.should eq(7748891609977.457) } end describe "#to_geojson" do