debugged-ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/debugged-ruby.rb +4 -7
- data/lib/debugged-ruby/version.rb +1 -1
- metadata +1 -1
data/lib/debugged-ruby.rb
CHANGED
@@ -57,19 +57,16 @@ module Debugged
|
|
57
57
|
"platform" => RUBY_PLATFORM.to_s}
|
58
58
|
}
|
59
59
|
|
60
|
-
url = "http://
|
61
|
-
uri = URI(url)
|
62
|
-
|
63
|
-
req = Net::HTTP::Post.new(uri.request_uri)
|
64
|
-
req.basic_auth @@api_key, 'pass'
|
65
|
-
req.body = report.to_json
|
60
|
+
url = "http://debugged.herokuapp.com/report"
|
66
61
|
|
67
62
|
pending = 1
|
63
|
+
@@log.debug(hash + " - sending report to Debugged")
|
68
64
|
|
69
65
|
EM.run do
|
70
66
|
begin
|
71
67
|
http = EM::HttpRequest.new(url).post :body => report.to_json, :head => {'authorization' => [@@api_key, 'pass']}
|
72
68
|
http.callback {
|
69
|
+
@@log.debug(hash + " - report sent to Debugged")
|
73
70
|
pending -= 1
|
74
71
|
EM.stop if pending < 1
|
75
72
|
}
|
@@ -85,7 +82,7 @@ module Debugged
|
|
85
82
|
end
|
86
83
|
end
|
87
84
|
|
88
|
-
"
|
85
|
+
"http://www.debugged.herokuapp.com/report/"+hash
|
89
86
|
end
|
90
87
|
end
|
91
88
|
|