From ac177a8a10ae007817c0cdee46515aee45e8eb4b Mon Sep 17 00:00:00 2001 From: sshaw Date: Fri, 1 Sep 2017 22:15:29 -0400 Subject: [PATCH] require open-uri when loading http template --- lib/thor/actions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/thor/actions.rb b/lib/thor/actions.rb index c3c34d147..e9c19f8f4 100644 --- a/lib/thor/actions.rb +++ b/lib/thor/actions.rb @@ -217,6 +217,7 @@ def apply(path, config = {}) shell.padding += 1 if verbose contents = if is_uri + require "open-uri" open(path, "Accept" => "application/x-thor-template", &:read) else open(path, &:read)