rabbitek 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 61812d7a27d392ac1fd654f0a181972b716be920d0e8d0579537f685d1d16d42
4
- data.tar.gz: 800b02c54302fcd9c380ebb3effb63e38f28f85f4bfeb6e4731eb11385a92bbc
3
+ metadata.gz: f7908fdc1329216ae02618bee4aae76564192031c6e2e7c10016758581f665d3
4
+ data.tar.gz: 25265bd1ab29f07298edbd2594ac972dafdc72d9ae6585dc89460e5020ce5da0
5
5
  SHA512:
6
- metadata.gz: 736fd9459b74ab310078f10be4835b600acdec3c8e04093c6d5fa5c90a364a5f1de0f17f6ae4de56cdea56237e63fd0012773732b3a6501970aa55539d826727
7
- data.tar.gz: 6c5d6d0a9b429cc88b0c844c78c3de40e0aacad2d98464c4897cfbecbba2b6b745d4823e2739b2fc995953c9273a32b1434052b0ce63d8929cbe4d767448d1b3
6
+ metadata.gz: 7674a197bbd8d963f3e39253fd779e8a9261e98a8f5145b7b0ab624a690156758a81339f2fc74e9fafd4bbcc34e934c04794c89150a221e5daed2a8c83c209b9
7
+ data.tar.gz: 4f04a4cbf33ec615366e891500ffebd38e4d54a9c7fc4c772c04dc602279a423541ac1c3cd045e18ee0428f490356cc41c86f05420b5eaeaff775ffd31c872bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.3.1
2
+
3
+ Bugfix:
4
+ * Fix sentry integration while logging messages different than exceptions
5
+
1
6
  ## v0.3.0
2
7
 
3
8
  Improvements:
@@ -15,7 +15,7 @@ module Rabbitek
15
15
  def error(msg)
16
16
  log_msg(:error, msg)
17
17
  NewRelic::Agent.notice_error(msg) if Rabbitek.config.enable_newrelic && Object.const_defined?('NewRelic')
18
- Raven.capture_exception(msg) if Rabbitek.config.enable_sentry && Object.const_defined?('Raven')
18
+ raven_capture_error(msg) if Rabbitek.config.enable_sentry && Object.const_defined?('Raven')
19
19
  true
20
20
  end
21
21
 
@@ -46,5 +46,9 @@ module Rabbitek
46
46
  def class_name(msg)
47
47
  msg.is_a?(Hash) && msg[:class_name] ? msg.delete(:class_name) : self.class.name
48
48
  end
49
+
50
+ def raven_capture_error(msg)
51
+ msg.is_a?(Exception) ? Raven.capture_exception(msg) : Raven.capture_message(msg.to_s)
52
+ end
49
53
  end
50
54
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rabbitek
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boostcom
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2020-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport