phonehome 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/phonehome/gem/version.rb +1 -1
- data/lib/phonehome.rb +4 -4
- metadata +1 -1
data/lib/phonehome.rb
CHANGED
@@ -46,12 +46,12 @@ module Phonehome
|
|
46
46
|
@begin = Time.now
|
47
47
|
app_name = get_app_name(id)
|
48
48
|
response = Excon.post("http://#{@@phonehomeURL}/query/#{secret_key}/#{get_status(1)}/#{id}", :headers => { "Content-Type" => "application/json" })
|
49
|
-
if JSON.parse(response.body)
|
49
|
+
if JSON.parse(response.body)['status'] == 'All events are completed'
|
50
50
|
p "#{id}: All events are completed"
|
51
|
-
raise JSON.parse(response.body)
|
51
|
+
raise JSON.parse(response.body)['status']
|
52
52
|
end
|
53
|
-
@id = JSON.parse(response.body)
|
54
|
-
@status = JSON.parse(response.body)
|
53
|
+
@id = JSON.parse(response.body)['id']
|
54
|
+
@status = JSON.parse(response.body)['status']
|
55
55
|
|
56
56
|
end
|
57
57
|
|