drive 0.15.0 → 0.16.0
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 +6 -0
- data/app/views/easy/mailer/_code.html.erb +67 -0
- data/app/views/easy/mailer/_code.text.erb +16 -0
- data/lib/drive/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bba39784566ab073fd1b48d9f3c2039c654f13428be44592e0eb6dc949136a43
|
|
4
|
+
data.tar.gz: bcfdcacd52b9d29b94cdbf4573236d854536a847e036380b0ba3379d51dcbdd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96729b842a8714ae33ad3d758ca4b99c2be368148d2c09f5c7dceb0c332eb4adb07818760566d60a84fe9ace099b7816c202e5a982d9b6fd38f4b1f39f74407b
|
|
7
|
+
data.tar.gz: 6a40e287f83d1e543fff492c8b47ec135245e1a768359acddf96c6b584ba18b5485c1e7424f972bb79882392f658f19c2bdd9e1e9819e590bdb872c271fab39d
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## 0.16.0 - 2026-11-06
|
|
10
|
+
|
|
11
|
+
* [FEATURE] `easy/mailer/code` (HTML and text): the email carrying a 6-digit code, the same from every easy app, the
|
|
12
|
+
design of easyfaa.com's sign-in email. The code is selected whole by one click or tap, and sits in plain digits next
|
|
13
|
+
to the word "code" (and in the inbox's preview), as Apple Mail, iOS and Gmail look for it to offer it to the field.
|
|
14
|
+
|
|
9
15
|
## 0.15.0 - 2026-11-06
|
|
10
16
|
|
|
11
17
|
* [FEATURE] `render "easy/pin_code", name:` (`id:`, `autofocus:`, `label:`) and `easy/pin_code.js`: the 6-digit code as
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<%# locals: (code:, brand:, site:, logo:, purpose:, lifetime:, ignore:, link: nil, link_label: nil, link_lede: nil, fine: nil) -%>
|
|
2
|
+
<%# The email carrying a 6-digit code, the same from every easy app (its text twin: _code.text.erb): the logo, then a
|
|
3
|
+
card whose navy head holds the code large enough to read across the room, selected whole by one click or tap.
|
|
4
|
+
The code is plain digits next to the word "code", in the subject too ("123456 is your easyFAA code"), with no
|
|
5
|
+
other run of digits near it: what Apple Mail, iOS and Gmail look for to offer it to the field that asks for it.
|
|
6
|
+
code: "123456"; brand: "easyFAA"; site: the app's address, under the card; logo: the URL of the brand's logo,
|
|
7
|
+
an inline attachment so it shows wherever the email is read; purpose: "to sign in", "to sign the airframe
|
|
8
|
+
logbook entry for N22196"; lifetime: "10 minutes"; ignore: what to do with an email nobody asked for.
|
|
9
|
+
link, link_label, link_lede: a button doing what the code does, the sentence above it; fine: under it (HTML). -%>
|
|
10
|
+
<% heading = %(font-family:"Outfit","Helvetica Neue",Helvetica,Arial,sans-serif;) %>
|
|
11
|
+
<% body = %(font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;) %>
|
|
12
|
+
<% host = URI(site).host %>
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<meta charset="utf-8">
|
|
17
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
18
|
+
<meta name="color-scheme" content="light">
|
|
19
|
+
<meta name="supported-color-schemes" content="light">
|
|
20
|
+
<meta name="format-detection" content="telephone=no, date=no, address=no">
|
|
21
|
+
<title><%= code %> is your <%= brand %> code</title>
|
|
22
|
+
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap" rel="stylesheet">
|
|
23
|
+
</head>
|
|
24
|
+
<body style="margin:0;padding:0;background:#f1f2f3;">
|
|
25
|
+
<div style="display:none;max-height:0;overflow:hidden;opacity:0;">Your <%= brand %> code <%= purpose %>: <%= code %></div>
|
|
26
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background:#f1f2f3;">
|
|
27
|
+
<tr><td align="center" style="padding:32px 16px;">
|
|
28
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width:560px;">
|
|
29
|
+
|
|
30
|
+
<tr><td style="padding:0 4px 20px;">
|
|
31
|
+
<a href="<%= site %>" style="text-decoration:none;"><img src="<%= logo %>" height="32" alt="<%= brand %>" style="display:block;border:0;height:32px;width:auto;"></a>
|
|
32
|
+
</td></tr>
|
|
33
|
+
|
|
34
|
+
<tr><td style="background:#ffffff;border:1px solid #c6cbcf;border-radius:18px;overflow:hidden;">
|
|
35
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
36
|
+
<tr><td align="center" style="background:#0b1e3a;padding:30px 28px 30px;border-radius:17px 17px 0 0;">
|
|
37
|
+
<div style="<%= body %>font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#9fb6d4;margin:0 0 12px;">Your <%= brand %> code</div>
|
|
38
|
+
<div style="<%= heading %>font-size:56px;font-weight:700;letter-spacing:.14em;color:#ffffff;line-height:1;-webkit-user-select:all;user-select:all;"><%= code %></div>
|
|
39
|
+
<div style="<%= body %>font-size:15px;line-height:1.4;color:#cfe0f3;margin:14px 0 0;"><%= purpose.upcase_first %></div>
|
|
40
|
+
</td></tr>
|
|
41
|
+
|
|
42
|
+
<% if link %>
|
|
43
|
+
<tr><td align="center" style="padding:22px 28px 8px;<%= body %>font-size:16px;line-height:1.5;color:#2c2f32;"><%= link_lede %></td></tr>
|
|
44
|
+
<tr><td align="center" style="padding:10px 28px 18px;">
|
|
45
|
+
<table role="presentation" cellpadding="0" cellspacing="0" border="0"><tr>
|
|
46
|
+
<td style="background:#1a70d0;border-radius:24px;">
|
|
47
|
+
<a href="<%= link %>" style="display:inline-block;padding:14px 30px;<%= heading %>font-size:17px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:24px;"><%= link_label %></a>
|
|
48
|
+
</td>
|
|
49
|
+
</tr></table>
|
|
50
|
+
</td></tr>
|
|
51
|
+
<% end %>
|
|
52
|
+
<tr><td align="center" style="padding:<%= link ? "0" : "22px" %> 28px 26px;<%= body %>font-size:13px;line-height:1.5;color:#636c74;">
|
|
53
|
+
<% if fine %><%= fine %><br><% end %>
|
|
54
|
+
It works once, for <%= lifetime %>. <%= ignore %>
|
|
55
|
+
</td></tr>
|
|
56
|
+
</table>
|
|
57
|
+
</td></tr>
|
|
58
|
+
|
|
59
|
+
<tr><td style="padding:18px 8px 0;<%= body %>font-size:12px;line-height:1.5;color:#636c74;text-align:center;">
|
|
60
|
+
<a href="<%= site %>" style="color:#636c74;"><%= host %></a>
|
|
61
|
+
</td></tr>
|
|
62
|
+
|
|
63
|
+
</table>
|
|
64
|
+
</td></tr>
|
|
65
|
+
</table>
|
|
66
|
+
</body>
|
|
67
|
+
</html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<%# locals: (code:, brand:, site:, purpose:, lifetime:, ignore:, logo: nil, link: nil, link_label: nil, link_lede: nil, fine: nil) -%>
|
|
2
|
+
<%# The plain-text twin of _code.html.erb: the code first, on its own line beside the word "code". fine: plain text. -%>
|
|
3
|
+
Your <%= brand %> code <%= purpose %>: <%= code %>
|
|
4
|
+
<% if link %>
|
|
5
|
+
|
|
6
|
+
<%= link_lede %>
|
|
7
|
+
<%= link %>
|
|
8
|
+
<% end %>
|
|
9
|
+
<% if fine %>
|
|
10
|
+
|
|
11
|
+
<%= fine %>
|
|
12
|
+
<% end %>
|
|
13
|
+
|
|
14
|
+
It works once, for <%= lifetime %>. <%= ignore %>
|
|
15
|
+
|
|
16
|
+
<%= site %>
|
data/lib/drive/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: drive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- claudiob
|
|
@@ -55,6 +55,8 @@ files:
|
|
|
55
55
|
- app/views/drive/errors/show.html.erb
|
|
56
56
|
- app/views/easy/_flyer.html.erb
|
|
57
57
|
- app/views/easy/_pin_code.html.erb
|
|
58
|
+
- app/views/easy/mailer/_code.html.erb
|
|
59
|
+
- app/views/easy/mailer/_code.text.erb
|
|
58
60
|
- app/views/layouts/drive/errors.html.erb
|
|
59
61
|
- app/views/layouts/easy/site.html.erb
|
|
60
62
|
- lib/drive.rb
|