airbrake-extended 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +36 -36
- data/airbrake-extended.gemspec +4 -1
- data/lib/airbrake-extended.rb +1 -0
- data/lib/patches/delayed_plugin.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 431b3e888130b64b02cc1daac63513fc87f98617
|
4
|
+
data.tar.gz: f5bbc92faf51fe709568b0428623e6e9d8f5a778
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fac0bd9eb05508fa4acdc27e2714585435c8519f789695908f48c0b369cea86dd4623d7113654c848b04296b2064095ba754d45eea5b43a600b78ab89f93932
|
7
|
+
data.tar.gz: b13d9eea4f24687dc0832466e8d7eee99f6a6f8b2273107fecbb9d9c6e4ce80ebc3a2397659d66dee7f65131e3fe4507f7e8af775aa84812452eb9ab6a3a41ba
|
data/Gemfile.lock
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
airbrake-extended (0.0.
|
4
|
+
airbrake-extended (0.0.7)
|
5
5
|
delayed_job (~> 4.0, >= 4.0.0)
|
6
6
|
rails (~> 4.0, >= 4.0.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (4.2.
|
12
|
-
actionpack (= 4.2.
|
13
|
-
actionview (= 4.2.
|
14
|
-
activejob (= 4.2.
|
11
|
+
actionmailer (4.2.1)
|
12
|
+
actionpack (= 4.2.1)
|
13
|
+
actionview (= 4.2.1)
|
14
|
+
activejob (= 4.2.1)
|
15
15
|
mail (~> 2.5, >= 2.5.4)
|
16
16
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
17
|
-
actionpack (4.2.
|
18
|
-
actionview (= 4.2.
|
19
|
-
activesupport (= 4.2.
|
20
|
-
rack (~> 1.6
|
17
|
+
actionpack (4.2.1)
|
18
|
+
actionview (= 4.2.1)
|
19
|
+
activesupport (= 4.2.1)
|
20
|
+
rack (~> 1.6)
|
21
21
|
rack-test (~> 0.6.2)
|
22
22
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
23
23
|
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
24
|
-
actionview (4.2.
|
25
|
-
activesupport (= 4.2.
|
24
|
+
actionview (4.2.1)
|
25
|
+
activesupport (= 4.2.1)
|
26
26
|
builder (~> 3.1)
|
27
27
|
erubis (~> 2.7.0)
|
28
28
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
29
29
|
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
30
|
-
activejob (4.2.
|
31
|
-
activesupport (= 4.2.
|
30
|
+
activejob (4.2.1)
|
31
|
+
activesupport (= 4.2.1)
|
32
32
|
globalid (>= 0.3.0)
|
33
|
-
activemodel (4.2.
|
34
|
-
activesupport (= 4.2.
|
33
|
+
activemodel (4.2.1)
|
34
|
+
activesupport (= 4.2.1)
|
35
35
|
builder (~> 3.1)
|
36
|
-
activerecord (4.2.
|
37
|
-
activemodel (= 4.2.
|
38
|
-
activesupport (= 4.2.
|
36
|
+
activerecord (4.2.1)
|
37
|
+
activemodel (= 4.2.1)
|
38
|
+
activesupport (= 4.2.1)
|
39
39
|
arel (~> 6.0)
|
40
|
-
activesupport (4.2.
|
40
|
+
activesupport (4.2.1)
|
41
41
|
i18n (~> 0.7)
|
42
42
|
json (~> 1.7, >= 1.7.7)
|
43
43
|
minitest (~> 5.1)
|
@@ -48,7 +48,7 @@ GEM
|
|
48
48
|
delayed_job (4.0.6)
|
49
49
|
activesupport (>= 3.0, < 5.0)
|
50
50
|
erubis (2.7.0)
|
51
|
-
globalid (0.3.
|
51
|
+
globalid (0.3.3)
|
52
52
|
activesupport (>= 4.1.0)
|
53
53
|
hike (1.2.3)
|
54
54
|
i18n (0.7.0)
|
@@ -60,34 +60,34 @@ GEM
|
|
60
60
|
mime-types (2.4.3)
|
61
61
|
mini_portile (0.6.2)
|
62
62
|
minitest (5.5.1)
|
63
|
-
multi_json (1.
|
63
|
+
multi_json (1.11.0)
|
64
64
|
nokogiri (1.6.6.2)
|
65
65
|
mini_portile (~> 0.6.0)
|
66
66
|
rack (1.6.0)
|
67
67
|
rack-test (0.6.3)
|
68
68
|
rack (>= 1.0)
|
69
|
-
rails (4.2.
|
70
|
-
actionmailer (= 4.2.
|
71
|
-
actionpack (= 4.2.
|
72
|
-
actionview (= 4.2.
|
73
|
-
activejob (= 4.2.
|
74
|
-
activemodel (= 4.2.
|
75
|
-
activerecord (= 4.2.
|
76
|
-
activesupport (= 4.2.
|
69
|
+
rails (4.2.1)
|
70
|
+
actionmailer (= 4.2.1)
|
71
|
+
actionpack (= 4.2.1)
|
72
|
+
actionview (= 4.2.1)
|
73
|
+
activejob (= 4.2.1)
|
74
|
+
activemodel (= 4.2.1)
|
75
|
+
activerecord (= 4.2.1)
|
76
|
+
activesupport (= 4.2.1)
|
77
77
|
bundler (>= 1.3.0, < 2.0)
|
78
|
-
railties (= 4.2.
|
78
|
+
railties (= 4.2.1)
|
79
79
|
sprockets-rails
|
80
80
|
rails-deprecated_sanitizer (1.0.3)
|
81
81
|
activesupport (>= 4.2.0.alpha)
|
82
|
-
rails-dom-testing (1.0.
|
82
|
+
rails-dom-testing (1.0.6)
|
83
83
|
activesupport (>= 4.2.0.beta, < 5.0)
|
84
84
|
nokogiri (~> 1.6.0)
|
85
85
|
rails-deprecated_sanitizer (>= 1.0.1)
|
86
|
-
rails-html-sanitizer (1.0.
|
86
|
+
rails-html-sanitizer (1.0.2)
|
87
87
|
loofah (~> 2.0)
|
88
|
-
railties (4.2.
|
89
|
-
actionpack (= 4.2.
|
90
|
-
activesupport (= 4.2.
|
88
|
+
railties (4.2.1)
|
89
|
+
actionpack (= 4.2.1)
|
90
|
+
activesupport (= 4.2.1)
|
91
91
|
rake (>= 0.8.7)
|
92
92
|
thor (>= 0.18.1, < 2.0)
|
93
93
|
rake (10.4.2)
|
@@ -101,7 +101,7 @@ GEM
|
|
101
101
|
activesupport (>= 3.0)
|
102
102
|
sprockets (>= 2.8, < 4.0)
|
103
103
|
thor (0.19.1)
|
104
|
-
thread_safe (0.3.
|
104
|
+
thread_safe (0.3.5)
|
105
105
|
tilt (1.4.1)
|
106
106
|
tzinfo (1.2.2)
|
107
107
|
thread_safe (~> 0.1)
|
data/airbrake-extended.gemspec
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
require "airbrake-extended"
|
3
|
+
|
1
4
|
Gem::Specification.new do |s|
|
2
5
|
s.name = 'airbrake-extended'
|
3
|
-
s.version =
|
6
|
+
s.version = Delayed::Plugins::AirbrakeExtended::VERSION
|
4
7
|
s.date = '2015-03-11'
|
5
8
|
s.summary = "Informative Airbrake parameters."
|
6
9
|
s.description = "Instance variables from the raised exception are included as parameters in the Airbrake notification. Currently only active in DelayedJob jobs. Meant to be used in a Rails environment."
|
data/lib/airbrake-extended.rb
CHANGED
@@ -19,6 +19,8 @@ module Delayed::Plugins::AirbrakeExtended
|
|
19
19
|
#
|
20
20
|
params.merge!(error.airbrake_params) if error.respond_to? :airbrake_params
|
21
21
|
|
22
|
+
puts "ERROR DETECTED -> Airbrake: #{error.inspect}", "WITH PARAMS: #{params.inspect}"
|
23
|
+
|
22
24
|
Airbrake.notify_or_ignore(error, parameters: params)
|
23
25
|
|
24
26
|
rescue Exception => e
|
@@ -35,10 +37,9 @@ module Delayed::Plugins::AirbrakeExtended
|
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
38
|
-
puts "Attaching Delayed::Plugins::AirbrakeExtended"
|
39
|
-
|
40
40
|
callbacks do |lifecycle|
|
41
41
|
lifecycle.before(:invoke_job) do |job|
|
42
|
+
puts "Attaching Delayed::Plugins::AirbrakeExtended"
|
42
43
|
payload = job.payload_object
|
43
44
|
payload = payload.object if payload.is_a? Delayed::PerformableMethod
|
44
45
|
payload.extend Notify
|