feedbagtoo 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
data/feedbagtoo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{feedbagtoo}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Axiombox", "David Moreno", "Joel Duffin", "Justin Ball", "Fabien Penso"]
12
- s.date = %q{2012-07-18}
12
+ s.date = %q{2012-07-23}
13
13
  s.default_executable = %q{feedbag}
14
14
  s.description = %q{This gem will return title and url for each feed discovered at a given url}
15
15
  s.email = %q{justin@tatemae.com}
data/lib/feedbag.rb CHANGED
@@ -140,7 +140,7 @@ module Feedbag
140
140
  (doc/"a").each do |a|
141
141
  next unless a["href"]
142
142
  if self.looks_like_feed?(a["href"]) and (a["href"] =~ /\// or a["href"] =~ /#{url_uri.host}/)
143
- title = a["title"] || a.inner_html || a['alt'] || title
143
+ title = a["title"] || a.innerText || a['alt'] || title
144
144
  self.add_feed(a["href"], url, $base_uri, title, description || title)
145
145
  end
146
146
  end
@@ -148,7 +148,7 @@ module Feedbag
148
148
  (doc/"a").each do |a|
149
149
  next unless a["href"]
150
150
  if self.looks_like_feed?(a["href"])
151
- title = a["title"] || a.inner_html || a['alt'] || title
151
+ title = a["title"] || a.innerText || a['alt'] || title
152
152
  self.add_feed(a["href"], url, $base_uri, title, description || title)
153
153
  end
154
154
  end
data/test/feedbag_test.rb CHANGED
@@ -44,4 +44,8 @@ class FeedbagTest < ActiveSupport::TestCase
44
44
  end
45
45
  end
46
46
 
47
+ test "Feedgab should find multiple feeds" do
48
+ feeds = Feedbag.find('http://www.engadget.com')
49
+ assert feeds.length > 0
50
+ end
47
51
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedbagtoo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Axiombox
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-07-18 00:00:00 -06:00
22
+ date: 2012-07-23 00:00:00 -06:00
23
23
  default_executable: feedbag
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency