action_reporter 1.0.6 → 1.0.7

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