bradgessler-birdfeed 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 1
3
- :patch: 4
3
+ :patch: 5
4
4
  :major: 0
@@ -25,6 +25,7 @@ module BirdFeed
25
25
  item.published_at = item_node.css('pubDate').text
26
26
  item.link = item_node.css('link').text
27
27
  item.id = item_node.css('guid').text
28
+ item.author = item_node.css('author').text if item_node.css('author')
28
29
  end
29
30
  end
30
31
  end
@@ -17,6 +17,7 @@
17
17
  </image>
18
18
  <thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://rss.cnn.com/rss/cnn_topstories?format=skin</thespringbox:skin><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://rss.cnn.com/rss/cnn_topstories" type="application/rss+xml" /><item>
19
19
  <title>Recession lands men in 'Devil's Cave'</title>
20
+ <author>Billy Fleenor</author>
20
21
  <guid isPermaLink="false">http://www.cnn.com/2009/US/01/29/porch.cave/index.html?eref=rss_topstories</guid>
21
22
  <link>http://rss.cnn.com/~r/rss/cnn_topstories/~3/wpPskrTYfzg/index.html</link>
22
23
  <description>Enter the "Devil's Cave" by pulling aside the wooden grate beneath the porch of the abandoned suburban New Jersey home. Crawl inside to see the filthy, mismatched blankets and the garbage and empty soda and alcohol bottles strewn about. Catch your breath against the smell. For a group of Latin American men, the "Devil's Cave" was home for as they hunted work in tough economic times.&lt;div class="feedflare"&gt;
@@ -81,8 +81,8 @@ describe Rss20, "item parser" do
81
81
  @item.description.should match(/^Enter the "Devil's Cave" by pulling aside the wooden grate beneath the porch of the abandoned suburban New Jersey home/)
82
82
  end
83
83
 
84
- it "should have blank author" do
85
- @item.author.should be_nil # RSS doesn't support authors ya dumby!
84
+ it "should have author" do
85
+ @item.author.should eql('Billy Fleenor')
86
86
  end
87
87
 
88
88
  it "should have published_at" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bradgessler-birdfeed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-31 00:00:00 -08:00
12
+ date: 2009-02-01 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency