lib/feedjira/parser/itunes_rss.rb in feedjira-3.1.1 vs lib/feedjira/parser/itunes_rss.rb in feedjira-3.1.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Feedjira module Parser # iTunes is RSS 2.0 + some apple extensions # Sources: # * https://cyber.harvard.edu/rss/rss.html @@ -16,11 +18,11 @@ element :description element :image, class: RSSImage element :language element :lastBuildDate, as: :last_built element :link, as: :url - element :managingEditor + element :managingEditor, as: :managing_editor element :rss, as: :version, value: :version element :title element :ttl # If author is not present use managingEditor on the channel @@ -59,10 +61,10 @@ elements :"itunes:owner", as: :itunes_owners, class: ITunesRSSOwner elements :item, as: :entries, class: ITunesRSSItem def self.able_to_parse?(xml) - %r{xmlns:itunes\s?=\s?[\"\']http://www\.itunes\.com/dtds/podcast-1\.0\.dtd[\"\']}i =~ xml # rubocop:disable Metrics/LineLength + %r{xmlns:itunes\s?=\s?["']http://www\.itunes\.com/dtds/podcast-1\.0\.dtd["']}i =~ xml end end end end