Skip to content

Commit ac177a8

Browse files
committed
require open-uri when loading http template
1 parent c3bb746 commit ac177a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/thor/actions.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def apply(path, config = {})
217217
shell.padding += 1 if verbose
218218

219219
contents = if is_uri
220+
require "open-uri"
220221
open(path, "Accept" => "application/x-thor-template", &:read)
221222
else
222223
open(path, &:read)

0 commit comments

Comments
 (0)