mailer-log 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 87d5b6add1e5f85d2de72a41de2558ec4b0d6944e43ca0f3ee6ca81d95cbad4c
|
|
4
|
+
data.tar.gz: 86c37a0c370d57e6b9be50f0d503565d0f46f11ab895687975b6e902209f9a24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 281f062869b94ec01abaa044256ff9281feeaab70165460bc573996cf3151c1d8d33d5663654ceeb88594e8cb711f029506cb3319cbde295e0f6b704e6e9588a
|
|
7
|
+
data.tar.gz: b81a25548fb22a00ee5f431c8c17429f99bc6ed5d12fc6290e652b7bf48724c3000d48267ed647f32b8848abaae077f6849fb2f9559ed8055ec18efff484a5fa
|
|
@@ -29,6 +29,7 @@ module MailerLog
|
|
|
29
29
|
rescue StandardError => e
|
|
30
30
|
Rails.logger.error("MailerLog::MailInterceptor error: #{e.message}")
|
|
31
31
|
Rails.logger.error(e.backtrace.first(5).join("\n"))
|
|
32
|
+
Airbrake.notify(e) if defined?(Airbrake)
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
private
|
|
@@ -38,6 +39,9 @@ module MailerLog
|
|
|
38
39
|
return message['X-Mailer']&.to_s || 'Unknown' unless handler
|
|
39
40
|
|
|
40
41
|
handler.is_a?(Class) ? handler.name : handler.class.name
|
|
42
|
+
rescue StandardError => e
|
|
43
|
+
Rails.logger.warn("MailerLog: Failed to extract mailer class: #{e.message}")
|
|
44
|
+
'Unknown'
|
|
41
45
|
end
|
|
42
46
|
|
|
43
47
|
def extract_mailer_action(message)
|
|
@@ -54,6 +58,9 @@ module MailerLog
|
|
|
54
58
|
else
|
|
55
59
|
'unknown'
|
|
56
60
|
end
|
|
61
|
+
rescue StandardError => e
|
|
62
|
+
Rails.logger.warn("MailerLog: Failed to extract mailer action: #{e.message}")
|
|
63
|
+
'unknown'
|
|
57
64
|
end
|
|
58
65
|
|
|
59
66
|
def extract_html_body(message)
|
|
@@ -96,6 +103,9 @@ module MailerLog
|
|
|
96
103
|
caller.select { |line| app_paths.any? { |path| line.include?(path) } }
|
|
97
104
|
.reject { |line| line.include?('mailer_log') }
|
|
98
105
|
.first(depth)
|
|
106
|
+
rescue StandardError => e
|
|
107
|
+
Rails.logger.warn("MailerLog: Failed to capture call stack: #{e.message}")
|
|
108
|
+
nil
|
|
99
109
|
end
|
|
100
110
|
|
|
101
111
|
def capture_git_revision
|
|
@@ -109,6 +119,9 @@ module MailerLog
|
|
|
109
119
|
|
|
110
120
|
`git rev-parse --short HEAD 2>/dev/null`.strip.presence
|
|
111
121
|
end
|
|
122
|
+
rescue StandardError => e
|
|
123
|
+
Rails.logger.warn("MailerLog: Failed to capture git revision: #{e.message}")
|
|
124
|
+
nil
|
|
112
125
|
end
|
|
113
126
|
end
|
|
114
127
|
end
|
data/lib/mailer_log/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailer-log
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TrafficRunners
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: has_scope
|
|
@@ -112,7 +111,6 @@ metadata:
|
|
|
112
111
|
source_code_uri: https://github.com/trafficrunners/mailer-log
|
|
113
112
|
changelog_uri: https://github.com/trafficrunners/mailer-log/blob/master/CHANGELOG.md
|
|
114
113
|
rubygems_mfa_required: 'true'
|
|
115
|
-
post_install_message:
|
|
116
114
|
rdoc_options: []
|
|
117
115
|
require_paths:
|
|
118
116
|
- lib
|
|
@@ -127,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
125
|
- !ruby/object:Gem::Version
|
|
128
126
|
version: '0'
|
|
129
127
|
requirements: []
|
|
130
|
-
rubygems_version:
|
|
131
|
-
signing_key:
|
|
128
|
+
rubygems_version: 4.0.3
|
|
132
129
|
specification_version: 4
|
|
133
130
|
summary: Rails engine for logging outgoing emails with Mailgun webhook integration
|
|
134
131
|
test_files: []
|