From e7f8a9e6dddd2f66fc6025c8e91c25ff1927b250 Mon Sep 17 00:00:00 2001 From: Janusz Mordarski Date: Tue, 30 Jan 2024 15:02:03 +0100 Subject: [PATCH] Use require as a fallback to load geos_c_impl Important for systems such as Amazon Linux where c-extensions are stored in a different location than Ruby files --- lib/rgeo/geos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rgeo/geos.rb b/lib/rgeo/geos.rb index 0300f836..dadc7f68 100644 --- a/lib/rgeo/geos.rb +++ b/lib/rgeo/geos.rb @@ -26,7 +26,7 @@ module Geos begin require_relative "geos/geos_c_impl" rescue LoadError - # continue + require "geos/geos_c_impl" end CAPI_SUPPORTED = RGeo::Geos.const_defined?(:CAPIGeometryMethods) if CAPI_SUPPORTED