alephant-broker 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/broker/error_component.rb +7 -1
- data/lib/alephant/broker/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: 4d0fba4a759155935e050a30431e65427f220f4d
|
4
|
+
data.tar.gz: 0137552efcd8d64f3d9539938542b27ea2ab3544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c0855c51f3d4d04f68b5772709f2d6174cdee95b15cb7e09198df64060b7c03ef66a323a3fd668e6f565cd96ccc2896c1be41a8086fbf7cb35940a478d387dd
|
7
|
+
data.tar.gz: a025fa90065324a15f51be05633239bbfa0fe212cdd3b425c1e3ebc5ff8ee099acceec0dfc965139a6065df4412f5d1aa9f02e0a6961c9e6a50bd94403631aaf
|
@@ -24,7 +24,13 @@ module Alephant
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def content_for(exception)
|
27
|
-
"#{exception.message}
|
27
|
+
"#{exception.message}".tap do |msg|
|
28
|
+
msg << "\n#{exception.backtrace.join('\n')}" if debug?
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def debug?
|
33
|
+
Broker.config.fetch('debug', false)
|
28
34
|
end
|
29
35
|
end
|
30
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Jack
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|