action_reporter 1.0.0 → 1.0.2

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: d04726ad07e0a3930895a3f5f50c570cee75636ba92aa13d142f1d45c84c2812
4
- data.tar.gz: 12a7b129dda548f8dca465a2d406b8d6982c4bc34fd8259edafe57451c8cfe07
3
+ metadata.gz: '0569ae232aed54ea4777b366d95fef80a4058d02a2c22bccdf1a56614282ff99'
4
+ data.tar.gz: 22317e6ea26f6a06f1626a7812ed65dbee279b9b45f6485166cb0c2bc0da7bf1
5
5
  SHA512:
6
- metadata.gz: 35b4f4953e373d8c45d29a250dc0e0d4ee53b4a6aab4121c779ecc1090d669059c26da764562ff360e5f6e540ced4b8de9d347cfa10dc8e71650ac816ead214b
7
- data.tar.gz: 65ea44fc78c36bb0227ad930ff737060b1c6188ebb237a6d5adbc1b13504a91886cd38a7694a64ce1205973525af93e5d95f02e79376f10207271fb95c0d7c1b
6
+ metadata.gz: 34c9ca0d8dfed3925742e698a2f013aebdda61bbad8f6a63e5751e42cb56c57d605b67965fa612dee07e2d84d467fd749abe3d460ad4ad9a921568817f9bfdb8
7
+ data.tar.gz: 00b99d87c2ece2ba07779ab176b063e7ef862466f4f7354905da3272b8a7b622b7775f7e92cb144615c4759667be7d98ae2f704cbcfc94c5c198f22bda3ac6e3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 1.0.2
2
+
3
+ * Add ruby version support for versions lower than 3.2.0
4
+
5
+ # 1.0.1
6
+
7
+ * Fix scoutapm reset_context method
8
+ * Update README notes
9
+
1
10
  # 1.0.0
2
11
 
3
12
  * Initial version
data/README.md CHANGED
@@ -37,11 +37,11 @@ Put this in your `config/initializers/action_reporter.rb` file:
37
37
 
38
38
  ```ruby
39
39
  ActionReporter.enabled_reporters = [
40
- ActionReporter::Reporters::RailsReporter.new,
41
- # ActionReporter::Reporters::AuditedReporter.new,
42
- # ActionReporter::Reporters::SentryReporter.new,
43
- # ActionReporter::Reporters::HoneybadgerReporter.new,
44
- # ActionReporter::Reporters::ScoutApmReporter.new
40
+ ActionReporter::RailsReporter.new,
41
+ # ActionReporter::AuditedReporter.new,
42
+ # ActionReporter::SentryReporter.new,
43
+ # ActionReporter::HoneybadgerReporter.new,
44
+ # ActionReporter::ScoutApmReporter.new
45
45
  ]
46
46
  ```
47
47
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "action_reporter"
3
- s.version = "1.0.0"
3
+ s.version = "1.0.2"
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
@@ -10,5 +10,14 @@ module ActionReporter
10
10
  def transform_context?
11
11
  true
12
12
  end
13
+
14
+ def notify(*)
15
+ end
16
+
17
+ def context(*)
18
+ end
19
+
20
+ def reset_context
21
+ end
13
22
  end
14
23
  end
@@ -8,16 +8,7 @@ module ActionReporter
8
8
  end
9
9
 
10
10
  def context(args)
11
- if args[:audited_user].present?
12
- ScoutApmContext.add_user(
13
- audited_user_global_id: args[:audited_user].to_global_id
14
- )
15
- end
16
11
  ScoutApmContext.add(args)
17
12
  end
18
-
19
- def reset_context
20
- ScoutApmContext.clear!
21
- end
22
13
  end
23
14
  end
@@ -1,3 +1,3 @@
1
1
  module ActionReporter
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.2'
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.0
4
+ version: 1.0.2
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
  - - ">="