Sha256: 9403cac3335719260042301cba3bdc884a28869cccee916229f905873f5161af
Contents?: true
Size: 379 Bytes
Versions: 66
Compression:
Stored size: 379 Bytes
Contents
require 'faraday' module Octokit module Response # Parses RSS and Atom feed responses. class FeedParser < Faraday::Response::Middleware private def on_complete(env) if env[:response_headers]["content-type"] =~ /(\batom|\brss)/ require 'rss' env[:body] = RSS::Parser.parse env[:body] end end end end end
Version data entries
66 entries across 56 versions & 3 rubygems