debugged-ruby 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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://debugrged.herokuapp.com/report"
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
- "debueged.herokuapp.com/report/"+hash
85
+ "http://www.debugged.herokuapp.com/report/"+hash
89
86
  end
90
87
  end
91
88
 
@@ -1,3 +1,3 @@
1
1
  module Debugged
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debugged-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: