Sha256: 4af417ad507dbf55c33f3a861f5b564e111557c6fc3f56081aac5832b3118a67

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

module Aua::Agents::FeedReader
  KNOWN_CLIENTS = %w(FreeRSSReader FeeddlerRSS FeeddlerPro hawkReader Fever Superfeedr Feedly FeedlyApp Reeder AppleSyndication Netvibes Windows-RSS-Platform Vienna NewsGatorOnline NewsFire NetNewsWire MWFeedParser SimplePie MagpieRSS Feedfetcher-Google Apple-PubSub Feedbin FeedDemon)

  def self.extend?(agent)
    KNOWN_CLIENTS.include?(agent.app) ||
    (agent.app == "Tumblr" && agent.products.include?("RSS") && agent.products.include?("syndication")) ||
    agent.products.include?("Vienna")
  end

  def type
    :FeedReader
  end

  def name
    return :TumblrRSSSyndication if app == "Tumblr"
    return :Vienna if products.include?("Vienna")
    app.to_sym
  end

  def version
    @version ||= version_of(name) || versions[0] || versions[1]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aua-0.3.2 lib/aua/agents/feed_reader.rb
aua-0.3.1 lib/aua/agents/feed_reader.rb
aua-0.3.0 lib/aua/agents/feed_reader.rb
aua-0.2.6 lib/aua/agents/feed_reader.rb