crashdesk 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/crashdesk.gemspec +1 -1
- data/lib/crashdesk/configuration.rb +4 -4
- data/lib/crashdesk/crashlog.rb +2 -2
- data/lib/crashdesk/report_manager.rb +1 -1
- data/lib/crashdesk/reporters/logger.rb +3 -0
- data/lib/crashdesk/reporters/remote.rb +1 -1
- data/lib/crashdesk/reporters/screen.rb +3 -0
- data/lib/crashdesk/version.rb +1 -1
- metadata +3 -2
data/crashdesk.gemspec
CHANGED
@@ -4,7 +4,7 @@ require File.expand_path('../lib/crashdesk/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'crashdesk'
|
6
6
|
gem.version = Crashdesk::VERSION
|
7
|
-
gem.authors = ["Ladislav Martincik"]
|
7
|
+
gem.authors = ["Ladislav Martincik", "Zdenko Nevrala"]
|
8
8
|
gem.summary = "Crashde.sk is helping you track crashes of your application online"
|
9
9
|
gem.description = "crashdesk is the Ruby gem for containing core functionality for communication with crashde.sk servers"
|
10
10
|
gem.email = "info@crashde.sk"
|
@@ -3,7 +3,7 @@ module Crashdesk
|
|
3
3
|
class Configuration
|
4
4
|
|
5
5
|
# Basic connection settings
|
6
|
-
attr_accessor :
|
6
|
+
attr_accessor :app_key
|
7
7
|
|
8
8
|
# Proxy server
|
9
9
|
attr_accessor :proxy_host, :proxy_port, :proxy_user, :proxy_pass
|
@@ -17,7 +17,7 @@ module Crashdesk
|
|
17
17
|
# Framework is string representing framework
|
18
18
|
# @example
|
19
19
|
# Crashdesk.configure do |config|
|
20
|
-
# config.
|
20
|
+
# config.app_key = 'YOUR APP KEY HERE'
|
21
21
|
# config.project_root = ::Rails.root
|
22
22
|
# config.environment_name = ::Rails.env
|
23
23
|
# config.logger = ::Rails.logger
|
@@ -26,7 +26,7 @@ module Crashdesk
|
|
26
26
|
attr_accessor :environment_name, :project_root
|
27
27
|
|
28
28
|
def initialize
|
29
|
-
@host = 'crashde.sk'
|
29
|
+
@host = 'beta.crashde.sk'
|
30
30
|
end
|
31
31
|
|
32
32
|
# Hash like access
|
@@ -50,7 +50,7 @@ module Crashdesk
|
|
50
50
|
private
|
51
51
|
|
52
52
|
def default_port
|
53
|
-
|
53
|
+
9292
|
54
54
|
end
|
55
55
|
|
56
56
|
end
|
data/lib/crashdesk/crashlog.rb
CHANGED
@@ -3,7 +3,7 @@ module Crashdesk
|
|
3
3
|
class Crashlog
|
4
4
|
|
5
5
|
attr_accessor :options, :exception, :backtrace, :environment, :exception_class,
|
6
|
-
:exception_message, :context, :
|
6
|
+
:exception_message, :context, :occured_at,
|
7
7
|
:reporters
|
8
8
|
|
9
9
|
def initialize(exception, request, context, options = {})
|
@@ -30,7 +30,7 @@ module Crashdesk
|
|
30
30
|
|
31
31
|
def to_hash
|
32
32
|
{
|
33
|
-
:
|
33
|
+
:app_key => Crashdesk.configuration.app_key,
|
34
34
|
:hash_id => backtrace.hash_id,
|
35
35
|
:crc => backtrace.crc,
|
36
36
|
:occured_at => occured_at,
|
@@ -65,7 +65,7 @@ module Crashdesk
|
|
65
65
|
data = hash.to_json
|
66
66
|
|
67
67
|
http = setup_http_connection
|
68
|
-
headers = HEADERS.merge('X-Crashdesk-
|
68
|
+
headers = HEADERS.merge('X-Crashdesk-AppKey' => Crashdesk.configuration.app_key)
|
69
69
|
|
70
70
|
response = begin
|
71
71
|
log "Sending crash report to #{url} with data: #{data}"
|
data/lib/crashdesk/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crashdesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ladislav Martincik
|
9
|
+
- Zdenko Nevrala
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
13
14
|
dependencies: []
|
14
15
|
description: crashdesk is the Ruby gem for containing core functionality for communication
|
15
16
|
with crashde.sk servers
|