feed_parser 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ class FeedParser
13
13
  :item_title => "title",
14
14
  :item_categories => "category",
15
15
  :item_author => "creator",
16
+ :item_description => "description",
16
17
  :item_content => "encoded",
17
18
  }
18
19
  end
@@ -26,6 +27,7 @@ class FeedParser
26
27
  :item_title => "title",
27
28
  :item_categories => "category",
28
29
  :item_author => "author/name",
30
+ :item_description => "summary",
29
31
  :item_content => "content",
30
32
  }
31
33
  end
@@ -6,6 +6,7 @@ class FeedParser
6
6
  @guid = item.xpath(Dsl[@type][:item_guid]).text
7
7
  @title = item.xpath(Dsl[@type][:item_title]).text
8
8
  @author = item.xpath(Dsl[@type][:item_author]).text
9
+ @description = item.xpath(Dsl[@type][:item_description]).text
9
10
  @content = item.xpath(Dsl[@type][:item_content]).text
10
11
  self
11
12
  end
@@ -29,6 +30,7 @@ class FeedParser
29
30
  :title => title,
30
31
  :categories => categories,
31
32
  :author => author,
33
+ :description => description,
32
34
  :content => content
33
35
  }
34
36
  end
data/lib/feed_parser.rb CHANGED
@@ -3,7 +3,7 @@ require 'nokogiri'
3
3
 
4
4
  class FeedParser
5
5
 
6
- VERSION = "0.1.2"
6
+ VERSION = "0.2.0"
7
7
 
8
8
  def initialize(opts)
9
9
  @url = opts[:url]
@@ -90,6 +90,7 @@ describe FeedParser do
90
90
  :title => "Ruby 1.8.7 imported",
91
91
  :categories => ["APIdock", "Ruby"],
92
92
  :author => "Otto Hilska",
93
+ :description => "I just finished importing Ruby 1.8.7 to APIdock. It’s also the new default version, because usually it is better documented. However, there’re some incompatibilities between 1.8.6 and 1.8.7, so be sure to check the older documentation when something seems to be wrong.\n",
93
94
  :content => "<p>I just finished importing Ruby 1.8.7 to APIdock. It&#8217;s also the new default version, because usually it is better documented. However, there&#8217;re some incompatibilities between 1.8.6 and 1.8.7, so be sure to check the older documentation when something seems to be wrong.</p>\n"
94
95
  }
95
96
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &2152446300 !ruby/object:Gem::Requirement
16
+ requirement: &2156476000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152446300
24
+ version_requirements: *2156476000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &2152445600 !ruby/object:Gem::Requirement
27
+ requirement: &2156475080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.6'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2152445600
35
+ version_requirements: *2156475080
36
36
  description: Rss and Atom feed parser with sanitizer support built on top of Nokogiri.
37
37
  email:
38
38
  - arttu.tervo@gmail.com