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 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)