rubynpr 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +4 -0
- data/Manifest.txt +58 -0
- data/README.txt +53 -0
- data/Rakefile +16 -0
- data/bin/rubynpr +0 -0
- data/lib/rubynpr/audio.rb +43 -0
- data/lib/rubynpr/byline.rb +20 -0
- data/lib/rubynpr/client.rb +192 -0
- data/lib/rubynpr/content.rb +17 -0
- data/lib/rubynpr/exception.rb +34 -0
- data/lib/rubynpr/image.rb +34 -0
- data/lib/rubynpr/item.rb +25 -0
- data/lib/rubynpr/list.rb +47 -0
- data/lib/rubynpr/message.rb +15 -0
- data/lib/rubynpr/organization.rb +22 -0
- data/lib/rubynpr/parent.rb +24 -0
- data/lib/rubynpr/product.rb +32 -0
- data/lib/rubynpr/pull_quote.rb +12 -0
- data/lib/rubynpr/related_link.rb +26 -0
- data/lib/rubynpr/result_parser.rb +18 -0
- data/lib/rubynpr/show.rb +32 -0
- data/lib/rubynpr/story.rb +91 -0
- data/lib/rubynpr/subcategory.rb +17 -0
- data/lib/rubynpr.rb +28 -0
- data/test/audio_test.rb +24 -0
- data/test/byline_test.rb +10 -0
- data/test/client_test.rb +44 -0
- data/test/fixtures/audio.yml +32 -0
- data/test/fixtures/byline.yml +6 -0
- data/test/fixtures/client.yml +190 -0
- data/test/fixtures/image.yml +10 -0
- data/test/fixtures/item.yml +15 -0
- data/test/fixtures/list.yml +78 -0
- data/test/fixtures/list_text.xml +3 -0
- data/test/fixtures/organization.yml +11 -0
- data/test/fixtures/parent.yml +6 -0
- data/test/fixtures/product.yml +9 -0
- data/test/fixtures/pullquote.yml +6 -0
- data/test/fixtures/relatedlink.yml +6 -0
- data/test/fixtures/show.yml +6 -0
- data/test/fixtures/stories.yml +522 -0
- data/test/fixtures/story.yml +124 -0
- data/test/fixtures/subcategory.yml +59 -0
- data/test/fixtures.rb +86 -0
- data/test/image_test.rb +16 -0
- data/test/item_test.rb +18 -0
- data/test/list_test.rb +17 -0
- data/test/organization_test.rb +16 -0
- data/test/parent_test.rb +13 -0
- data/test/product_test.rb +16 -0
- data/test/pullquote_test.rb +11 -0
- data/test/related_link_test.rb +9 -0
- data/test/show_test.rb +12 -0
- data/test/story_list_test.rb +21 -0
- data/test/story_test.rb +50 -0
- data/test/subcategory_test.rb +15 -0
- data/test/test_helper.rb +12 -0
- data/test/test_rubynpr.rb +1 -0
- metadata +150 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
with_subcategories: >
|
2
|
+
<list id="3007" typeid="3007">
|
3
|
+
<title>All Bios</title>
|
4
|
+
<subcategory name="A">
|
5
|
+
<item id="2100140" num="1" type="bio">
|
6
|
+
<slug>NPR People</slug>
|
7
|
+
<title>Larry Abramson</title>
|
8
|
+
<additionalInfo>Education Correspondent, National Desk</additionalInfo>
|
9
|
+
</item>
|
10
|
+
<item id="1936703" num="2" type="bio">
|
11
|
+
<slug>NPR People</slug>
|
12
|
+
<title>Noah Adams</title>
|
13
|
+
<additionalInfo>Senior Correspondent, National Desk</additionalInfo>
|
14
|
+
</item>
|
15
|
+
<item id="2100166" num="3" type="bio">
|
16
|
+
<slug>NPR People</slug>
|
17
|
+
<title>Margot Adler</title>
|
18
|
+
<additionalInfo>Correspondent, National Desk, New York</additionalInfo>
|
19
|
+
</item>
|
20
|
+
</subcategory>
|
21
|
+
<subcategory name="E">
|
22
|
+
<item id="4473010" num="53" type="bio">
|
23
|
+
<slug>NPR People</slug>
|
24
|
+
<title>David Edelstein</title>
|
25
|
+
<additionalInfo>Film Critic, Fresh Air</additionalInfo>
|
26
|
+
</item>
|
27
|
+
<item id="2100438" num="54" type="bio">
|
28
|
+
<slug>NPR People</slug>
|
29
|
+
<title>Debbie Elliott</title>
|
30
|
+
<additionalInfo>Congressional Correspondent</additionalInfo>
|
31
|
+
</item>
|
32
|
+
<item id="1930203" num="55" type="bio">
|
33
|
+
<slug>NPR People</slug>
|
34
|
+
<title>Ron Elving</title>
|
35
|
+
<additionalInfo>Supervising Senior Washington Editor</additionalInfo>
|
36
|
+
</item>
|
37
|
+
</subcategory>
|
38
|
+
</list>
|
39
|
+
|
40
|
+
without_subcategories: >
|
41
|
+
<list id="3002" typeid="3002">
|
42
|
+
<title>All Topics</title>
|
43
|
+
<item id="1059" num="1" type="topic">
|
44
|
+
<slug/>
|
45
|
+
<title>Analysis</title>
|
46
|
+
<additionalInfo>
|
47
|
+
Analysis by NPR commentators, including Daniel Schorr and Ted Koppel. Subscribe to our free podcast.
|
48
|
+
</additionalInfo>
|
49
|
+
</item>
|
50
|
+
<item id="1008" num="2" type="topic">
|
51
|
+
<slug/>
|
52
|
+
<title>Arts & Entertainment</title>
|
53
|
+
<additionalInfo>
|
54
|
+
Art and entertainment commentary plus interviews, book reviews, movie reviews, music reviews, comedy, and visual art. Subscribe to podcasts and follow trends in music, painting, art, architecture, photography, and design.
|
55
|
+
</additionalInfo>
|
56
|
+
</item>
|
57
|
+
<item id="1033" num="3" type="topic">
|
58
|
+
<slug/>
|
59
|
+
<title>Authors</title>
|
60
|
+
<additionalInfo>
|
61
|
+
NPR interviews with top authors and the NPR Book Tour, a weekly feature and podcast where leading authors read and discuss their writing. Subscribe to the RSS feed.
|
62
|
+
</additionalInfo>
|
63
|
+
</item>
|
64
|
+
<item id="1032" num="4" type="topic">
|
65
|
+
<slug/>
|
66
|
+
<title>Books</title>
|
67
|
+
<additionalInfo>
|
68
|
+
Book reviews, interviews with authors, and NPR Book Tour, a weekly audio feature and podcast where leading authors read and discuss their work. Subscribe to the RSS feed.
|
69
|
+
</additionalInfo>
|
70
|
+
</item>
|
71
|
+
<item id="1006" num="5" type="topic">
|
72
|
+
<slug/>
|
73
|
+
<title>Business</title>
|
74
|
+
<additionalInfo>
|
75
|
+
Find the latest business news with reports on Wall Street, interest rates, banking, companies, and U.S. and world financial markets. Subscribe to the Business Story of the Day podcast.
|
76
|
+
</additionalInfo>
|
77
|
+
</item>
|
78
|
+
</list>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
org_with_abbreviation: >
|
2
|
+
<organization orgId="1" orgAbbr="NPR">
|
3
|
+
<name>National Public Radio</name>
|
4
|
+
<website type="Home Page">http://www.npr.org</website>
|
5
|
+
</organization>
|
6
|
+
|
7
|
+
org_without_abbreviation: >
|
8
|
+
<organization orgId="1">
|
9
|
+
<name>National Public Radio</name>
|
10
|
+
<website type="Home Page">http://www.npr.org/</website>
|
11
|
+
</organization>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
typical_parent: >
|
2
|
+
<parent id="1027" type="primaryTopic">
|
3
|
+
<title>Health Care</title>
|
4
|
+
<link type="html">http://www.npr.org/templates/topics/topic.php?topicId=1027&ft=3&f=1007</link>
|
5
|
+
<link type="api">http://api.npr.org/query?id=1027&apiKey=MDAyMDAzMjg3MDEyMjMwMTgyODA0NWNlMg001</link>
|
6
|
+
</parent>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
book: >
|
2
|
+
<product id="94639520" type="Book">
|
3
|
+
<title>Ordinary People</title>
|
4
|
+
<author>Judith Guest</author>
|
5
|
+
<upc>0140065172</upc>
|
6
|
+
<publisher/>
|
7
|
+
<publishYear>0</publishYear>
|
8
|
+
<purchaseLink vendor="Amazon">http://www.amazon.com/exec/obidos/ASIN/0140065172/npr-5-20</purchaseLink>
|
9
|
+
</product>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
typical_pullquote: >
|
2
|
+
<pullQuote id="95611389">
|
3
|
+
<text><![CDATA[Both [McCain and Obama] in their way are tough guys, and their code is inherent in Robert Jordan. ... Hemingway kind of created the idea of the anti-fascist hero.]]></text>
|
4
|
+
<person>Robert Stone</person>
|
5
|
+
<date/>
|
6
|
+
</pullQuote>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
typical_link: >
|
2
|
+
<relatedLink id="95901916" type="internal">
|
3
|
+
<caption><![CDATA[Bernanke Hints At Rate Cuts]]></caption>
|
4
|
+
<link type="html">http://www.npr.org/templates/story/story.php?storyId=95484248&ft=3&f=1006</link>
|
5
|
+
<link type="api">http://api.npr.org/query?id=95484248&apiKey=MDAyMDAzMjg3MDEyMjQ1Mjg4OTkxZjcyOQ001</link>
|
6
|
+
</relatedLink>
|