fourkites-sqspoller 0.1.12.17 → 0.1.12.18
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 +0 -9
- data/sqspoller.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDRlMmY3OTRjMjc2NDQ0ZTIxODJkMDA0ZmRkN2MxNjE5MmE0ZjJjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjFmODMyMGQwMGNjZjY5MmFkNzJlMjgwNjNjM2IwYTdhNzNiZTY4Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTBjNTMwNDAyZDBlZjk5YWM3Y2U3NTEzNWQxNDAyNjFmYTM4NzIxMjRiZTBj
|
10
|
+
NzM1NWViMThmYmJiNmNhNjM1MDkyOGY1OWExOWM4ZGJkNDRhNmRmOWZhOTUx
|
11
|
+
MmU3NDA5ZjAyMDQwNDMzZGQ3ZWJmNmRkMzE4ZTY4MzFjYTg2MTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWFiMDQ5YmI1ZWE4ZWY0YjNiMjdmYWMwYjgzMTViYTdmODkzOWFiYTg0YzYw
|
14
|
+
NTA5ODQ5OTYyOTEwZTJmZGRiZWVmZTk5YjY1ZTA5MTc1YTQyMmY3MmI3MWY2
|
15
|
+
YjAxY2RmMGMwMDlhMzgyNzgyZTJhOGRlOWRkNDE3NGFiZDIyZjE=
|
@@ -22,16 +22,7 @@ module Sqspoller
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def process(message, message_id)
|
25
|
-
params = {}
|
26
25
|
parsed_message = JSON.parse(message)
|
27
|
-
parsed_message.keys.each do |key|
|
28
|
-
@logger.info "Creating a new params hash"
|
29
|
-
params[key] = ( parsed_message[key].is_a?(Hash) ? parsed_message[key].to_json : parsed_message[key])
|
30
|
-
end
|
31
|
-
@logger.info "rest-client, Got params as: #{message}"
|
32
|
-
@logger.info "rest-client, Got params as: #{parsed_message}"
|
33
|
-
@logger.info "rest-client, Got params as: #{params}"
|
34
|
-
@logger.info "rest-client, json params as: #{params.to_json}"
|
35
26
|
|
36
27
|
if @http_method.downcase == "post"
|
37
28
|
RestClient::Request.execute(:method => :post, :url => @http_url, :payload => parsed_message.to_json, :headers => HEADERS, :timeout => 10, :open_timeout => 5) do |response, request, result|
|
data/sqspoller.gemspec
CHANGED