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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f12734f8ff334701dc9ab031b722e83b49bb937f
4
- data.tar.gz: 89deb426d6b78a0ca792e3d66b27297ac166e0f3
3
+ metadata.gz: 4d0fba4a759155935e050a30431e65427f220f4d
4
+ data.tar.gz: 0137552efcd8d64f3d9539938542b27ea2ab3544
5
5
  SHA512:
6
- metadata.gz: 49f5c189eeb36135dab3df043f108f8352a9b403fc3c5cc109640814b231767afec33f6ca36e5dfaff520cc91b33b069716e703babca7477b6ae92afd42fd01d
7
- data.tar.gz: 374f100401f6c9dc9cfafaff6220644b9bfd07b68139b6943f42c30c9fb2cc37bbe13b7ad06a4269994752ac114d44460cd42a8c9a963b463eab5594d7bc4176
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}\n#{exception.backtrace.join('\n')}"
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
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "2.1.2"
3
+ VERSION = "2.1.3"
4
4
  end
5
5
  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.2
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-05 00:00:00.000000000 Z
11
+ date: 2014-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec