From 8bba5ad4d4a86a907ccd3ee19944194e706ee27a Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Tue, 3 Feb 2026 16:36:56 -0500 Subject: [PATCH] fix: monkeypatch URI.escape, for now pending bigger move to newer Ruby version which supports Gems that don't rely on old, broken APIs from the stdlib --- lib/bandwidth_patch.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/bandwidth_patch.rb diff --git a/lib/bandwidth_patch.rb b/lib/bandwidth_patch.rb new file mode 100644 index 0000000000000000000000000000000000000000..e0c02b8793e1d525624ca377f70426a880e8d769 --- /dev/null +++ b/lib/bandwidth_patch.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module URI + unless respond_to?(:escape) + def self.escape(*args, **kwargs) + URI::DEFAULT_PARSER.escape(*args, **kwargs) + end + end +end