mailer-log 0.1.4 → 0.1.5
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 +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +19 -4
- data/lib/mailer-log.rb +5 -0
- data/lib/mailer_log/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e50f5dea58e4b40e9921bada1e13d7d600412b24b807965c324f0ca1b120ccad
|
|
4
|
+
data.tar.gz: 29663f1776838ec44972bb682c26a4cd5b850d8f0af64c47bbf21ca3d1d9443e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52bacd669f3f137988fdd5bc2671dc353925c2674fbe8ca2229f7728788fc366ae03ef81ccf10afc955aa96ab2a3f1f9a76a82137d54a3a14f4c5b9b3b727911
|
|
7
|
+
data.tar.gz: 1178c08af25d81d72601baaa28b16fa09e0736bde7016273c0985594c871a13908596cddaf4eb16974fb68994f8a5b817f2cd500fa905652907716aee6c9e3b3
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.5] - 2025-12-15
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Shim file `lib/mailer-log.rb` for auto-require (no more `require: 'mailer_log'` needed in Gemfile)
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Updated README with correct paths and documentation
|
|
17
|
+
|
|
18
|
+
## [0.1.4] - 2025-12-15
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- Date range picker with presets (Today, This week, Last week, This month, Last month)
|
|
23
|
+
- Tooltips for long email addresses in detail panel
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Improved email detail panel layout (From/To stacked vertically, mailer info aligned right)
|
|
28
|
+
- Close button moved to left side with back arrow icon
|
|
29
|
+
|
|
8
30
|
## [0.1.0] - 2024-12-14
|
|
9
31
|
|
|
10
32
|
### Added
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Rails engine for logging all outgoing emails with Mailgun webhook integration.
|
|
|
17
17
|
### 1. Add to Gemfile
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
|
-
gem '
|
|
20
|
+
gem 'mailer-log'
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
### 2. Run install generator
|
|
@@ -95,7 +95,7 @@ end
|
|
|
95
95
|
|
|
96
96
|
1. In Mailgun Dashboard, go to **Webhooks**
|
|
97
97
|
2. Add webhook for each event:
|
|
98
|
-
- URL: `https://your-app.com/
|
|
98
|
+
- URL: `https://your-app.com/mailer_log/webhooks/mailgun` (adjust path based on your routes mount point)
|
|
99
99
|
- Events: `delivered`, `opened`, `clicked`, `bounced`, `failed`, `dropped`, `complained`
|
|
100
100
|
|
|
101
101
|
### 3. For Each Domain
|
|
@@ -106,11 +106,12 @@ If using multiple domains (white-label), configure webhooks for each.
|
|
|
106
106
|
|
|
107
107
|
### Admin UI
|
|
108
108
|
|
|
109
|
-
After installation, accessible at
|
|
109
|
+
After installation, accessible at the mounted path (e.g., `/mailer_log` based on routes example above).
|
|
110
110
|
|
|
111
111
|
**Features:**
|
|
112
112
|
- List of all sent emails with pagination
|
|
113
|
-
- Filtering by: recipient, sender, subject, mailer class, status
|
|
113
|
+
- Filtering by: recipient, sender, subject, mailer class, status
|
|
114
|
+
- Date range picker with presets (Today, This week, Last week, This month, Last month)
|
|
114
115
|
- Email details view: headers, body preview, delivery events
|
|
115
116
|
- Call stack view (where in code the email was triggered)
|
|
116
117
|
|
|
@@ -177,6 +178,20 @@ cleanup_mailer_log:
|
|
|
177
178
|
| `admin_layout` | `'application'` | Layout for admin views |
|
|
178
179
|
| `per_page` | `25` | Records per page |
|
|
179
180
|
|
|
181
|
+
## Using as letter_opener Replacement
|
|
182
|
+
|
|
183
|
+
MailerLog can replace `letter_opener_web` for staging environments. Since MailerLog captures emails **before** delivery (via ActionMailer interceptor), you can use `:test` delivery method to prevent actual sending while still logging all emails.
|
|
184
|
+
|
|
185
|
+
```ruby
|
|
186
|
+
# config/environments/staging.rb
|
|
187
|
+
Rails.application.configure do
|
|
188
|
+
# Use :test so emails are not sent, but MailerLog still captures them
|
|
189
|
+
config.action_mailer.delivery_method = :test
|
|
190
|
+
end
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
This gives you a full email log UI with filtering, search, and body preview without sending real emails.
|
|
194
|
+
|
|
180
195
|
## Troubleshooting
|
|
181
196
|
|
|
182
197
|
### Emails Not Being Saved
|
data/lib/mailer-log.rb
ADDED
data/lib/mailer_log/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailer-log
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TrafficRunners
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: has_scope
|
|
@@ -93,6 +93,7 @@ files:
|
|
|
93
93
|
- lib/generators/mailer_log/install/templates/README
|
|
94
94
|
- lib/generators/mailer_log/install/templates/create_mailer_log_tables.rb.tt
|
|
95
95
|
- lib/generators/mailer_log/install/templates/initializer.rb.tt
|
|
96
|
+
- lib/mailer-log.rb
|
|
96
97
|
- lib/mailer_log.rb
|
|
97
98
|
- lib/mailer_log/configuration.rb
|
|
98
99
|
- lib/mailer_log/engine.rb
|