denouncer 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 411e8e6aeb954a5ad7b9a4e0090aac231c71e19f
4
- data.tar.gz: 8708c2bf6e898999319155884e478bc97198571d
3
+ metadata.gz: 9474a71e61a211b75584bb744838836c5be11139
4
+ data.tar.gz: b527a7c9c5cad84633c2cb56ee6ac8ef56062fdb
5
5
  SHA512:
6
- metadata.gz: faafae6333a0f2ac51e91ac0006d5f6fb7bbab19d1d8c34a2a3a7e276725808d3fb8e221382cee688488f7df7a1a77874d63621ff14f7411103c7c8261aab748
7
- data.tar.gz: 4165b4c860f9a8f472bca60033c09b7ee1ec3c42de41c4bc61a43b9a73c75ba6cb713c572f02d574ed7c374c9ddfe70617c06b6f348c1beed77c550a32cbdfcb
6
+ metadata.gz: 37471252654e03e816abffef9191899b1ac4e6ed73b55e021c1755bef46d66301f7611122ea470e4f5d87e15fbc22be285caa5bee174a9c02c595694e31f13fc
7
+ data.tar.gz: 4de0afc1b5e84c46828043f46db0c0c374ad66b072225d6bbf1ff4290f5ca5eb4c5de8553cb03666c1929028eb50d5a57ea435aad5f24540079316c7ae84fb09
data/lib/denouncer.rb CHANGED
@@ -39,7 +39,14 @@ module Denouncer
39
39
  # @param metadata [Hash]
40
40
  def self.notify(error, metadata = nil)
41
41
  raise "Denouncer is not configured yet. Please run Denouncer.configure(options) to setup denouncer!" if @@notifier.nil?
42
- notifier.notify error, metadata
42
+ # ATTENTION: this ensures that no exceptions are lost when denouncer is not working as expected!!!
43
+ # This is worth the downside of denouncer debugging thougths.
44
+ begin
45
+ notifier.notify error, metadata
46
+ rescue => err
47
+ puts "An error occured while sending an exception notification via denouncer!"
48
+ raise error
49
+ end
43
50
  end
44
51
 
45
52
  private
@@ -1,3 +1,3 @@
1
1
  module Denouncer
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: denouncer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Weber