feedium 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/parse.rb +1 -2
- data/lib/feedium/request.rb +2 -0
- data/lib/feedium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88e09c4e19588e353222c2e1acf629fa23a296dd
|
4
|
+
data.tar.gz: 74cd929cc1d75047ee71656cc1980cde167a6c20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b539844393655def8253380f6f5d0bab699a80d3a3bd2763eb004212d29d2402b7b0e8284f1518f56bb8ecb044c601fd94aab932c8782b01ad939fa7bc9cc6a8
|
7
|
+
data.tar.gz: 06d966f060970c067ee085273f5d7e38edfeaa359f6889df08f8a7a82c2c20501dbf73374dfd46b3cd6473f8a6c0dc53aee835d5cc2f96032f523d71a672e3b7
|
data/examples/parse.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
2
|
require File.join(dir, 'feedium')
|
3
3
|
|
4
|
-
|
5
|
-
puts Feedium.find('http://www.gazzettadelsud.it/feed.jsp')
|
4
|
+
puts Feedium.parse('http://mangastream.com/rss')
|
data/lib/feedium/request.rb
CHANGED
@@ -36,6 +36,8 @@ class Feedium::Request
|
|
36
36
|
})
|
37
37
|
rescue Net::ReadTimeout => e
|
38
38
|
raise Feedium::RequestError.new(e.message == 'Net::ReadTimeout' ? '598 Network Read Timeout Error' : e.message)
|
39
|
+
rescue Net::OpenTimeout => e
|
40
|
+
raise Feedium::RequestError.new(e.message)
|
39
41
|
rescue OpenURI::HTTPError => e
|
40
42
|
raise Feedium::RequestError.new(e.message)
|
41
43
|
rescue Errno::ECONNREFUSED => e
|
data/lib/feedium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: feedium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|