action_reporter 1.0.5 → 1.0.6

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: 32481c273e889f21cb750b677fdfd75fe7c1582b483e07a3024e79ecdbc14a44
4
- data.tar.gz: d5b037711d2112362680f8f72483a9e3937985d8b06152e5839a777b36f118f7
3
+ metadata.gz: 13f718a0d6eee4e975da76a733f388b2b4b738fe80032d242e5d6d06ce8ebb79
4
+ data.tar.gz: cde25f668b6347a947e7736bf82225ad48ab1f83f5dd134585e72bf6aca8482e
5
5
  SHA512:
6
- metadata.gz: dcec530e56b6e82c019aff4475e970d6642d582620c37a1ca3f099163c3c3de0dde3a367e68de11a897edbf2f2c7ba00b057979b1ca71a1207f7b25549c94257
7
- data.tar.gz: 1fad20c37845fb64fda7b4adfc81ba676b671bba8384b8d0e75752908fe5a3db1368e7d50ea808ea3cee3eb138fa19cd22064eec7f6384746ad1fea770de6116
6
+ metadata.gz: 22156d2648d9b003bffbef67d1b7bf8e0648875808f785d8bc85b14f8a13ee56dff5486fc94758ebf457062ad478b704ef88e177ecbf572e9437b504d5257389
7
+ data.tar.gz: 90b60b8cdefaf0a5c2bede331f22f290b833a2fd36d4b7a4d4f720975ee7a9cf34a1ab15b66757d8a32f0c2c6038216a4735dfc3e51ffba8b94c8a8ce135edf5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.6
2
+
3
+ * Possible fix for Sentry context setting
4
+
1
5
  # 1.0.5
2
6
 
3
7
  * Fix Sentry reporting and context setting
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "action_reporter"
3
- s.version = "1.0.5"
3
+ s.version = "1.0.6"
4
4
 
5
5
  s.license = "MIT"
6
6
 
@@ -4,7 +4,9 @@ module ActionReporter
4
4
 
5
5
  def notify(error, context: {})
6
6
  Sentry.with_scope do |temp_scope|
7
- temp_scope.set_contexts(transform_context(context))
7
+ transform_context(context).each do |key, value|
8
+ temp_scope.set_context(key, value)
9
+ end
8
10
 
9
11
  if error.is_a?(StandardError)
10
12
  Sentry.capture_exception(error)
@@ -15,8 +17,9 @@ module ActionReporter
15
17
  end
16
18
 
17
19
  def context(args)
18
- new_context = transform_context(args)
19
- Sentry.get_current_scope.set_contexts(new_context)
20
+ transform_context(args).each do |key, value|
21
+ Sentry.get_current_scope.set_context(key, value)
22
+ end
20
23
  end
21
24
 
22
25
  def audited_user=(user)
@@ -1,3 +1,3 @@
1
1
  module ActionReporter
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov