From 6e60b9863d0c62b5c1d4f2b4714bfa5ab7f418ae Mon Sep 17 00:00:00 2001 From: Ivan Tyurin Date: Sun, 13 Jul 2025 12:57:20 +0300 Subject: [PATCH 1/2] [VERSION] Update ruby version to 3.4.4 --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 37c2961..f989260 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.2 +3.4.4 From 0ad6f9c3a83e6a13155553e578bb889720e1f3d3 Mon Sep 17 00:00:00 2001 From: Ivan Tyurin Date: Sun, 13 Jul 2025 12:59:30 +0300 Subject: [PATCH 2/2] [FIX] Add backward compatibility for Polygon#include? --- lib/cartesian_for_geo.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/cartesian_for_geo.rb b/lib/cartesian_for_geo.rb index 83b712f..d90b5f9 100644 --- a/lib/cartesian_for_geo.rb +++ b/lib/cartesian_for_geo.rb @@ -1,5 +1,7 @@ require 'cartesian_for_geo/version' -require 'gorilla_patch/cover' +if RUBY_VERSION <= '2.7' + require 'gorilla_patch/cover' +end module CartesianForGeo ## Collection (Array) of Polygons @@ -167,7 +169,9 @@ def concat(other) self end - using GorillaPatch::Cover + if RUBY_VERSION <= '2.7' + using GorillaPatch::Cover + end def include?(other) side == other.side && lat_range.cover?(other.lat_range)