plain_apm 0.9.5 → 0.9.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: 8700716a8232dd006ee1f152ff706b110e183180f31b174dad707073d56191cd
4
- data.tar.gz: cab9abf563da3173c75448eaf1ab4a30d385d12190b64adb6c2a13bf9c154c3f
3
+ metadata.gz: fa551d3d06407550f5b0dcdb0290d00044097193060a3652314835d77de94880
4
+ data.tar.gz: 1f6240ab1462eecbbb9ddf83378a7eb02dc13d3e4daf9008150f94d5a312ae28
5
5
  SHA512:
6
- metadata.gz: 25ab862df530c784896f3b0de84fb53fc9838a6551fdbb774cef2927566abe920458f6669425a1204407d849d4be5bf7c2055523f6cade5fffceffc8bdfe68b6
7
- data.tar.gz: 948fe60ffebd3fee6897145343c2c89dce907639bd7b4b584569b43108301b2be789908838cc97142f7a01f54d51d7f9f6fbb231873e83940b82a06050299f2d
6
+ metadata.gz: ee98c2b0f5d46042248423b8e3b8c57eeab8144ce3417b94483b63a03bc7fad694ce7cd4ee125f726a678a932a90311dbce7b39173fa458769a07d3c1ebe48f9
7
+ data.tar.gz: dbcdf5c2b5faf4bdd7e7b2c8a268b09cf726455b853d650d0e04717f0a90d519412c93da0e534448e8590e5a3e817208a893eb414a95a6013441ea3096ff6214
@@ -21,11 +21,14 @@ module PlainApm
21
21
  o[:message_id] = payload[:message_id]
22
22
  o[:mailer] = payload[:mailer]
23
23
  o[:perform_deliveries] = payload[:perform_deliveries]
24
+ o[:subject] = payload[:subject]
25
+ o[:from] = [*payload[:from]]
26
+ o[:to] = [*payload[:to]].map { |t| Digest::SHA1.hexdigest(t.to_s) }
24
27
  end
25
28
  when "process"
26
29
  base.tap do |o|
27
30
  o[:mailer] = payload[:mailer]
28
- o[:action] = payload[:action]
31
+ o[:mailer_action] = payload[:action]
29
32
  end
30
33
  else
31
34
  nil
@@ -45,11 +45,8 @@ module PlainApm
45
45
 
46
46
  # strip rails root
47
47
  def identifier(id)
48
- return id unless defined?(Rails) && Rails.respond_to?(:root)
49
-
50
- root = Rails.root.to_s
51
-
52
- id.start_with?(root) ? id[root.size + 1..-1] : id # standard:disable Style/SlicingWithRange
48
+ return id if self.class.rails_root.nil? || id.nil?
49
+ id.start_with?(self.class.rails_root) ? id[self.class.rails_root.length + 1..-1] : id # standard:disable Style/SlicingWithRange
53
50
  end
54
51
  end
55
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlainApm
4
- VERSION = "0.9.5"
4
+ VERSION = "0.9.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - PlainAPM Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-06 00:00:00.000000000 Z
11
+ date: 2024-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest