From 6c2d8df2fc6b0069e65e93359ab2c532e5cb6b68 Mon Sep 17 00:00:00 2001 From: Brian P O'Rourke Date: Wed, 30 Dec 2020 16:41:46 -0800 Subject: [PATCH] Don't assign to global ::Timer The change in 1595e6fc moved the definition of Timer out of the module definition so that the global ::Timer was mistakenly being defined. --- lib/faraday.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faraday.rb b/lib/faraday.rb index bc142db64..8a6b7750a 100644 --- a/lib/faraday.rb +++ b/lib/faraday.rb @@ -9,7 +9,7 @@ unless defined?(::Faraday::Timer) require 'timeout' - Timer = Timeout + ::Faraday::Timer = Timeout end require 'faraday/version'