action_reporter 1.0.1 → 1.0.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
  SHA256:
3
- metadata.gz: 635a23e3496c3d18ed4cc254a9777896835b332529bfd8c9ed762fc7b20f3c76
4
- data.tar.gz: 72c4f80f6b4d8a37d561f18431860534be34db8696fff9ce31cc92f03e64bbe4
3
+ metadata.gz: de9e1d1bcb3e0d357840b7067b944679d1cfa9833e1cfc9fdbabe035edd1f44a
4
+ data.tar.gz: 7a46f2699a6a7ef43dc9a9f90f638c95d289786009b688e4714c6b615d6a8743
5
5
  SHA512:
6
- metadata.gz: 973437e5b1b7201d439c96f2fb4d28ac12c585e6ff634130ef77e9909f22160cb30cd632947fe8d00426d878dc72e746f9703101a4aeb65d41869d88a18e637a
7
- data.tar.gz: b93644614f0657b6386639d4bdc73546d5105fd49688a91b34c17123ad1ea706f84f2ec06d231b9adce0bfebfb70924b56188a46350f64e2ae53d2ccf81c8c02
6
+ metadata.gz: a06f86134a8c2499ee2c282189984a9ae8ede582dcae5d03db9cdcba656ef4540283089f3dd7cf1b54c7a4910d28b35ce5a876ba012cfc8fd1e52ae27bc43cd9
7
+ data.tar.gz: 243a13b9eae0f41dab7bd49d0fad1c1538eea0b08d8d6f833daa90cbc2943ee73806012d4108e4100574508157f763fa30fc51cd9c7efeb545b308865ae6b1ad
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 1.0.3
2
+
3
+ * Fix scoutapm notice method
4
+
5
+ # 1.0.2
6
+
7
+ * Add ruby version support for versions lower than 3.2.0
8
+
1
9
  # 1.0.1
2
10
 
3
11
  * Fix scoutapm reset_context method
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "action_reporter"
3
- s.version = "1.0.1"
3
+ s.version = "1.0.3"
4
4
 
5
5
  s.license = "MIT"
6
6
 
@@ -24,6 +24,6 @@ Gem::Specification.new do |s|
24
24
  # s.bindir = "bin"
25
25
  # s.executables = ["action_reporter"]
26
26
 
27
- s.required_ruby_version = ">= 3.2.0"
27
+ s.required_ruby_version = ">= 1.9.3"
28
28
  s.require_path = "lib"
29
29
  end
@@ -1,10 +1,11 @@
1
1
  module ActionReporter
2
2
  class ScoutApmReporter < Base
3
- class_accessor "ScoutApm::Agent"
3
+ class_accessor "ScoutApm::Error"
4
4
  class_accessor "ScoutApm::Context"
5
5
 
6
- def notify(*args, **kwargs)
7
- ScoutApmAgent.instance.error(*args, **kwargs)
6
+ def notify(error, context: {})
7
+ self.context(context)
8
+ ScoutApmError.capture(error)
8
9
  end
9
10
 
10
11
  def context(args)
@@ -1,3 +1,3 @@
1
1
  module ActionReporter
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.3'
3
3
  end
@@ -52,7 +52,8 @@ module ActionReporter
52
52
  end
53
53
 
54
54
  def transform_context(context)
55
- ActionReporter::Utils.deep_transform_values(context.except(:audited_user)) do |value|
55
+ filtered_context = context.reject { |k, _| k == :audited_user }
56
+ ActionReporter::Utils.deep_transform_values(filtered_context) do |value|
56
57
  if value.respond_to?(:to_global_id)
57
58
  value.to_global_id.to_s
58
59
  else
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.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Makarov
@@ -47,7 +47,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: 3.2.0
50
+ version: 1.9.3
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="