-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the situation when a feed is invalid and the custom parser raises…
… an exception, in this case now this error is log and the plugin continues to operate. Also intoduced some simple test cases for when the rss is perfect, when is valid but empty and for when is invalid. Fixes #18
- Loading branch information
Pere Urbon-Bayes
committed
Jun 14, 2016
1 parent
e143c16
commit 56675d6
Showing
6 changed files
with
195 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="windows-1252"?> | ||
<rss version="2.0"> | ||
<channel> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="windows-1252"?> | ||
<rss version="2.0"> | ||
<channel> | ||
<title>Sample Feed - Favorite RSS Related Software & Resources</title> | ||
<description>Take a look at some of FeedForAll's favorite software and resources for learning more about RSS.</description> | ||
<link>http://www.feedforall.com</link> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="windows-1252"?> | ||
<rss version="2.0"> | ||
<channel> | ||
<title>Sample Feed - Favorite RSS Related Software & Resources</title> | ||
<description>Take a look at some of FeedForAll's favorite software and resources for learning more about RSS.</description> | ||
<link>http://www.feedforall.com</link> | ||
<category domain="www.dmoz.com">Computers/Software/Internet/Site Management/Content Management</category> | ||
<copyright>Copyright 2004 NotePage, Inc.</copyright> | ||
<docs>http://blogs.law.harvard.edu/tech/rss</docs> | ||
<language>en-us</language> | ||
<lastBuildDate>Mon, 1 Nov 2004 13:17:17 -0500</lastBuildDate> | ||
<managingEditor>marketing@feedforall.com</managingEditor> | ||
<pubDate>Tue, 26 Oct 2004 14:06:44 -0500</pubDate> | ||
<webMaster>webmaster@feedforall.com</webMaster> | ||
<generator>FeedForAll Beta1 (0.0.1.8)</generator> | ||
<image> | ||
<url>http://www.feedforall.com/feedforall-temp.gif</url> | ||
<title>FeedForAll Sample Feed</title> | ||
<link>http://www.feedforall.com/industry-solutions.htm</link> | ||
<description>FeedForAll Sample Feed</description> | ||
<width>144</width> | ||
<height>117</height> | ||
</image> | ||
<item> | ||
<title>RSS Resources</title> | ||
<description>Be sure to take a look at some of our favorite RSS Resources<br> | ||
<a href="http://www.rss-specifications.com">RSS Specifications</a><br> | ||
<a href="http://www.blog-connection.com">Blog Connection</a><br> | ||
<br></description> | ||
<link>http://www.feedforall.com</link> | ||
<pubDate>Tue, 26 Oct 2004 14:01:01 -0500</pubDate> | ||
</item> | ||
<item> | ||
<title>Recommended Desktop Feed Reader Software</title> | ||
<description><b>FeedDemon</b> enables you to quickly read and gather information from hundreds of web sites - without having to visit them. Don't waste any more time checking your favorite web sites for updates. Instead, use FeedDemon and make them come to you. <br> | ||
More <a href="http://store.esellerate.net/a.asp?c=1_SKU5139890208_AFL403073819">FeedDemon Information</a></description> | ||
<link>http://www.feedforall.com/feedforall-partners.htm</link> | ||
<pubDate>Tue, 26 Oct 2004 14:03:25 -0500</pubDate> | ||
</item> | ||
<item> | ||
<title>Recommended Web Based Feed Reader Software</title> | ||
<description><b>FeedScout</b> enables you to view RSS/ATOM/RDF feeds from different sites directly in Internet Explorer. You can even set your Home Page to show favorite feeds. Feed Scout is a plug-in for Internet Explorer, so you won't have to learn anything except for how to press 2 new buttons on Internet Explorer toolbar. <br> | ||
More <a href="http://www.bytescout.com/feedscout.html">Information on FeedScout</a><br> | ||
<br> | ||
<br> | ||
<b>SurfPack</b> can feature search tools, horoscopes, current weather conditions, LiveJournal diaries, humor, web modules and other dynamically updated content. <br> | ||
More <a href="http://www.surfpack.com/">Information on SurfPack</a><br></description> | ||
<link>http://www.feedforall.com/feedforall-partners.htm</link> | ||
<pubDate>Tue, 26 Oct 2004 14:06:44 -0500</pubDate> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters