pork_sandwich 0.4.19 → 0.4.20
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 +1 -1
- data/lib/pork_sandwich/puller.rb +6 -0
- data/lib/pork_sandwich/search.rb +6 -0
- metadata +25 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.20
|
data/lib/pork_sandwich/puller.rb
CHANGED
|
@@ -29,6 +29,12 @@ module Pork
|
|
|
29
29
|
$PORK_LOG.write("ERROR: Twitter internal error, retrying in 30") if $PORK_LOG
|
|
30
30
|
sleep 30
|
|
31
31
|
retry
|
|
32
|
+
rescue Timeout::Error
|
|
33
|
+
if $PORK_LOG
|
|
34
|
+
$PORK_LOG.write("ERROR: Request Timed out. Retrying in 30")
|
|
35
|
+
end
|
|
36
|
+
sleep 30
|
|
37
|
+
retry
|
|
32
38
|
end
|
|
33
39
|
end
|
|
34
40
|
end
|
data/lib/pork_sandwich/search.rb
CHANGED
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pork_sandwich
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 39
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
7
8
|
- 4
|
|
8
|
-
-
|
|
9
|
-
version: 0.4.
|
|
9
|
+
- 20
|
|
10
|
+
version: 0.4.20
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Sam Gilbert
|
|
@@ -15,16 +16,18 @@ autorequire:
|
|
|
15
16
|
bindir: bin
|
|
16
17
|
cert_chain: []
|
|
17
18
|
|
|
18
|
-
date: 2010-
|
|
19
|
+
date: 2010-05-23 00:00:00 -04:00
|
|
19
20
|
default_executable:
|
|
20
21
|
dependencies:
|
|
21
22
|
- !ruby/object:Gem::Dependency
|
|
22
23
|
name: acts-as-taggable-on
|
|
23
24
|
prerelease: false
|
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
25
27
|
requirements:
|
|
26
28
|
- - ">="
|
|
27
29
|
- !ruby/object:Gem::Version
|
|
30
|
+
hash: 15
|
|
28
31
|
segments:
|
|
29
32
|
- 1
|
|
30
33
|
- 0
|
|
@@ -36,9 +39,11 @@ dependencies:
|
|
|
36
39
|
name: twitter
|
|
37
40
|
prerelease: false
|
|
38
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
|
42
|
+
none: false
|
|
39
43
|
requirements:
|
|
40
44
|
- - ">="
|
|
41
45
|
- !ruby/object:Gem::Version
|
|
46
|
+
hash: 17
|
|
42
47
|
segments:
|
|
43
48
|
- 0
|
|
44
49
|
- 7
|
|
@@ -76,6 +81,18 @@ files:
|
|
|
76
81
|
- lib/pork_sandwich/saver.rb
|
|
77
82
|
- lib/pork_sandwich/search.rb
|
|
78
83
|
- lib/pork_sandwich/twitter_user.rb
|
|
84
|
+
- test/auth_test.rb
|
|
85
|
+
- test/crawler_test.rb
|
|
86
|
+
- test/factories.rb
|
|
87
|
+
- test/fakewebs.rb
|
|
88
|
+
- test/log_test.rb
|
|
89
|
+
- test/puller_test.rb
|
|
90
|
+
- test/reaction_processor_test.rb
|
|
91
|
+
- test/saver_test.rb
|
|
92
|
+
- test/schema.rb
|
|
93
|
+
- test/search_test.rb
|
|
94
|
+
- test/test_helper.rb
|
|
95
|
+
- test/twitter_user_test.rb
|
|
79
96
|
has_rdoc: true
|
|
80
97
|
homepage: http://github.com/sam1vp/pork_sandwich
|
|
81
98
|
licenses: []
|
|
@@ -86,23 +103,27 @@ rdoc_options:
|
|
|
86
103
|
require_paths:
|
|
87
104
|
- lib
|
|
88
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
89
107
|
requirements:
|
|
90
108
|
- - ">="
|
|
91
109
|
- !ruby/object:Gem::Version
|
|
110
|
+
hash: 3
|
|
92
111
|
segments:
|
|
93
112
|
- 0
|
|
94
113
|
version: "0"
|
|
95
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
|
+
none: false
|
|
96
116
|
requirements:
|
|
97
117
|
- - ">="
|
|
98
118
|
- !ruby/object:Gem::Version
|
|
119
|
+
hash: 3
|
|
99
120
|
segments:
|
|
100
121
|
- 0
|
|
101
122
|
version: "0"
|
|
102
123
|
requirements: []
|
|
103
124
|
|
|
104
125
|
rubyforge_project:
|
|
105
|
-
rubygems_version: 1.3.
|
|
126
|
+
rubygems_version: 1.3.7
|
|
106
127
|
signing_key:
|
|
107
128
|
specification_version: 3
|
|
108
129
|
summary: A tool for pulling and storing delicious, delicious Twitter data
|