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 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 :api_key
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.api_key = 'YOUR API KEY HERE'
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
- 80
53
+ 9292
54
54
  end
55
55
 
56
56
  end
@@ -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, :occurred_at,
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
- :api_key => Crashdesk.configuration.api_key,
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,
@@ -8,7 +8,7 @@ module Crashdesk
8
8
  if reporter.respond_to? :run
9
9
  reporter
10
10
  else
11
- constantize(reporter).new
11
+ constantize(reporter).new(host: Crashdesk.configure.host, port: Crashdesk.configure.port)
12
12
  end
13
13
  end
14
14
  end
@@ -2,6 +2,9 @@ module Crashdesk
2
2
  module Reporters
3
3
  class Logger
4
4
 
5
+ def initialize(params)
6
+ end
7
+
5
8
  def run(crashlog)
6
9
  require 'pp'
7
10
  hash = crashlog.to_hash
@@ -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-ApiKey' => Crashdesk.configuration.api_key)
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}"
@@ -3,6 +3,9 @@ module Crashdesk
3
3
 
4
4
  class Screen
5
5
 
6
+ def initialize(params)
7
+ end
8
+
6
9
  def run(data)
7
10
  data.to_json.to_s
8
11
  end
@@ -1,3 +1,3 @@
1
1
  module Crashdesk
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-03 00:00:00.000000000 Z
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