hanami-mailer 1.3.3 → 3.0.0.rc1
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 +145 -45
- data/LICENSE +20 -0
- data/README.md +509 -303
- data/hanami-mailer.gemspec +23 -18
- data/lib/hanami/mailer/attachment.rb +128 -0
- data/lib/hanami/mailer/attachment_set.rb +38 -0
- data/lib/hanami/mailer/delivery/result.rb +82 -0
- data/lib/hanami/mailer/delivery/smtp.rb +168 -0
- data/lib/hanami/mailer/delivery/test.rb +53 -0
- data/lib/hanami/mailer/dsl/attachments.rb +108 -0
- data/lib/hanami/mailer/dsl/exposure.rb +69 -0
- data/lib/hanami/mailer/dsl/exposures.rb +111 -0
- data/lib/hanami/mailer/dsl/plucky_proc.rb +135 -0
- data/lib/hanami/mailer/errors.rb +67 -0
- data/lib/hanami/mailer/message.rb +101 -0
- data/lib/hanami/mailer/version.rb +3 -3
- data/lib/hanami/mailer/view_integration.rb +205 -0
- data/lib/hanami/mailer.rb +341 -272
- data/lib/hanami-mailer.rb +1 -1
- metadata +40 -97
- data/LICENSE.md +0 -22
- data/lib/hanami/mailer/configuration.rb +0 -310
- data/lib/hanami/mailer/dsl.rb +0 -628
- data/lib/hanami/mailer/rendering/template_name.rb +0 -55
- data/lib/hanami/mailer/rendering/templates_finder.rb +0 -135
- data/lib/hanami/mailer/template.rb +0 -42
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 999421ee15650e57104dd05b4f976a81889303efdde24727cd2e28a3ff34fa8a
|
|
4
|
+
data.tar.gz: 85f58035c8e3be5befc9294a45f64c205dc7f47cf29a9a58436186b2bb9ab193
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 891a902c8da33f28c47afc01db9e9eff203c6a0837fde3f8c4c024974c4aae892d3feb1c563d42a91b1f612af267ba550d2b534226078c362cfc3f05967f5e6f
|
|
7
|
+
data.tar.gz: 4b152b6e91fbfc20b591f3f9b3a30e7485137eb261e80610b35d2280c06c5344159a160b3e34b8c86422e9c647ba52f2183fe1850373a6f76d292b01130e87f3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,82 +1,182 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Break Versioning](https://www.taoensso.com/break-versioning).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
3
9
|
|
|
4
|
-
## v1.3.3 - 2021-01-14
|
|
5
10
|
### Added
|
|
6
|
-
- [Luca Guidi] Official support for Ruby: MRI 3.0
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
### Deprecated
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
|
|
22
|
+
[Unreleased]: https://github.com/hanami/hanami-mailer/compare/v3.0.0.rc1...main
|
|
23
|
+
|
|
24
|
+
## [3.0.0.rc1] - 2026-06-16
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Rewrite the gem. (@timriley)
|
|
29
|
+
- Require Ruby 3.3 or newer.
|
|
30
|
+
|
|
31
|
+
[3.0.0.rc1]: https://github.com/hanami/hanami-mailer/compare/v1.3.3...v3.0.0.rc1
|
|
32
|
+
|
|
33
|
+
## [1.3.3] - 2021-01-14
|
|
34
|
+
|
|
9
35
|
### Added
|
|
10
|
-
- [Luca Guidi] Official support for Ruby: MRI 2.7
|
|
11
|
-
- [glaszig] Added `Hanami::Mailer.return_path` and `#return_path` to specify `MAIL FROM` address
|
|
12
36
|
|
|
13
|
-
|
|
37
|
+
- Official support for Ruby: MRI 3.0. (Luca Guidi)
|
|
38
|
+
|
|
39
|
+
[1.3.3]: https://github.com/hanami/hanami-mailer/compare/v1.3.2...v1.3.3
|
|
40
|
+
|
|
41
|
+
## [1.3.2] - 2020-02-03
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- Official support for Ruby: MRI 2.7. (Luca Guidi)
|
|
46
|
+
- Added `Hanami::Mailer.return_path` and `#return_path` to specify `MAIL FROM` address. (glaszig)
|
|
47
|
+
|
|
48
|
+
[1.3.2]: https://github.com/hanami/hanami-mailer/compare/v1.3.1...v1.3.2
|
|
49
|
+
|
|
50
|
+
## [1.3.1] - 2019-01-18
|
|
51
|
+
|
|
14
52
|
### Added
|
|
15
|
-
- [Luca Guidi] Official support for Ruby: MRI 2.6
|
|
16
|
-
- [Luca Guidi] Support `bundler` 2.0+
|
|
17
53
|
|
|
18
|
-
|
|
54
|
+
- Official support for Ruby: MRI 2.6. (Luca Guidi)
|
|
55
|
+
- Support `bundler` 2.0+. (Luca Guidi)
|
|
56
|
+
|
|
57
|
+
[1.3.1]: https://github.com/hanami/hanami-mailer/compare/v1.3.0...v1.3.1
|
|
58
|
+
|
|
59
|
+
## [1.3.0] - 2018-10-24
|
|
60
|
+
|
|
19
61
|
### Added
|
|
20
|
-
- [Ben Bachhuber] Added support for `reply_to`
|
|
21
62
|
|
|
22
|
-
|
|
63
|
+
- Added support for `reply_to`. (Ben Bachhuber)
|
|
64
|
+
|
|
65
|
+
[1.3.0]: https://github.com/hanami/hanami-mailer/compare/v1.3.0.beta1...v1.3.0
|
|
66
|
+
|
|
67
|
+
## [1.3.0.beta1] - 2018-08-08
|
|
68
|
+
|
|
23
69
|
### Added
|
|
24
|
-
- [Luca Guidi] Official support for JRuby 9.2.0.0
|
|
25
70
|
|
|
26
|
-
|
|
71
|
+
- Official support for JRuby 9.2.0.0. (Luca Guidi)
|
|
72
|
+
|
|
73
|
+
[1.3.0.beta1]: https://github.com/hanami/hanami-mailer/compare/v1.2.0...v1.3.0.beta1
|
|
74
|
+
|
|
75
|
+
## [1.2.0] - 2018-04-11
|
|
27
76
|
|
|
28
|
-
|
|
77
|
+
[1.2.0]: https://github.com/hanami/hanami-mailer/compare/v1.2.0.rc2...v1.2.0
|
|
29
78
|
|
|
30
|
-
##
|
|
79
|
+
## [1.2.0.rc2] - 2018-04-06
|
|
31
80
|
|
|
32
|
-
|
|
81
|
+
[1.2.0.rc2]: https://github.com/hanami/hanami-mailer/compare/v1.2.0.rc1...v1.2.0.rc2
|
|
82
|
+
|
|
83
|
+
## [1.2.0.rc1] - 2018-03-30
|
|
84
|
+
|
|
85
|
+
[1.2.0.rc1]: https://github.com/hanami/hanami-mailer/compare/v1.2.0.beta2...v1.2.0.rc1
|
|
86
|
+
|
|
87
|
+
## [1.2.0.beta2] - 2018-03-23
|
|
88
|
+
|
|
89
|
+
[1.2.0.beta2]: https://github.com/hanami/hanami-mailer/compare/v1.2.0.beta1...v1.2.0.beta2
|
|
90
|
+
|
|
91
|
+
## [1.2.0.beta1] - 2018-02-28
|
|
33
92
|
|
|
34
|
-
## v1.2.0.beta1 - 2018-02-28
|
|
35
93
|
### Added
|
|
36
|
-
- [Luca Guidi] Official support for Ruby: MRI 2.5
|
|
37
94
|
|
|
38
|
-
|
|
95
|
+
- Official support for Ruby: MRI 2.5. (Luca Guidi)
|
|
96
|
+
|
|
97
|
+
[1.2.0.beta1]: https://github.com/hanami/hanami-mailer/compare/v1.1.0...v1.2.0.beta1
|
|
98
|
+
|
|
99
|
+
## [1.1.0] - 2017-10-25
|
|
100
|
+
|
|
101
|
+
[1.1.0]: https://github.com/hanami/hanami-mailer/compare/v1.1.0.rc1...v1.1.0
|
|
102
|
+
|
|
103
|
+
## [1.1.0.rc1] - 2017-10-16
|
|
39
104
|
|
|
40
|
-
|
|
105
|
+
[1.1.0.rc1]: https://github.com/hanami/hanami-mailer/compare/v1.1.0.beta3...v1.1.0.rc1
|
|
41
106
|
|
|
42
|
-
##
|
|
107
|
+
## [1.1.0.beta3] - 2017-10-04
|
|
43
108
|
|
|
44
|
-
|
|
109
|
+
[1.1.0.beta3]: https://github.com/hanami/hanami-mailer/compare/v1.1.0.beta2...v1.1.0.beta3
|
|
45
110
|
|
|
46
|
-
##
|
|
111
|
+
## [1.1.0.beta2] - 2017-10-03
|
|
47
112
|
|
|
48
|
-
|
|
113
|
+
[1.1.0.beta2]: https://github.com/hanami/hanami-mailer/compare/v1.1.0.beta1...v1.1.0.beta2
|
|
114
|
+
|
|
115
|
+
## [1.1.0.beta1] - 2017-08-11
|
|
116
|
+
|
|
117
|
+
[1.1.0.beta1]: https://github.com/hanami/hanami-mailer/compare/v1.0.0...v1.1.0.beta1
|
|
118
|
+
|
|
119
|
+
## [1.0.0] - 2017-04-06
|
|
120
|
+
|
|
121
|
+
[1.0.0]: https://github.com/hanami/hanami-mailer/compare/v1.0.0.rc1...v1.0.0
|
|
122
|
+
|
|
123
|
+
## [1.0.0.rc1] - 2017-03-31
|
|
49
124
|
|
|
50
|
-
## v1.0.0.rc1 - 2017-03-31
|
|
51
125
|
### Fixed
|
|
52
|
-
- [Luca Guidi] Let `Hanami::Mailer.deliver` to bubble up `ArgumentError` exceptions
|
|
53
126
|
|
|
54
|
-
|
|
127
|
+
- Let `Hanami::Mailer.deliver` to bubble up `ArgumentError` exceptions. (Luca Guidi)
|
|
128
|
+
|
|
129
|
+
[1.0.0.rc1]: https://github.com/hanami/hanami-mailer/compare/v1.0.0.beta2...v1.0.0.rc1
|
|
130
|
+
|
|
131
|
+
## [1.0.0.beta2] - 2017-03-17
|
|
132
|
+
|
|
133
|
+
[1.0.0.beta2]: https://github.com/hanami/hanami-mailer/compare/v1.0.0.beta1...v1.0.0.beta2
|
|
134
|
+
|
|
135
|
+
## [1.0.0.beta1] - 2017-02-14
|
|
55
136
|
|
|
56
|
-
## v1.0.0.beta1 - 2017-02-14
|
|
57
137
|
### Added
|
|
58
|
-
- [Luca Guidi] Official support for Ruby: MRI 2.4
|
|
59
138
|
|
|
60
|
-
|
|
139
|
+
- Official support for Ruby: MRI 2.4. (Luca Guidi)
|
|
140
|
+
|
|
141
|
+
[1.0.0.beta1]: https://github.com/hanami/hanami-mailer/compare/v0.4.0...v1.0.0.beta1
|
|
142
|
+
|
|
143
|
+
## [0.4.0] - 2016-11-15
|
|
144
|
+
|
|
61
145
|
### Changed
|
|
62
|
-
- [Luca Guidi] Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+
|
|
63
146
|
|
|
64
|
-
|
|
147
|
+
- Official support for Ruby: MRI 2.3+ and JRuby 9.1.5.0+. (Luca Guidi)
|
|
148
|
+
|
|
149
|
+
[0.4.0]: https://github.com/hanami/hanami-mailer/compare/v0.3.0...v0.4.0
|
|
150
|
+
|
|
151
|
+
## [0.3.0] - 2016-07-22
|
|
152
|
+
|
|
65
153
|
### Added
|
|
66
|
-
|
|
67
|
-
-
|
|
154
|
+
|
|
155
|
+
- Blind carbon copy (bcc) option. (Anton Davydov)
|
|
156
|
+
- Carbon copy (cc) option. (Anton Davydov)
|
|
68
157
|
|
|
69
158
|
### Changed
|
|
70
|
-
- [Luca Guidi] Drop support for Ruby 2.0 and 2.1
|
|
71
159
|
|
|
72
|
-
|
|
160
|
+
- Drop support for Ruby 2.0 and 2.1. (Luca Guidi)
|
|
161
|
+
|
|
162
|
+
[0.3.0]: https://github.com/hanami/hanami-mailer/compare/v0.2.0...v0.3.0
|
|
163
|
+
|
|
164
|
+
## [0.2.0] - 2016-01-22
|
|
165
|
+
|
|
73
166
|
### Changed
|
|
74
|
-
- [Luca Guidi] Renamed the project
|
|
75
167
|
|
|
76
|
-
|
|
168
|
+
- Renamed the project. (Luca Guidi)
|
|
169
|
+
|
|
170
|
+
[0.2.0]: https://github.com/hanami/hanami-mailer/compare/v0.1.0...v0.2.0
|
|
171
|
+
|
|
172
|
+
## [0.1.0] - 2015-09-30
|
|
173
|
+
|
|
77
174
|
### Added
|
|
78
|
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
175
|
+
|
|
176
|
+
- Email delivery. (Ines Coelho & Rosa Faria & Luca Guidi)
|
|
177
|
+
- Attachments. (Ines Coelho & Rosa Faria & Luca Guidi)
|
|
178
|
+
- Multipart rendering. (Ines Coelho & Rosa Faria & Luca Guidi)
|
|
179
|
+
- Configuration. (Ines Coelho & Rosa Faria & Luca Guidi)
|
|
180
|
+
- Official support for Ruby 2.0. (Ines Coelho & Rosa Faria & Luca Guidi)
|
|
181
|
+
|
|
182
|
+
[0.1.0]: https://github.com/hanami/hanami-mailer/releases/tag/v0.1.0
|
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2026 Hanakai team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|