pluto-feedfetcher 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c493d892f3ebec0cd6056599dcc876add4dc426
4
- data.tar.gz: 8eef5bf1f6b98ae34770a13750e3f4334292194b
3
+ metadata.gz: 19978b79a8dd816ee35d3190042ad350c4f3706f
4
+ data.tar.gz: 11079417a6c2227179cb09ea6b8695f49ecbebeb
5
5
  SHA512:
6
- metadata.gz: ec1373276050c5f8b93be59bec935cf4979051e19046ca7c8840f434d8b01dc3fc010cbb3898f9529a03296404993fbc5d60fb30b61a9d9140bcfdd6cca9625d
7
- data.tar.gz: b9603807f51ec8540cf22459d9a3d25e0211a1df5753a6c013cf5871ae876a663853db088ce99d5752085b54c9c8c00b6dcbceb6aa31e70a73240d305290a0e0
6
+ metadata.gz: 3364a390bcfa62adb1d556bc7e5db5e4056d4ab110fbdf3ecc0d5f6f1e4b518694b623ce44470c67ad78a71b0b891b401243f6d4ba9b23da5d4bf06ade502a6a
7
+ data.tar.gz: 8b988934652d21589bc7e59ad1a1a8da3bb68107cf795f3b9af4a2decfb51039c921170bfc036908050b1798bc15525f980477863343a55dcab84a72e982488f
@@ -32,7 +32,18 @@ class FeedFetcherCondGetWithCache
32
32
 
33
33
  begin
34
34
  response = @worker.get( feed_url )
35
- rescue Net::ReadTimeout, SocketError, SystemCallError => e
35
+
36
+ ## todo/fix: add a retry for open timeout - why? why not?
37
+ ## When you run into Net::OpenTimeout, you should handle it
38
+ ## by retrying the request a few times,
39
+ ## or giving up and showing a helpful error to the user.
40
+ ## -- <https://www.exceptionalcreatures.com/bestiary/Net/OpenTimeout.html>
41
+
42
+ rescue Net::OpenTimeout,
43
+ Net::ReadTimeout,
44
+ SocketError,
45
+ SystemCallError => e
46
+
36
47
  ## catch socket error for unknown domain names (e.g. pragdave.blogs.pragprog.com)
37
48
  ### will result in SocketError -- getaddrinfo: Name or service not known
38
49
  logger.error "*** error: fetching feed '#{feed_key}' - [#{e.class.name}] #{e.to_s}"
@@ -4,7 +4,7 @@ module PlutoFeedFetcher
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 5
7
+ PATCH = 6
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluto-feedfetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pluto-models