feedparser 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Manifest.txt +2 -50
  3. data/README.md +71 -9
  4. data/Rakefile +1 -1
  5. data/lib/feedparser.rb +2 -0
  6. data/lib/feedparser/builder/microformats.rb +264 -0
  7. data/lib/feedparser/parser.rb +27 -0
  8. data/lib/feedparser/version.rb +2 -2
  9. data/test/helper.rb +3 -57
  10. data/test/test_microformats.rb +52 -0
  11. metadata +10 -56
  12. data/test/feeds/books/nostarch.rss +0 -125
  13. data/test/feeds/books/oreilly.feedburner.atom +0 -387
  14. data/test/feeds/books/pragprog.rss +0 -148
  15. data/test/feeds/byparker.json +0 -643
  16. data/test/feeds/daringfireball.atom +0 -1873
  17. data/test/feeds/daringfireball.json +0 -619
  18. data/test/feeds/googlegroups.atom +0 -37
  19. data/test/feeds/googlegroups2.atom +0 -27
  20. data/test/feeds/headius.atom +0 -123
  21. data/test/feeds/inessential.json +0 -182
  22. data/test/feeds/intertwingly.atom +0 -1197
  23. data/test/feeds/jsonfeed.json +0 -37
  24. data/test/feeds/lambdatheultimate.rss +0 -288
  25. data/test/feeds/learnenough.feedburner.atom +0 -747
  26. data/test/feeds/news/nytimes-blogs-bits.rss +0 -333
  27. data/test/feeds/news/nytimes-paul-krugman.rss +0 -60
  28. data/test/feeds/news/nytimes-tech.rss +0 -653
  29. data/test/feeds/news/nytimes-thomas-l-friedman.rss +0 -80
  30. data/test/feeds/news/nytimes.rss +0 -607
  31. data/test/feeds/news/washingtonpost-blogs-innovations.rss +0 -183
  32. data/test/feeds/news/washingtonpost-politics.rss +0 -35
  33. data/test/feeds/news/washingtonpost-world.rss +0 -29
  34. data/test/feeds/ongoing.atom +0 -1619
  35. data/test/feeds/osm/blog.openstreetmap.rss +0 -252
  36. data/test/feeds/osm/blogs.openstreetmap.rss +0 -585
  37. data/test/feeds/osm/mapbox.rss +0 -1883
  38. data/test/feeds/railstutorial.feedburner.atom +0 -656
  39. data/test/feeds/rubyflow.feedburner.rss +0 -120
  40. data/test/feeds/rubymine.feedburner.rss +0 -314
  41. data/test/feeds/rubyonrails.atom +0 -1241
  42. data/test/feeds/scripting.rss +0 -881
  43. data/test/feeds/sitepoint.rss +0 -218
  44. data/test/feeds/spec/atom/author.atom +0 -48
  45. data/test/feeds/spec/atom/authors.atom +0 -70
  46. data/test/feeds/spec/atom/categories.atom +0 -66
  47. data/test/feeds/spec/json/example.json +0 -36
  48. data/test/feeds/spec/json/microblog.json +0 -43
  49. data/test/feeds/spec/json/tags.json +0 -33
  50. data/test/feeds/spec/rss/author.rss +0 -41
  51. data/test/feeds/spec/rss/categories.rss +0 -64
  52. data/test/feeds/spec/rss/creator.rss +0 -38
  53. data/test/feeds/xkcd.atom +0 -48
  54. data/test/feeds/xkcd.rss +0 -55
  55. data/test/test_atom.rb +0 -27
  56. data/test/test_authors.rb +0 -26
  57. data/test/test_books.rb +0 -25
  58. data/test/test_feeds.rb +0 -29
  59. data/test/test_json.rb +0 -27
  60. data/test/test_rss.rb +0 -26
  61. data/test/test_tags.rb +0 -25
@@ -1,218 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0"
3
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
4
- xmlns:wfw="http://wellformedweb.org/CommentAPI/"
5
- xmlns:dc="http://purl.org/dc/elements/1.1/"
6
- xmlns:atom="http://www.w3.org/2005/Atom"
7
- xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
8
- xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
9
- xmlns:series="http://organizeseries.com/">
10
-
11
- <channel>
12
- <title>SitePoint &#187; Ruby</title>
13
- <atom:link href="http://www.sitepoint.com/ruby/feed/" rel="self" type="application/rss+xml" />
14
- <link>http://www.sitepoint.com</link>
15
- <description>Learn CSS &#124; HTML5 &#124; JavaScript &#124; Wordpress &#124; Tutorials-Web Development &#124; Reference &#124; Books and More</description>
16
- <lastBuildDate>Sat, 17 Jan 2015 11:57:47 +0000</lastBuildDate>
17
- <language>en-US</language>
18
- <sy:updatePeriod>hourly</sy:updatePeriod>
19
- <sy:updateFrequency>1</sy:updateFrequency>
20
- <generator>http://wordpress.org/?v=4.0</generator>
21
- <item>
22
- <title>Rails Model Caching with Redis</title>
23
- <link>http://www.sitepoint.com/rails-model-caching-redis/</link>
24
- <comments>http://www.sitepoint.com/rails-model-caching-redis/#comments</comments>
25
- <pubDate>Thu, 15 Jan 2015 15:00:56 +0000</pubDate>
26
- <dc:creator><![CDATA[Vasu K]]></dc:creator>
27
- <category><![CDATA[Ruby]]></category>
28
- <category><![CDATA[Ruby on Rails]]></category>
29
- <category><![CDATA[GlennG]]></category>
30
-
31
- <guid isPermaLink="false">http://www.sitepoint.com/?p=97720</guid>
32
- <description><![CDATA[<p><p>Model level caching is something that's often ignored, even by seasoned developers. Much of it's due to the misconception that, when you cache the views, you don't need to cache at the lower levels. While it's true that much of a bottleneck in the Rails world lies in the View layer, that's not always the case.</p>
33
-
34
- <p>Lower level caches are very flexible and can work anywhere in the application. In this tutorial, I'll demonstrate how to cache your models with Redis.</p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/rails-model-caching-redis/">Rails Model Caching with Redis</a>%</em></p>]]></description>
35
- <wfw:commentRss>http://www.sitepoint.com/rails-model-caching-redis/feed/</wfw:commentRss>
36
- <slash:comments>0</slash:comments>
37
- </item>
38
- <item>
39
- <title>Tokaido: Quick Start with Rails</title>
40
- <link>http://www.sitepoint.com/tokaido-quick-start-rails/</link>
41
- <comments>http://www.sitepoint.com/tokaido-quick-start-rails/#comments</comments>
42
- <pubDate>Thu, 15 Jan 2015 00:10:59 +0000</pubDate>
43
- <dc:creator><![CDATA[Dhaivat Pandya]]></dc:creator>
44
- <category><![CDATA[Ruby]]></category>
45
- <category><![CDATA[Ruby on Rails]]></category>
46
- <category><![CDATA[GlennG]]></category>
47
-
48
- <guid isPermaLink="false">http://www.sitepoint.com/?p=97183</guid>
49
- <description><![CDATA[<p><img src="http://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2014/12/1420303878Fotolia_22900249_Subscription_Monthly_M.jpg" alt="Head of the 500 Series Shinkansen" width="2206" height="861" class="aligncenter size-full wp-image-97343" /><p>There used to be a time when installing Ruby and the associated Ruby on Rails web framework was a complete pain. Since then, all sorts of solutions have sprung up to make this process a little bit less painful and tedious. One of the latest is called Tokaido and makes the installation a breeze. But, it abstracts away so much from the user that what Tokaido actually does on your system can be somewhat confusing for a beginner. In this article, we'll take a look at how to use Tokaido to get Ruby/Rails up and running, as well as what kind of stuff Tokaido brings along with it.</p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/tokaido-quick-start-rails/">Tokaido: Quick Start with Rails</a>%</em></p>]]></description>
50
- <wfw:commentRss>http://www.sitepoint.com/tokaido-quick-start-rails/feed/</wfw:commentRss>
51
- <slash:comments>2</slash:comments>
52
- </item>
53
- <item>
54
- <title>Ruby on Medicine: Converting DICOM to JPG</title>
55
- <link>http://www.sitepoint.com/ruby-on-medicine-converting-dicom-to-jpg/</link>
56
- <comments>http://www.sitepoint.com/ruby-on-medicine-converting-dicom-to-jpg/#comments</comments>
57
- <pubDate>Mon, 12 Jan 2015 15:00:42 +0000</pubDate>
58
- <dc:creator><![CDATA[Abder-Rahman Ali]]></dc:creator>
59
- <category><![CDATA[Gems]]></category>
60
- <category><![CDATA[Ruby]]></category>
61
- <category><![CDATA[GlennG]]></category>
62
-
63
- <guid isPermaLink="false">http://www.sitepoint.com/?p=97689</guid>
64
- <description><![CDATA[<p><p>This article will be the first article in the Ruby on Medicine (RoM) series focused on how Ruby can be applied to the medical domain.</p>
65
-
66
- <p>In this tutorial, I will show you how to convert a DICOM file to a JPG image, which allows us to perform different operations on that image, which we will see in upcoming articles of this series.</p>
67
- </p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/ruby-on-medicine-converting-dicom-to-jpg/">Ruby on Medicine: Converting DICOM to JPG</a>%</em></p>]]></description>
68
- <wfw:commentRss>http://www.sitepoint.com/ruby-on-medicine-converting-dicom-to-jpg/feed/</wfw:commentRss>
69
- <slash:comments>0</slash:comments>
70
- </item>
71
- <item>
72
- <title>Messaging with Rails and Mailboxer</title>
73
- <link>http://www.sitepoint.com/messaging-rails-mailboxer/</link>
74
- <comments>http://www.sitepoint.com/messaging-rails-mailboxer/#comments</comments>
75
- <pubDate>Thu, 08 Jan 2015 15:00:40 +0000</pubDate>
76
- <dc:creator><![CDATA[Ilya Bodrov]]></dc:creator>
77
- <category><![CDATA[Gems]]></category>
78
- <category><![CDATA[Ruby]]></category>
79
- <category><![CDATA[Ruby on Rails]]></category>
80
- <category><![CDATA[GlennG]]></category>
81
-
82
- <guid isPermaLink="false">http://www.sitepoint.com/?p=97356</guid>
83
- <description><![CDATA[<p><p>Mailboxer is a Rails gem that is a part of the <a href="https://github.com/ging/social_stream">social_stream</a> framework for building social networks. It is a generic messaging system that allows any model to act "messageable", equipping it with some versatile methods. With Mailboxer, you can create conversations with one or more recipients (messages are organized into folders - sentbox, inbox, trash) and send notifications via email. It is even possible to send messages between different models and add attachments! The only drawback is the lack of documentation, so I hope this post will be useful.</p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/messaging-rails-mailboxer/">Messaging with Rails and Mailboxer</a>%</em></p>]]></description>
84
- <wfw:commentRss>http://www.sitepoint.com/messaging-rails-mailboxer/feed/</wfw:commentRss>
85
- <slash:comments>0</slash:comments>
86
- </item>
87
- <item>
88
- <title>A Peek at Ruby in 2015</title>
89
- <link>http://www.sitepoint.com/ruby-peek-2015/</link>
90
- <comments>http://www.sitepoint.com/ruby-peek-2015/#comments</comments>
91
- <pubDate>Mon, 29 Dec 2014 16:00:33 +0000</pubDate>
92
- <dc:creator><![CDATA[Glenn Goodrich]]></dc:creator>
93
- <category><![CDATA[Ruby]]></category>
94
- <category><![CDATA[GlennG]]></category>
95
-
96
- <guid isPermaLink="false">http://www.sitepoint.com/?p=97178</guid>
97
- <description><![CDATA[<p><img src="http://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2014/12/1419703173Fotolia_70588864_Subscription_Monthly_M.jpg" alt="2015 new year" width="1592" height="1194" class="aligncenter size-full wp-image-97179" /><p>As 2014 comes to a close, I thought I'd take a quick look at what 2015 may offer in the land of Ruby. Much of how 2015 opens will, obviously, be based on the final words of 2014, so we'll start with some discussion of this year and try to extrapolate that into the future. Also, I am going to focus in on Ruby and Rails, more than anything else, mainly because it's what I know.</p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/ruby-peek-2015/">A Peek at Ruby in 2015</a>%</em></p>]]></description>
98
- <wfw:commentRss>http://www.sitepoint.com/ruby-peek-2015/feed/</wfw:commentRss>
99
- <slash:comments>0</slash:comments>
100
- </item>
101
- <item>
102
- <title>What Editor Do Rubyists Use?</title>
103
- <link>http://www.sitepoint.com/editor-rubyists-use/</link>
104
- <comments>http://www.sitepoint.com/editor-rubyists-use/#comments</comments>
105
- <pubDate>Mon, 22 Dec 2014 16:00:50 +0000</pubDate>
106
- <dc:creator><![CDATA[Abder-Rahman Ali]]></dc:creator>
107
- <category><![CDATA[Ruby]]></category>
108
- <category><![CDATA[GlennG]]></category>
109
-
110
- <guid isPermaLink="false">http://www.sitepoint.com/?p=96963</guid>
111
- <description><![CDATA[<p><p>Well, you've decided to learn Ruby, have you? That's great! Ruby is a wonderful language that aims to make programmers happy. Go for it! As you enter the world of Ruby he goes, you realize, "I need an editor". OK, Google, find me the best Ruby editor.</p>
112
-
113
- <p>Holy smoke! There are a ton of editors, each with a community that swears by its features. "Use vim!" "Use Emacs!" "Use TextMate!" "Use Sublime Text!". You recoil in fear....what if you make the wrong choice???</p>
114
-
115
- <p>This short story, which likely applied to many Rubyists, I decided to interview established Rubyists their best Ruby editor. If nothing else, this will show which editors are used by more Rubyists, with some data as to why. My hope is that it will serve as a guide for newcomers to Ruby, or possibly even those already working with Ruby, on which editors are popular.</p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/editor-rubyists-use/">What Editor Do Rubyists Use?</a>%</em></p>]]></description>
116
- <wfw:commentRss>http://www.sitepoint.com/editor-rubyists-use/feed/</wfw:commentRss>
117
- <slash:comments>0</slash:comments>
118
- </item>
119
- <item>
120
- <title>Chruby and Rbenv Tips and Tricks</title>
121
- <link>http://www.sitepoint.com/chruby-rbenv-tips-tricks/</link>
122
- <comments>http://www.sitepoint.com/chruby-rbenv-tips-tricks/#comments</comments>
123
- <pubDate>Thu, 18 Dec 2014 15:00:36 +0000</pubDate>
124
- <dc:creator><![CDATA[Jesse Herrick]]></dc:creator>
125
- <category><![CDATA[Best Practices]]></category>
126
- <category><![CDATA[Ruby]]></category>
127
-
128
- <guid isPermaLink="false">http://www.sitepoint.com/?p=96712</guid>
129
- <description><![CDATA[<p><img src="http://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2014/12/1418748789multiple-268x300.png" alt="multiple" width="268" height="300" class="alignleft size-medium wp-image-96714" /><p><a href="https://github.com/sstephenson/rbenv">Rbenv</a> and <a href="https://github.com/postmodern/chruby">chruby</a> are the cool kids on the block now. Obviously, we want the most we can get out of our favorite tools. So this article isn't about which one to like more, nor is it an <a href="http://www.sitepoint.com/up-and-running-with-rbenv/">introduction</a> to either version manager. Instead, we're going to cover some advanced rbenv and chruby usage to maximize your productivity.</p>
130
- </p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/chruby-rbenv-tips-tricks/">Chruby and Rbenv Tips and Tricks</a>%</em></p>]]></description>
131
- <wfw:commentRss>http://www.sitepoint.com/chruby-rbenv-tips-tricks/feed/</wfw:commentRss>
132
- <slash:comments>0</slash:comments>
133
- </item>
134
- <item>
135
- <title>Advanced Search with Ransack</title>
136
- <link>http://www.sitepoint.com/advanced-search-ransack/</link>
137
- <comments>http://www.sitepoint.com/advanced-search-ransack/#comments</comments>
138
- <pubDate>Mon, 15 Dec 2014 15:00:42 +0000</pubDate>
139
- <dc:creator><![CDATA[Islam Wazery]]></dc:creator>
140
- <category><![CDATA[Gems]]></category>
141
- <category><![CDATA[Ruby]]></category>
142
- <category><![CDATA[Ruby on Rails]]></category>
143
- <category><![CDATA[GlennG]]></category>
144
-
145
- <guid isPermaLink="false">http://www.sitepoint.com/?p=96510</guid>
146
- <description><![CDATA[<p><p>In this tutorial we will explore how to add complex search functionality into your Rails application. This task will be made easier by the awesome Ransack Ruby gem. Ransack provides excellent helpers and builders for handling advanced searches on your models. It has some really powerful features available out of the box without writing a lot of code, such as sorting or conditional search. </p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/advanced-search-ransack/">Advanced Search with Ransack</a>%</em></p>]]></description>
147
- <wfw:commentRss>http://www.sitepoint.com/advanced-search-ransack/feed/</wfw:commentRss>
148
- <slash:comments>0</slash:comments>
149
- </item>
150
- <item>
151
- <title>Fun with Robots, Lita, and HipChat</title>
152
- <link>http://www.sitepoint.com/fun-robots-lita-hipchat/</link>
153
- <comments>http://www.sitepoint.com/fun-robots-lita-hipchat/#comments</comments>
154
- <pubDate>Thu, 11 Dec 2014 15:00:26 +0000</pubDate>
155
- <dc:creator><![CDATA[Ilya Bodrov]]></dc:creator>
156
- <category><![CDATA[Gems]]></category>
157
- <category><![CDATA[Ruby]]></category>
158
- <category><![CDATA[Ruby on Rails]]></category>
159
-
160
- <guid isPermaLink="false">http://www.sitepoint.com/?p=96173</guid>
161
- <description><![CDATA[<p>I bet you&#8217;ve watched some kind of a science fiction film where a hero boots up a super-duper PC and, instead of doing all the tasks manually with a keyboard and mouse, just uses voice commands (while drinking coffee or cleaning the superhero costume). That looks really cool. Couldn&#8217;t we create something similar, yet simpler, [&#8230;]</p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/fun-robots-lita-hipchat/">Fun with Robots, Lita, and HipChat</a>%</em></p>]]></description>
162
- <wfw:commentRss>http://www.sitepoint.com/fun-robots-lita-hipchat/feed/</wfw:commentRss>
163
- <slash:comments>0</slash:comments>
164
- </item>
165
- <item>
166
- <title>All I Want for Christmas: Rails 4 Test Prescriptions</title>
167
- <link>http://www.sitepoint.com/want-christmas-rails-4-test-prescriptions/</link>
168
- <comments>http://www.sitepoint.com/want-christmas-rails-4-test-prescriptions/#comments</comments>
169
- <pubDate>Tue, 09 Dec 2014 15:00:52 +0000</pubDate>
170
- <dc:creator><![CDATA[James Hibbard]]></dc:creator>
171
- <category><![CDATA[Ruby]]></category>
172
- <category><![CDATA[AdamR]]></category>
173
- <category><![CDATA[all I want for christmas]]></category>
174
- <category><![CDATA[test-driven development]]></category>
175
-
176
- <guid isPermaLink="false">http://www.sitepoint.com/?p=96076</guid>
177
- <description><![CDATA[<p><p><em>We asked SitePoint authors what developer toys they would want for Christmas, then managed to source them — without relying on Santa.</em></p>
178
-
179
- <p>When I started with Rails, I was introduced to something called “Test-Driven Development”. The theory is simple: write tests for your code, so that you can make changes to it with confidence.</p>
180
-
181
- <h2 id="why-i-wanted-this-book">Why I wanted this book</h2>
182
-
183
- <p>Initially, that sounded like a no-brainer, but when I tried putting it into practice I was assailed with questions and doubts: What do I test? Which tools should I use? Am I even doing it right?</p>
184
-
185
- <p>Fast forward several years and the situation hasn’t become much better. Sure, I write tests for my code, but as my apps get more complex, the questions and doubts remain. That’s why “Rails 4 Test Prescriptions” by Noel Rappin was high on my Christmas wish list.</p>
186
-
187
- <h2 id="the-experience-so-far">The experience so far</h2>
188
-
189
- <p>The book doesn’t disappoint. It starts off slowly by covering the basics of testing each part of a Rails app, as well as using mocks, stubs and helpful gems such as webrat. It then gathers pace, moving on to more advanced topics such as testing the security of an app, testing external services (which always caused me headaches) and testing JavaScript.</p>
190
-
191
- <p>In summary, although rather dry in places, this book contains something for every Rails developer. Whether it’s getting up to speed with unfamiliar tools, focusing on what to test, or choosing the right tools for the job, this is a veritable must-have for your coding toolbox.</p>
192
-
193
- <p><em>What would you build with more knowledge of Test Driven Development? Answer in the comments, we’ll pick the best answer and send you a copy of the book!</em></p></p><p><em>Continue reading %<a rel="nofollow" href="http://www.sitepoint.com/want-christmas-rails-4-test-prescriptions/">All I Want for Christmas: Rails 4 Test Prescriptions</a>%</em></p>]]></description>
194
- <wfw:commentRss>http://www.sitepoint.com/want-christmas-rails-4-test-prescriptions/feed/</wfw:commentRss>
195
- <slash:comments>0</slash:comments>
196
- </item>
197
- </channel>
198
- </rss>
199
-
200
- <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/
201
-
202
- Page Caching using memcached (Requested URI is rejected)
203
- Object Caching 833/849 objects using memcached
204
- Content Delivery Network via Amazon Web Services: CloudFront: dab1nmslvvntp.cloudfront.net
205
-
206
- Served from: www.sitepoint.com @ 2015-01-17 04:23:15 by W3 Total Cache -->
207
-
208
- ---
209
-
210
- feed.format: rss 2.0
211
- feed.title: SitePoint » Ruby
212
- feed.url: http://www.sitepoint.com
213
- feed.summary: Learn CSS | HTML5 | JavaScript | Wordpress | Tutorials-Web Development | Reference | Books and More
214
- feed.generator.text: http://wordpress.org/?v=4.0
215
-
216
- feed.items[0].title: Rails Model Caching with Redis
217
- feed.items[0].url: http://www.sitepoint.com/rails-model-caching-redis/
218
- feed.items[0].guid: http://www.sitepoint.com/?p=97720
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <feed xmlns="http://www.w3.org/2005/Atom">
3
- <title>Test Author</title>
4
- <link rel="alternate" type="text/html" href="http://example.com/" />
5
- <link rel="self" type="application/atom+xml" href="http://example.com/feed.xml" />
6
- <id>http://example.com</id>
7
- <updated>2017-05-23T19:36:44Z</updated>
8
- <author>
9
- <name>John Jay Gruber</name>
10
- <uri>http://example.com/</uri>
11
- </author>
12
-
13
- <entry>
14
- <title>Feedbin, Too</title>
15
- <link rel="alternate" type="text/html" href="https://feedbin.com/blog/2017/05/22/feedbin-supports-json-feed/" />
16
- <id>tag:daringfireball.net,2017:/linked//6.33732</id>
17
- <published>2017-05-23T18:50:36Z</published>
18
- <updated>2017-05-23T19:03:33Z</updated>
19
- <author>
20
- <name>Max Gruber Jun.</name>
21
- <uri>http://example.com/</uri>
22
- </author>
23
- <content type="text">
24
- Ben Ubois, announcing support for JSON Feed in Feedbin...
25
- </content>
26
- </entry>
27
- </feed>
28
-
29
- ---
30
-
31
- feed.authors.size: >>> 1
32
- feed.authors[0].name: John Jay Gruber
33
- feed.authors[0].url: http://example.com/
34
- feed.authors[0].email: >>> nil
35
-
36
- feed.author.name: John Jay Gruber
37
- feed.author.url: http://example.com/
38
- feed.author.email: >>> nil
39
-
40
-
41
- feed.items[0].authors.size: >>> 1
42
- feed.items[0].authors[0].name: Max Gruber Jun.
43
- feed.items[0].authors[0].url: http://example.com/
44
- feed.items[0].authors[0].email: >>> nil
45
-
46
- feed.items[0].author.name: Max Gruber Jun.
47
- feed.items[0].author.url: http://example.com/
48
- feed.items[0].author.email: >>> nil
@@ -1,70 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <feed xmlns="http://www.w3.org/2005/Atom">
3
- <title>Test Author</title>
4
- <link rel="alternate" type="text/html" href="http://example.com/" />
5
- <link rel="self" type="application/atom+xml" href="http://example.com/feed.xml" />
6
- <id>http://example.com</id>
7
- <updated>2017-05-23T19:36:44Z</updated>
8
- <author>
9
- <name>John Jay Gruber</name>
10
- <uri>http://example.com/</uri>
11
- </author>
12
- <author>
13
- <name>Frank Huber</name>
14
- <uri>http://example.com/frank/</uri>
15
- </author>
16
-
17
- <entry>
18
- <title>Feedbin, Too</title>
19
- <link rel="alternate" type="text/html" href="https://feedbin.com/blog/2017/05/22/feedbin-supports-json-feed/" />
20
- <id>tag:daringfireball.net,2017:/linked//6.33732</id>
21
- <published>2017-05-23T18:50:36Z</published>
22
- <updated>2017-05-23T19:03:33Z</updated>
23
- <author>
24
- <name>Max Gruber Jun.</name>
25
- <uri>http://example.com/</uri>
26
- </author>
27
- <author>
28
- <name>Frank Huber</name>
29
- <uri>http://example.com/frank/</uri>
30
- <email>frank@example.com</email>
31
- </author>
32
- <author>
33
- <name>George Imker</name>
34
- <uri>http://example.com/george/</uri>
35
- </author>
36
- <content type="text">
37
- Ben Ubois, announcing support for JSON Feed in Feedbin...
38
- </content>
39
- </entry>
40
- </feed>
41
-
42
- ---
43
-
44
- feed.authors.size: >>> 2
45
- feed.authors[0].name: John Jay Gruber
46
- feed.authors[0].url: http://example.com/
47
- feed.authors[0].email: >>> nil
48
- feed.authors[1].name: Frank Huber
49
- feed.authors[1].url: http://example.com/frank/
50
-
51
- feed.author.name: John Jay Gruber
52
- feed.author.url: http://example.com/
53
- feed.author.email: >>> nil
54
-
55
-
56
-
57
- feed.items[0].authors.size: >>> 3
58
- feed.items[0].authors[0].name: Max Gruber Jun.
59
- feed.items[0].authors[0].url: http://example.com/
60
- feed.items[0].authors[0].email: >>> nil
61
- feed.items[0].authors[1].name: Frank Huber
62
- feed.items[0].authors[1].url: http://example.com/frank/
63
- feed.items[0].authors[1].email: frank@example.com
64
- feed.items[0].authors[2].name: George Imker
65
- feed.items[0].authors[2].url: http://example.com/george/
66
- feed.items[0].authors[2].email: >>> nil
67
-
68
- feed.items[0].author.name: Max Gruber Jun.
69
- feed.items[0].author.url: http://example.com/
70
- feed.items[0].author.email: >>> nil
@@ -1,66 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <feed xmlns='http://www.w3.org/2005/Atom'>
3
- <title>Test Categories</title>
4
- <link rel="alternate" type="text/html" href="http://example.com/" />
5
- <link rel="self" type="application/atom+xml" href="http://example.com/feed.xml" />
6
- <id>http://example.com</id>
7
- <updated>2017-05-23T19:36:44Z</updated>
8
-
9
- <category term="jruby"/>
10
- <category term="ruby"/>
11
- <category term="java"/>
12
- <category term="rails"/>
13
- <category term="invokedynamic"/>
14
- <category term="jvm"/>
15
- <category term="application bundle"/>
16
- <category term="compilation"/>
17
- <category term="compiler"/>
18
- <category term="dynamic dispatch"/>
19
- <category term="dynamic languages"/>
20
- <category term="ruby 2.0"/>
21
-
22
- <entry>
23
-
24
- <title>Rock Surprise</title>
25
- <link href='https://www.tbray.org/ongoing/When/201x/2017/05/20/Rock-Surprise' />
26
- <id>https://www.tbray.org/ongoing/When/201x/2017/05/20/Rock-Surprise</id>
27
- <published>2017-05-20T12:00:00-07:00</published>
28
- <updated>2017-05-21T11:13:00-07:00</updated>
29
-
30
- <category scheme='https://www.tbray.org/ongoing/What/' term='Arts/Music' />
31
- <category scheme='https://www.tbray.org/ongoing/What/' term='Arts' />
32
- <category scheme='https://www.tbray.org/ongoing/What/' term='Music' />
33
- <category scheme='https://www.tbray.org/ongoing/What/' term='Arts/Photos' />
34
- <category scheme='https://www.tbray.org/ongoing/What/' term='Photos' />
35
-
36
- <content type="text">
37
- On a recent Saturday we accidentally took in two very
38
- different pop-music concerts...
39
- </content>
40
- </entry>
41
- </feed>
42
-
43
- ---
44
-
45
- feed.tags.size: >>> 12
46
- feed.tags[0].name: jruby
47
- feed.tags[1].name: ruby
48
- feed.tags[2].name: java
49
- feed.tags[3].name: rails
50
- feed.tags[4].name: invokedynamic
51
- feed.tags[5].name: jvm
52
- feed.tags[6].name: application bundle
53
- feed.tags[7].name: compilation
54
- feed.tags[8].name: compiler
55
- feed.tags[9].name: dynamic dispatch
56
- feed.tags[10].name: dynamic languages
57
- feed.tags[11].name: ruby 2.0
58
-
59
-
60
- feed.items[0].tags.size: >>> 5
61
- feed.items[0].tags[0].name: Arts/Music
62
- feed.items[0].tags[0].scheme: https://www.tbray.org/ongoing/What/
63
- feed.items[0].tags[1].name: Arts
64
- feed.items[0].tags[2].name: Music
65
- feed.items[0].tags[3].name: Arts/Photos
66
- feed.items[0].tags[4].name: Photos
@@ -1,36 +0,0 @@
1
- {
2
- "version": "https://jsonfeed.org/version/1",
3
- "title": "My Example Feed",
4
- "home_page_url": "https://example.org/",
5
- "feed_url": "https://example.org/feed.json",
6
- "items": [
7
- {
8
- "id": "2",
9
- "content_text": "This is a second item.",
10
- "url": "https://example.org/second-item"
11
- },
12
- {
13
- "id": "1",
14
- "content_html": "<p>Hello, world!</p>",
15
- "url": "https://example.org/initial-post"
16
- }
17
- ]
18
- }
19
-
20
- ---
21
-
22
- feed.format: json
23
- feed.title: My Example Feed
24
- feed.url: https://example.org/
25
- feed.feed_url: https://example.org/feed.json
26
-
27
- feed.items.size: >>> 2
28
-
29
- feed.items[0].id: 2
30
- feed.items[0].content_text: This is a second item.
31
- feed.items[0].url: https://example.org/second-item
32
-
33
-
34
- feed.items[1].id: 1
35
- feed.items[1].content_html: <p>Hello, world!</p>
36
- feed.items[1].url: https://example.org/initial-post
@@ -1,43 +0,0 @@
1
- {
2
- "version": "https://jsonfeed.org/version/1",
3
- "user_comment": "This is a microblog feed. You can add this to your feed reader using the following URL: https://example.org/feed.json",
4
- "title": "Brent Simmons’s Microblog",
5
- "home_page_url": "https://example.org/",
6
- "feed_url": "https://example.org/feed.json",
7
- "author": {
8
- "name": "Brent Simmons",
9
- "url": "http://example.org/",
10
- "avatar": "https://example.org/avatar.png"
11
- },
12
- "items": [
13
- {
14
- "id": "2347259",
15
- "url": "https://example.org/2347259",
16
- "content_text": "Cats are neat. \n\nhttps://example.org/cats",
17
- "date_published": "2016-02-09T14:22:00-07:00"
18
- }
19
- ]
20
- }
21
-
22
- ---
23
-
24
- feed.format: json
25
- feed.title: Brent Simmons’s Microblog
26
- feed.url: https://example.org/
27
- feed.feed_url: https://example.org/feed.json
28
-
29
- feed.authors.size: >>> 1
30
- feed.authors[0].name: Brent Simmons
31
- feed.authors[0].url: http://example.org/
32
- feed.authors[0].avatar: https://example.org/avatar.png
33
-
34
-
35
- feed.items.size: >>> 1
36
- feed.items[0].id: 2347259
37
- feed.items[0].url: https://example.org/2347259
38
- feed.items[0].content_text: Cats are neat. \n\nhttps://example.org/cats
39
- feed.items[0].published: >>> DateTime.new( 2016, 2, 9, 14, 22, 0, '-7').utc
40
- feed.items[0].published_local: >>> DateTime.new( 2016, 2, 9, 14, 22, 0, '-7')
41
-
42
- >>> pp feed.items[0].published
43
- >>> pp feed.items[0].published_local