better_mailer_previews 1.0.1 → 1.0.2
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: 8c29be1158c74ff4d8c0e3cf3aa86961bc8036594f60e6c7c85bc1be716d6598
|
|
4
|
+
data.tar.gz: bd4621808e9762147f33881161e903caa58f7783b835554b2dc604900ee6b429
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a749e68c91575dad519d4aee7e1e3eef186b6fa02a75bbbc6ddd07807e3599ee2c2281bd252a00f81969bef0bd6f399a700312b17b65dac7c5b21a36d973dec
|
|
7
|
+
data.tar.gz: aca9c4067976f393707452df148feb59c982890fc2471fab82a923339e2717e55c7c8b039ac58c8b65609b66c262dc3501945b188e0f2dc4bcfb20e5663d96c5
|
data/README.md
CHANGED
|
@@ -8,6 +8,7 @@ This gem/engine builds on top of native Rails mailer previews, with a few key en
|
|
|
8
8
|
- **Easily resize individual mailers, for testing responsive layouts**
|
|
9
9
|
- **Forward your previews to an email address (uses the default ActionMailer delivery method for your app).**
|
|
10
10
|
- **Fully compatible with, and can live alongside, native [Rails ActionMailer Previews](https://guides.rubyonrails.org/action_mailer_basics.html#previewing-emails)**
|
|
11
|
+
- **Supports namespaced mailers (think User::SignupMailer) as of v1.0.1**
|
|
11
12
|
|
|
12
13
|
Here's a little demo I've put together ↓
|
|
13
14
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<div class="w-full flex justify-between items-end">
|
|
2
|
-
<
|
|
2
|
+
<div class="flex flex-col">
|
|
3
|
+
<%= link_to '← home', root_path, class: "text-sm text-gray-400 w-fit hover:text-gray-700 hover:underline" %>
|
|
4
|
+
<h1 class="text-5xl font-medium tracking-tighter"><%= @mailer_path.titleize %> — <%= @email_type.titleize %></h1>
|
|
5
|
+
</div>
|
|
3
6
|
<div class="">
|
|
4
7
|
<%= form_with url: send_mailer_email_path(mailer_path: @mailer_path, email_type: @email_type),
|
|
5
8
|
method: :post,
|
|
@@ -15,7 +18,7 @@
|
|
|
15
18
|
<p class="text-xs text-gray-400 mt-1 w-64"><%= flash[:notice] %></p>
|
|
16
19
|
</div>
|
|
17
20
|
</div>
|
|
18
|
-
<div class="flex
|
|
21
|
+
<div class="flex mt-6 mb-4 py-4 border gap-x-8 items-center">
|
|
19
22
|
<div class="w-3/4 pr-12 pb-4 border-r-2 resize-x overflow-auto">
|
|
20
23
|
<div class="shrink-0 flex items-center bg-gray-950 py-2 px-4 z-10 rounded-t-lg">
|
|
21
24
|
<div class="hidden sm:block shrink-0 mr-2 h-4 w-4 bg-gray-600 rounded-full"></div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: better_mailer_previews
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harrison Broadbent
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-12-
|
|
11
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|