Sha256: b56c1b7213fcf0d54f739d7c193afd77c5db66478518428671de69ff98a8284e

Contents?: true

Size: 571 Bytes

Versions: 3

Compression:

Stored size: 571 Bytes

Contents

module Aua::Agents::FeedReader
  KNOWN_CLIENTS = %w(AppleSyndication Netvibes Windows-RSS-Platform Vienna NewsGatorOnline NewsFire NetNewsWire MWFeedParser SimplePie MagpieRSS Feedfetcher-Google Apple-PubSub)
  
  def self.extend?(agent)
    KNOWN_CLIENTS.include?(agent.app) ||
    (agent.app == "Tumblr" && agent.products.include?("RSS") && agent.products.include?("syndication"))
  end
  
  def type
    :FeedReader
  end
  
  def name
    return :TumblrRSSSyndication if app == "Tumblr"
    app.to_sym
  end
  
  def version
    @version ||= versions.first 
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aua-0.2.1 lib/aua/agents/feed_reader.rb
aua-0.2.0 lib/aua/agents/feed_reader.rb
aua-0.1.3 lib/aua/agents/feed_reader.rb