lib/feedjira/parser/rss_entry.rb in feedjira-2.0.0 vs lib/feedjira/parser/rss_entry.rb in feedjira-2.1.0

- old
+ new

@@ -1,37 +1,33 @@ module Feedjira - module Parser # Parser for dealing with RDF feed entries. class RSSEntry include SAXMachine include FeedEntryUtilities element :title - element :link, :as => :url + element :link, as: :url - element :"dc:creator", :as => :author - element :author, :as => :author - element :"content:encoded", :as => :content - element :description, :as => :summary + element :"dc:creator", as: :author + element :author, as: :author + element :"content:encoded", as: :content + element :description, as: :summary - element :"media:content", :as => :image, :value => :url - element :enclosure, :as => :image, :value => :url + element :"media:content", as: :image, value: :url + element :enclosure, as: :image, value: :url - element :pubDate, :as => :published - element :pubdate, :as => :published - element :"dc:date", :as => :published - element :"dc:Date", :as => :published - element :"dcterms:created", :as => :published + element :pubDate, as: :published + element :pubdate, as: :published + element :"dc:date", as: :published + element :"dc:Date", as: :published + element :"dcterms:created", as: :published + element :"dcterms:modified", as: :updated + element :issued, as: :published + elements :category, as: :categories - element :"dcterms:modified", :as => :updated - element :issued, :as => :published - elements :category, :as => :categories - - element :guid, :as => :entry_id - element :"dc:identifier", :as => :entry_id + element :guid, as: :entry_id + element :"dc:identifier", as: :entry_id end - end - end