crashlog 1.0.2 → 1.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crash_log/configuration.rb +2 -0
- data/lib/crash_log/reporter.rb +1 -1
- data/lib/crash_log/tasks/crash_log.rake +40 -0
- data/lib/crash_log/version.rb +1 -1
- data/lib/crash_log.rb +1 -0
- metadata +16 -16
- data/lib/tasks/crash_log.rake +0 -20
data/lib/crash_log/reporter.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
require "crash_log"
|
2
|
+
require "logger"
|
3
|
+
|
4
|
+
namespace :crashlog do
|
5
|
+
|
6
|
+
desc "Send a test exception to CrashLog."
|
7
|
+
task :test => :load do
|
8
|
+
CrashLog.configure do |config|
|
9
|
+
config.logger = Logger.new(STDOUT)
|
10
|
+
# Ensure we send for this stage, probably development which is disabled
|
11
|
+
# by default.
|
12
|
+
config.release_stages << config.stage
|
13
|
+
end
|
14
|
+
|
15
|
+
begin
|
16
|
+
raise RuntimeError, "CrashLog test exception"
|
17
|
+
rescue => e
|
18
|
+
CrashLog.notify(e, {
|
19
|
+
:context => {:action => "rake#crashlog:test"},
|
20
|
+
:system => CrashLog::SystemInformation.to_hash
|
21
|
+
})
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
task :dump_configuration => :load do
|
26
|
+
puts "CrashLog: #{CrashLog::VERSION}"
|
27
|
+
puts "Configuration:"
|
28
|
+
puts '-' * 80
|
29
|
+
CrashLog.configuration.each do |key, value|
|
30
|
+
puts sprintf("%23s: %s", key.to_s, value.inspect.slice(0, 55))
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
task :load do
|
36
|
+
begin
|
37
|
+
Rake::Task["environment"].invoke
|
38
|
+
rescue
|
39
|
+
end
|
40
|
+
end
|
data/lib/crash_log/version.rb
CHANGED
data/lib/crash_log.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crashlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.2
|
4
|
+
version: 1.0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-10-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &70102831315180 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70102831315180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday
|
27
|
-
requirement: &
|
27
|
+
requirement: &70102831313960 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.8.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70102831313960
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: multi_json
|
38
|
-
requirement: &
|
38
|
+
requirement: &70102831312520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.3.6
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70102831312520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: crashlog-auth-hmac
|
49
|
-
requirement: &
|
49
|
+
requirement: &70102831311600 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.1.6
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70102831311600
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rabl
|
60
|
-
requirement: &
|
60
|
+
requirement: &70102831310180 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.6.14
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70102831310180
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: uuid
|
71
|
-
requirement: &
|
71
|
+
requirement: &70102831308840 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70102831308840
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: hashr
|
82
|
-
requirement: &
|
82
|
+
requirement: &70102831324020 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70102831324020
|
91
91
|
description: CrashLog Exception reporter
|
92
92
|
email:
|
93
93
|
- support@crashlog.io
|
@@ -122,12 +122,12 @@ files:
|
|
122
122
|
- lib/crash_log/railtie.rb
|
123
123
|
- lib/crash_log/reporter.rb
|
124
124
|
- lib/crash_log/system_information.rb
|
125
|
+
- lib/crash_log/tasks/crash_log.rake
|
125
126
|
- lib/crash_log/templates/payload.rabl
|
126
127
|
- lib/crash_log/version.rb
|
127
128
|
- lib/crashlog.rb
|
128
129
|
- lib/faraday/request/hmac_authentication.rb
|
129
130
|
- lib/rails/generators/crashlog/crashlog_generator.rb
|
130
|
-
- lib/tasks/crash_log.rake
|
131
131
|
- rails/init.rb
|
132
132
|
- script/integration_test
|
133
133
|
- spec/crash_log/backtrace_spec.rb
|
data/lib/tasks/crash_log.rake
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require "crash_log"
|
2
|
-
|
3
|
-
namespace :crashlog do
|
4
|
-
|
5
|
-
desc "Send a test exception to CrashLog."
|
6
|
-
task :test => :load do
|
7
|
-
begin
|
8
|
-
raise RuntimeError, "CrashLog test exception"
|
9
|
-
rescue => e
|
10
|
-
CrashLog.notify(e, {:context => {:action => "rake#crashlog:test"}})
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
task :load do
|
16
|
-
begin
|
17
|
-
Rake::Task["environment"].invoke
|
18
|
-
rescue
|
19
|
-
end
|
20
|
-
end
|