denouncer 0.2.5 → 0.2.6
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.
- checksums.yaml +4 -4
- data/lib/denouncer/notifiers/smtp_notifier.rb +12 -1
- data/lib/denouncer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95418a9137acb057884e81971a32145a509b432
|
4
|
+
data.tar.gz: 948a25ff7c0b33c5c052680e92c37a3646e6ac11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a36c92b323d0d1e36bea77dac86858c4330ce5277fa91355071705252403ed64474522a90a7322b3bb583a5ce93ff23675b7cf81a6e09238b5f250f65ad731
|
7
|
+
data.tar.gz: 968812c48775dc4042e79beeddbd95b990221e30bab0a678f3924029fe25847af4a3b3741fa9712738c413a5cfaeb985787f082ec3197f1e03a60014c1cd11ab
|
@@ -58,7 +58,7 @@ Error message:
|
|
58
58
|
#{error.message}
|
59
59
|
|
60
60
|
Backtrace:
|
61
|
-
#{error
|
61
|
+
#{formatted_backtrace(error)}
|
62
62
|
|
63
63
|
Error cause:
|
64
64
|
#{error.cause}
|
@@ -68,6 +68,17 @@ Metadata:
|
|
68
68
|
END_OF_MESSAGE
|
69
69
|
return msgstr
|
70
70
|
end
|
71
|
+
|
72
|
+
def formatted_backtrace(error)
|
73
|
+
bt = error.backtrace
|
74
|
+
return "No backtrace available!" if bt.nil?
|
75
|
+
str = ""
|
76
|
+
bt.each do |line|
|
77
|
+
str << line << "\n"
|
78
|
+
end
|
79
|
+
return str
|
80
|
+
end
|
81
|
+
|
71
82
|
end
|
72
83
|
end
|
73
84
|
end
|
data/lib/denouncer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: denouncer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julian Weber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|