city-watch 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/city_watch/util/collector.rb +2 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
@@ -18,10 +18,11 @@ module Collector
|
|
18
18
|
req = Net::HTTP::Post.new(uri.path)
|
19
19
|
req.body = Yajl::Encoder.encode(dat)
|
20
20
|
req["Content-Type"] = 'application/json'
|
21
|
-
case http.request(req)
|
21
|
+
case resp = http.request(req)
|
22
22
|
when Net::HTTPSuccess
|
23
23
|
puts "Successfully sent to collector." if CityWatch.debug?
|
24
24
|
else
|
25
|
+
puts resp.inspect
|
25
26
|
raise Exception
|
26
27
|
end
|
27
28
|
end
|
data/lib/version.rb
CHANGED