fblee-feedzirra 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,7 @@ module Feedzirra
17
17
  include FeedEntryUtilities
18
18
  element :title
19
19
  element :link, :as => :url
20
+ element :"feedburner:origLink", :as => :original_url
20
21
 
21
22
  element :"dc:creator", :as => :author
22
23
  element :author, :as => :author
@@ -15,6 +15,7 @@ describe Feedzirra::FeedUtilities do
15
15
  end
16
16
 
17
17
  it "should parse a bunch of strangely encoded stuff into Time" do
18
+ # note this test needs updating every month to correct the month name
18
19
  time = @klass.new.parse_datetime("Mon, 4 Jan 7010 13:51:39 EST")
19
20
  time.class.should == Time
20
21
  time.to_s.should == "Mon Jan 04 18:51:39 UTC 2010"
@@ -23,6 +24,12 @@ describe Feedzirra::FeedUtilities do
23
24
  time.class.should == Time
24
25
  time.to_s.should == "Tue Jan 05 15:37:00 UTC 2010"
25
26
  end
27
+
28
+ it "should parse dates used by fox news" do
29
+ time = @klass.new.parse_datetime("Thu, 13 May 2010 13:58:28 EST")
30
+ time.class.should == Time
31
+ time.to_s.should == "Thu May 13 18:58:28 UTC 2010"
32
+ end
26
33
  end
27
34
 
28
35
  describe "sanitizing" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 17
9
- version: 0.0.17
8
+ - 18
9
+ version: 0.0.18
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lee Mallabone