From 71ea2a2f123056a275f88bfba6b86e47950c82ee Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 3 Apr 2024 12:50:24 +0300 Subject: [PATCH] require haversine >= 0.4.0 --- shard.yml | 1 + spec/geo/distance_spec.cr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index 4fb2305..80a3930 100644 --- a/shard.yml +++ b/shard.yml @@ -6,6 +6,7 @@ crystal: ">= 1.0.0" dependencies: haversine: github: geocrystal/haversine + version: ">= 0.4.0" convex_hull: github: geocrystal/convex_hull version: ">= 0.6.0" diff --git a/spec/geo/distance_spec.cr b/spec/geo/distance_spec.cr index f8b99c0..142ab54 100644 --- a/spec/geo/distance_spec.cr +++ b/spec/geo/distance_spec.cr @@ -8,7 +8,7 @@ describe Geo::Coord do context "distance" do context "calculates distance (by haversine formula)" do it { london.distance(london).to_kilometers.should eq(0) } - it { new_york.distance(london).to_kilometers.should eq(5570.4744596620685) } + it { new_york.distance(london).to_kilometers.should eq(5570.482153929098) } end end end