Skip to content

Commit e41ff11

Browse files
authored
Merge pull request #576 from sshaw/master
require open-uri when loading http template
2 parents c3bb746 + ac177a8 commit e41ff11

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)