Skip to content

Commit

Permalink
chore (fix): revert to use kernel#open
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyF authored Feb 28, 2019
1 parent 3101cfe commit c190aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll-import/importers/rss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def self.process(options)
body = options.fetch("body", ["description"])

content = ""
URI.parse(source).open { |s| content = s.read }
open(source) { |s| content = s.read }
rss = ::RSS::Parser.parse(content, false)

raise "There doesn't appear to be any RSS items at the source (#{source}) provided." unless rss
Expand Down

0 comments on commit c190aba

Please sign in to comment.