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

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/octokit-4.19.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/octokit-4.19.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/octokit-4.19.0/lib/octokit/response/feed_parser.rb
octokit-4.19.0 lib/octokit/response/feed_parser.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/octokit-4.18.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/octokit-4.18.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/octokit-4.14.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/octokit-4.18.0/lib/octokit/response/feed_parser.rb
octokit-4.18.0 lib/octokit/response/feed_parser.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/octokit-4.14.0/lib/octokit/response/feed_parser.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/octokit-4.16.0/lib/octokit/response/feed_parser.rb
octokit-4.16.0 lib/octokit/response/feed_parser.rb
octokit-4.15.0 lib/octokit/response/feed_parser.rb
tdiary-5.1.0 vendor/bundle/gems/octokit-4.14.0/lib/octokit/response/feed_parser.rb
tdiary-5.0.13 vendor/bundle/gems/octokit-4.13.0/lib/octokit/response/feed_parser.rb
octokit-4.14.0 lib/octokit/response/feed_parser.rb
tdiary-5.0.12.1 vendor/bundle/gems/octokit-4.13.0/lib/octokit/response/feed_parser.rb
tdiary-5.0.11 vendor/bundle/gems/octokit-4.10.0/lib/octokit/response/feed_parser.rb