pork_sandwich 0.4.18 → 0.4.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/pork_sandwich/puller.rb +5 -5
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.18
1
+ 0.4.19
@@ -11,22 +11,22 @@ module Pork
11
11
  begin
12
12
  pull_type.call(@user, @auth_object)
13
13
  rescue Errno::ECONNRESET
14
- p "ERROR: Connection reset by peer, probably because you tried to access an unauthorized page. Moving on."
14
+ $PORK_LOG.write("ERROR: Connection reset by peer, probably because you tried to access an unauthorized page. Moving on.") if $PORK_LOG
15
15
  rescue Twitter::Unavailable
16
- p "ERROR: Twitter unavailable, trying in 60"
16
+ $PORK_LOG.write("ERROR: Twitter unavailable, trying in 60") if $PORK_LOG
17
17
  sleep 60
18
18
  retry
19
19
  rescue Twitter::NotFound
20
- p "ERROR: Info target not found, trying to skip"
20
+ $PORK_LOG.write("ERROR: Info target not found, trying to skip") if $PORK_LOG
21
21
  # rescue Twitter::Unauthorized
22
22
  # rescue Crack::ParseError
23
23
  # raise Crack::ParseError
24
24
  rescue Errno::ETIMEDOUT
25
- p "ERROR: Puller timed out, retrying in 10"
25
+ $PORK_LOG.write("ERROR: Puller timed out, retrying in 10") if $PORK_LOG
26
26
  sleep 10
27
27
  retry
28
28
  rescue Twitter::InformTwitter
29
- p "ERROR: Twitter internal error, retrying in 30"
29
+ $PORK_LOG.write("ERROR: Twitter internal error, retrying in 30") if $PORK_LOG
30
30
  sleep 30
31
31
  retry
32
32
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 18
9
- version: 0.4.18
8
+ - 19
9
+ version: 0.4.19
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sam Gilbert