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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53e392cc0814b660324d0e0c15eb2e495db0a088d95c220a616910d086f25337
4
- data.tar.gz: dad01fde647453de9bec1ba62ab4b56c6282cc796c5dc43e60d8914b74ccc4e2
3
+ metadata.gz: e50f5dea58e4b40e9921bada1e13d7d600412b24b807965c324f0ca1b120ccad
4
+ data.tar.gz: 29663f1776838ec44972bb682c26a4cd5b850d8f0af64c47bbf21ca3d1d9443e
5
5
  SHA512:
6
- metadata.gz: b0bc20cdbf4a202f20affbd44df45a21d9b401a7a69ca097d0da6d3ec16a3f20f8b418d6958a61f69497f55e2761c7ffc09103935ddb8b6fc1a57a3c910aafea
7
- data.tar.gz: 51ec6e61df1eace358a67b24d7289d1bb265276c8f549f45bcf69567a717558dbc6e71e861435dd5e00278cb4a4ab496bbddef5e50d150731587c98670d71af7
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 'mailer_log'
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/admin/email_log/webhooks/mailgun`
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: `/admin/email_log/admin/emails`
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, date
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
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Shim file to allow `gem 'mailer-log'` without `require: 'mailer_log'`
4
+ # Bundler auto-requires based on gem name, so this redirects to the actual file.
5
+ require_relative 'mailer_log'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailerLog
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
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
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-14 00:00:00.000000000 Z
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