fourkites-sqspoller 0.1.12.18 → 0.1.12.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sqspoller/worker_task.rb +3 -2
- data/sqspoller.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzllODY4NTQ2NDRiNjRkNzIxOTRjMDUzMWQ3NzM0MWNmYmZiYWViOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWY4OTM2ZTNlODQ4ZGYwMDcwYmUyYTA0NmY2NmI3MTg4MmYzMmZmYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzRiNGMwZGUyYjEzZDM5MTEyMTZjYTMwMjcwNzhiMzBhZjlhZjcwMzQwZDM5
|
10
|
+
ZTMwMzdhN2YzN2E5YzEwNjUwZWM1ODdkM2VkMDQ2YzAxYzRhOTVhZDJjOGIy
|
11
|
+
NGI0MTcwN2ZiNDYwZDg1Y2U4OWJmMTYwYzk2ZTBmNWFjYjM4NmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDgwYzIyNWVkNmIzZDZhOWUxNjJmMjRmMTliZmUyNGNiNDNlNDgwYzkwYjcy
|
14
|
+
NDcwYTYxMWJhMjY3MjRjMGU2ZmM4N2I4MmI3NzVhMzJhZmRhZmE5OTYzMDU0
|
15
|
+
OGJmODVjMjhmZGMxZjIxZDZiYTIwMmI2MDRmNmM3NWI3N2MzYTI=
|
@@ -18,6 +18,7 @@ module Sqspoller
|
|
18
18
|
@logger = Logger.new(logger_file)
|
19
19
|
@http_method = worker_configuration[:http_method]
|
20
20
|
@http_url = worker_configuration[:http_url]
|
21
|
+
@timeout = worker_configuration[:timeout] ? worker_configuration[:timeout].to_i : 450
|
21
22
|
@uri = URI(@http_url)
|
22
23
|
end
|
23
24
|
|
@@ -25,11 +26,11 @@ module Sqspoller
|
|
25
26
|
parsed_message = JSON.parse(message)
|
26
27
|
|
27
28
|
if @http_method.downcase == "post"
|
28
|
-
RestClient::Request.execute(:method => :post, :url => @http_url, :payload => parsed_message.to_json, :headers => HEADERS, :timeout =>
|
29
|
+
RestClient::Request.execute(:method => :post, :url => @http_url, :payload => parsed_message.to_json, :headers => HEADERS, :timeout => @timeout, :open_timeout => 5) do |response, request, result|
|
29
30
|
process_http_response response
|
30
31
|
end
|
31
32
|
elsif @http_method.downcase == "get"
|
32
|
-
RestClient::Request.execute(:method => :get, :url => @http_url, :payload => parsed_message.to_json, :headers => HEADERS, :timeout =>
|
33
|
+
RestClient::Request.execute(:method => :get, :url => @http_url, :payload => parsed_message.to_json, :headers => HEADERS, :timeout => @timeout, :open_timeout => 5) do |response, request, result|
|
33
34
|
process_http_response response
|
34
35
|
end
|
35
36
|
else
|
data/sqspoller.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fourkites-sqspoller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.12.
|
4
|
+
version: 0.1.12.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anshul-fk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|