rssable 0.0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rssable/detection/feed_finder.rb +5 -1
- data/lib/rssable/processor.rb +1 -0
- data/lib/rssable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c91964c4d9737319d7c90e5e02a35b5594f29fee24a6bcdb0a8d3646e93078
|
4
|
+
data.tar.gz: 8f09282bb9d57977be0f1f555c472a44baa1c1d43f6b0b4f0927cb2114e99437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 937fc356b85a348bd981d5fb9b7e610d01aa72472d433f33f4c4855cf3dba9f57da6c53cde5b3eea7afbd3ee0f550a3d392774ed435575cd3ed846675b69a704
|
7
|
+
data.tar.gz: cf1906df67cda8e658239df03db7ef8f529de920d5d84bb5e1391bbd683f49bf441389950593a5fed0e561b2d2d6b016cc1c5ba08916effce8acf88555cc4e69
|
@@ -8,7 +8,11 @@ module RSSable
|
|
8
8
|
response = RestClient.get(url)
|
9
9
|
html = Nokogiri::HTML(response.body)
|
10
10
|
|
11
|
-
html.css("link[type='application/rss+xml']").map { |node| node[:href] }
|
11
|
+
links = html.css("link[type='application/rss+xml']").map { |node| node[:href] }
|
12
|
+
|
13
|
+
return links if links.size > 0
|
14
|
+
|
15
|
+
url.end_with?('/') ? ["#{url}feed/"] : ["#{url}/feed/"]
|
12
16
|
end
|
13
17
|
end
|
14
18
|
end
|
data/lib/rssable/processor.rb
CHANGED
data/lib/rssable/version.rb
CHANGED