Skip to content

Commit

Permalink
Merge pull request #576 from sshaw/master
Browse files Browse the repository at this point in the history
require open-uri when loading http template
  • Loading branch information
rafaelfranca authored Sep 5, 2017
2 parents c3bb746 + ac177a8 commit e41ff11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/thor/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e41ff11

Please sign in to comment.