pork_sandwich 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.10
|
@@ -123,7 +123,7 @@ class PorkSandwichMigration < ActiveRecord::Migration
|
|
123
123
|
execute "alter table tweet_reactions " +
|
124
124
|
"alter column updated_at type timestamp with time zone;"
|
125
125
|
rescue => e
|
126
|
-
puts e + "\n" + "Migration failed to change timestamp column data types pork_sandwich tables. Attempted to change all timestamp without time zone types to timestamp with time zone types. Tables will still properly process and store time zone data for timestamps, but will not export UTC offset on COPY to."
|
126
|
+
puts e.to_s + "\n" + "Migration failed to change timestamp column data types pork_sandwich tables. Attempted to change all timestamp without time zone types to timestamp with time zone types. Tables will still properly process and store time zone data for timestamps, but will not export UTC offset on COPY to."
|
127
127
|
end
|
128
128
|
|
129
129
|
reaction_types = ['retweet', 'mention', 'reply']
|
data/lib/pork_sandwich/search.rb
CHANGED
@@ -45,11 +45,13 @@ module Pork
|
|
45
45
|
if $PORK_LOG
|
46
46
|
$PORK_LOG.write("ERROR: Info target not found, trying to skip")
|
47
47
|
end
|
48
|
+
retry
|
48
49
|
rescue Crack::ParseError
|
49
50
|
if $PORK_LOG
|
50
51
|
$PORK_LOG.write("Error: JSON Parsing error, trying to skip past problem tweet")
|
51
52
|
end
|
52
53
|
@search_params.query[:max_id] -= 1000
|
54
|
+
retry
|
53
55
|
rescue Errno::ETIMEDOUT
|
54
56
|
if $PORK_LOG
|
55
57
|
$PORK_LOG.write("ERROR: Puller timed out, retrying in 10")
|