From 95d84a8f5d5a4338b1c6a79dd383d740ce5cb224 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 10 Feb 2020 08:16:21 -0500 Subject: [PATCH] dev: work around hoe deprecation warning --- hoe-monkeypatches.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hoe-monkeypatches.rb b/hoe-monkeypatches.rb index 317a45cfe0..2be5c293fe 100644 --- a/hoe-monkeypatches.rb +++ b/hoe-monkeypatches.rb @@ -1,3 +1,13 @@ # -# this file currently empty +# this patch works around https://github.com/seattlerb/hoe/issues/103 # +require "hoe" + +class Hoe + alias_method :old_parse_urls, :parse_urls + + def parse_urls(text) + return urls unless urls.empty? + old_parse_urls(text) + end +end