From e8e3cb696fd7e2243934e990e2275a7715b89857 Mon Sep 17 00:00:00 2001 From: Dmitry Vorotilin Date: Tue, 19 Mar 2024 11:23:04 +0300 Subject: [PATCH] fix: Support all Ruby 2.7 for now Ruby syntax `...` was added not for all 2.7 versions. Let's fallback for now to old syntax. --- lib/ferrum/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ferrum/client.rb b/lib/ferrum/client.rb index 77d94380..6e650a2a 100644 --- a/lib/ferrum/client.rb +++ b/lib/ferrum/client.rb @@ -34,8 +34,8 @@ def respond_to_missing?(name, include_private) @client.respond_to?(name, include_private) end - def method_missing(name, ...) - @client.send(name, ...) + def method_missing(name, *args, **opts, &block) + @client.send(name, *args, **opts, &block) end def close