Skip to content

Commit

Permalink
Use send I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jun 17, 2022
1 parent cbf5375 commit 3684eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def install(name) # rubocop:disable Metrics/MethodLength
package = :file
require "open-uri"
begin
contents = URI.open(name, &:read)
contents = URI.send(:open, name, &:read)
rescue OpenURI::HTTPError
raise Error, "Error opening URI '#{name}'"
end
Expand Down

0 comments on commit 3684eae

Please sign in to comment.