sanitize_email 2.0.7 → 2.0.8
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
- checksums.yaml.gz.sig +2 -2
- data/CHANGELOG.md +8 -2
- data/CONTRIBUTING.md +1 -0
- data/README.md +21 -25
- data/lib/sanitize_email/engine_v6.rb +6 -4
- data/lib/sanitize_email/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6ef5b657f6d07f549ff25ac616556c2ff879358dfb94300b532a5f119f76de8
|
|
4
|
+
data.tar.gz: a0308990971eadb314ca264856b18b02a025ba280e10352b58d3ff80ef8e8b31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61b2e1f677658f2fd0bb713a2eab720e7d6fdfcd02ca1a2d90f6e0a52f396bf913e8438d2e26a0af38afbcaab13384a1b772f5fd18fafbb4fa1f206315b412e1
|
|
7
|
+
data.tar.gz: ca8d289b27a29b4ba5542b2e19b3357789739103138a7d53be53e6f53dd46648ba09f0cb11bc2772be920c7b69144f05daa481f694751a96afa07b163755d917
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
�
|
|
2
|
-
|
|
1
|
+
�tG���vW1�����L"b��;���f�%s�� +~]�i�<�i��[/SR���a�@/Q�b �J�&|D0c6;:<�h�b��ɨ7+/������ir3�)�agk6�g��&�����?0�-9��
|
|
2
|
+
"rX;����$��z�hr�+���?~����������m-�U����U�G^y@!�C��>�'Q$,n,� 7��W,V�dsyu��ۨ�5�B�;��ȚJ�s���o���n=QxK|1^��2,�&�eEk���>g���m���%����P�^���!v��6b��|,��-C���gԒ֫�:i�|�bg�n�؆0�w�3-r�@�F�1��W�����}8�T�03뚇'�R�NyΜ:HWG
|
data/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Fixed
|
|
11
11
|
### Removed
|
|
12
12
|
|
|
13
|
+
## [2.0.8] - 2024-06-11 ([tag][2.0.8t])
|
|
14
|
+
### Fixed
|
|
15
|
+
# [#110](https://github.com/pboling/sanitize_email/issues/110) - interceptor not working via Rails 6+ engine (actual fix!)
|
|
16
|
+
|
|
13
17
|
## [2.0.7] - 2024-04-25 ([tag][2.0.7t])
|
|
14
18
|
### Added
|
|
15
19
|
* More documentation
|
|
@@ -299,8 +303,10 @@ Old version?
|
|
|
299
303
|
* Fixed require paths
|
|
300
304
|
* added about.yml and this CHANGELOG
|
|
301
305
|
|
|
302
|
-
[Unreleased]: https://github.com/pboling/sanitize_email/compare/v2.0.
|
|
303
|
-
[2.0.
|
|
306
|
+
[Unreleased]: https://github.com/pboling/sanitize_email/compare/v2.0.8...HEAD
|
|
307
|
+
[2.0.8]: https://github.com/pboling/sanitize_email/compare/v2.0.7...v2.0.8
|
|
308
|
+
[2.0.8t]: https://github.com/pboling/sanitize_email/tags/v2.0.8
|
|
309
|
+
[2.0.7]: https://github.com/pboling/sanitize_email/compare/v2.0.6...v2.0.7
|
|
304
310
|
[2.0.7t]: https://github.com/pboling/sanitize_email/tags/v2.0.7
|
|
305
311
|
[2.0.6]: https://github.com/pboling/sanitize_email/compare/v2.0.5...v2.0.6
|
|
306
312
|
[2.0.6t]: https://github.com/pboling/sanitize_email/tags/v2.0.6
|
data/CONTRIBUTING.md
CHANGED
|
@@ -31,6 +31,7 @@ To release a new version:
|
|
|
31
31
|
a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
|
32
32
|
b. If the echo above has no output, then it didn't work.
|
|
33
33
|
c. Note that you'll need the `zsh/datetime` module, if running `zsh`.
|
|
34
|
+
d. In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
|
34
35
|
9. Run `bundle exec rake build`
|
|
35
36
|
10. Run [`bin/checksums`][🔒️rubygems-checksums-pr] to create SHA-256 and SHA-512 checksums
|
|
36
37
|
a. Checksums will be committed automatically by the script, but not pushed
|
data/README.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
[![Liberapay Patrons][⛳liberapay-img]][⛳liberapay]
|
|
25
25
|
[![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
|
|
26
|
+
|
|
26
27
|
<span class="badge-buymeacoffee">
|
|
27
28
|
<a href="https://ko-fi.com/O5O86SNP4" target='_blank' title="Donate to my FLOSS or refugee efforts at ko-fi.com"><img src="https://img.shields.io/badge/buy%20me%20coffee-donate-yellow.svg" alt="Buy me coffee donation button" /></a>
|
|
28
29
|
</span>
|
|
@@ -63,12 +64,12 @@ then this is the gem for you.
|
|
|
63
64
|
|
|
64
65
|
## Compatibility
|
|
65
66
|
|
|
66
|
-
⚙️ Compatible with all versions of Ruby >= 2.3, plus JRuby and Truffleruby.
|
|
67
|
-
⚙️ Compatible with all Ruby web Frameworks (Hanami, Roda, Sinatra, Rails).
|
|
68
|
-
⚙️ Compatible with all versions of Rails from 3.0 - 7.1+.
|
|
69
|
-
⚙️ Compatible with scripted usage of Mail gem outside a web framework.
|
|
70
|
-
⚙️ Compatible with [`sendgrid-actionmailer`](https://github.com/eddiezane/sendgrid-actionmailer)'s support for personalizations, and will override email addresses there according to the configuration.
|
|
71
|
-
⚙️ If this gem is not compatible with your use case, and you'd like it to be, I'd like to hear about it!
|
|
67
|
+
- ⚙️ Compatible with all versions of Ruby >= 2.3, plus JRuby and Truffleruby.
|
|
68
|
+
- ⚙️ Compatible with all Ruby web Frameworks (Hanami, Roda, Sinatra, Rails).
|
|
69
|
+
- ⚙️ Compatible with all versions of Rails from 3.0 - 7.1+.
|
|
70
|
+
- ⚙️ Compatible with scripted usage of Mail gem outside a web framework.
|
|
71
|
+
- ⚙️ Compatible with [`sendgrid-actionmailer`](https://github.com/eddiezane/sendgrid-actionmailer)'s support for personalizations, and will override email addresses there according to the configuration.
|
|
72
|
+
- ⚙️ If this gem is not compatible with your use case, and you'd like it to be, I'd like to hear about it!
|
|
72
73
|
|
|
73
74
|
It was a slog getting (very nearly) the entire compatibility matrix working with Github Actions, [`appraisal`](https://github.com/thoughtbot/appraisal), and [`combustion`](https://github.com/pat/combustion), and I'm very interested in hearing about ways to improve it!
|
|
74
75
|
|
|
@@ -119,15 +120,15 @@ appended indicators:
|
|
|
119
120
|
♻️ / 🔑 - Tagged URLs need to be updated from SAAS integration. Find / Replace is insufficient.
|
|
120
121
|
-->
|
|
121
122
|
|
|
122
|
-
| | Project | bundle add sanitize_email
|
|
123
|
-
|
|
124
|
-
| 1️⃣ | name, license, docs, standards | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] [![RubyDoc.info][🚎yard-img]][🚎yard] [][🚎yard] [![SemVer 2.0.0][🧮semver-img]][🧮semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog]
|
|
125
|
-
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-main-img]][🚎src-main] [![Open PRs][🖐prs-o-img]][🖐prs-o] [![Closed PRs][🧮prs-c-img]][🧮prs-c]
|
|
126
|
-
| 3️⃣ | maintenance & linting | [![Maintainability][🔑cc-mnti]][🔑cc-mnt] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🔑depfui]][🔑depfu] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf]
|
|
127
|
-
| 4️⃣ | testing | [![Supported][🏘sup-wf-img]][🏘sup-wf] [![Heads][🚎heads-wf-img]][🚎heads-wf]
|
|
128
|
-
| 5️⃣ | coverage & security | [![CodeClimate][🔑cc-covi]][🔑cc-cov] [![CodeCov][🖇codecov-img♻️]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf]
|
|
129
|
-
| 6️⃣ | resources | [![Get help on Codementor][🖇codementor-img]][🖇codementor] [![Chat][🏘chat-img]][🏘chat] [![Blog][🚎blog-img]][🚎blog] [![Wiki][🖐wiki-img]][🖐wiki]
|
|
130
|
-
| 7️⃣ | `...` 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Follow Me on LinkedIn][🖇linkedin-img]][🖇linkedin] [![Find Me on WellFound:][✌️wellfound-img]][✌️wellfound] [![Find Me on CrunchBase][💲crunchbase-img]][💲crunchbase] [![My LinkTree][🌳linktree-img]][🌳linktree] [![Follow Me on Ruby.Social][🐘ruby-mast-img]][🐘ruby-mast] [![
|
|
123
|
+
| | Project | bundle add sanitize_email |
|
|
124
|
+
|:----|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
125
|
+
| 1️⃣ | name, license, docs, standards | [![RubyGems.org][⛳️name-img]][⛳️gem] [![License: MIT][🖇src-license-img]][🖇src-license] [![RubyDoc.info][🚎yard-img]][🚎yard] [][🚎yard] [![SemVer 2.0.0][🧮semver-img]][🧮semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] |
|
|
126
|
+
| 2️⃣ | version & activity | [![Gem Version][⛳️version-img]][⛳️gem] [![Total Downloads][🖇DL-total-img]][⛳️gem] [![Download Rank][🏘DL-rank-img]][⛳️gem] [![Source Code][🚎src-main-img]][🚎src-main] [![Open PRs][🖐prs-o-img]][🖐prs-o] [![Closed PRs][🧮prs-c-img]][🧮prs-c] |
|
|
127
|
+
| 3️⃣ | maintenance & linting | [![Maintainability][🔑cc-mnti]][🔑cc-mnt] [![Helpers][🖇triage-help-img]][🖇triage-help] [![Depfu][🔑depfui]][🔑depfu] [![Contributors][🚎contributors-img]][🚎contributors] [![Style][🖐style-wf-img]][🖐style-wf] |
|
|
128
|
+
| 4️⃣ | testing | [![Supported][🏘sup-wf-img]][🏘sup-wf] [![Heads][🚎heads-wf-img]][🚎heads-wf] [![Heads][🖐uns-wf-img]][🖐uns-wf] |
|
|
129
|
+
| 5️⃣ | coverage & security | [![CodeClimate][🔑cc-covi]][🔑cc-cov] [![CodeCov][🖇codecov-img♻️]][🖇codecov] [![Coveralls][🏘coveralls-img]][🏘coveralls] [![Security Policy][🚎sec-pol-img]][🚎sec-pol] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Code Coverage][🧮cov-wf-img]][🧮cov-wf] |
|
|
130
|
+
| 6️⃣ | resources | [![Get help on Codementor][🖇codementor-img]][🖇codementor] [![Chat][🏘chat-img]][🏘chat] [![Blog][🚎blog-img]][🚎blog] [![Wiki][🖐wiki-img]][🖐wiki] |
|
|
131
|
+
| 7️⃣ | `...` 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Follow Me on LinkedIn][🖇linkedin-img]][🖇linkedin] [![Find Me on WellFound:][✌️wellfound-img]][✌️wellfound] [![Find Me on CrunchBase][💲crunchbase-img]][💲crunchbase] [![My LinkTree][🌳linktree-img]][🌳linktree] [![Follow Me on Ruby.Social][🐘ruby-mast-img]][🐘ruby-mast] [![Tweet @ Peter][🐦tweet-img]][🐦tweet] [💻][coderme] [🌏][aboutme] |
|
|
131
132
|
|
|
132
133
|
<!--
|
|
133
134
|
The link tokens in the following sections should be kept ordered by the row and badge numbering scheme
|
|
@@ -135,7 +136,7 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
|
135
136
|
|
|
136
137
|
<!-- 1️⃣ name, license, docs -->
|
|
137
138
|
[⛳️gem]: https://rubygems.org/gems/sanitize_email
|
|
138
|
-
[⛳️name-img]: https://img.shields.io/badge/name-
|
|
139
|
+
[⛳️name-img]: https://img.shields.io/badge/name-sanitize__email-brightgreen.svg?style=flat
|
|
139
140
|
[🖇src-license]: https://opensource.org/licenses/MIT
|
|
140
141
|
[🖇src-license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
|
141
142
|
[🚎yard]: https://www.rubydoc.info/gems/sanitize_email
|
|
@@ -174,10 +175,6 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
|
174
175
|
[🚎heads-wf-img]: https://github.com/pboling/sanitize_email/actions/workflows/heads.yml/badge.svg
|
|
175
176
|
[🖐uns-wf]: https://github.com/pboling/sanitize_email/actions/workflows/unsupported.yml
|
|
176
177
|
[🖐uns-wf-img]: https://github.com/pboling/sanitize_email/actions/workflows/unsupported.yml/badge.svg
|
|
177
|
-
[🧮mac-wf]: https://github.com/pboling/sanitize_email/actions/workflows/macos.yml
|
|
178
|
-
[🧮mac-wf-img]: https://github.com/pboling/sanitize_email/actions/workflows/macos.yml/badge.svg
|
|
179
|
-
[📗win-wf]: https://github.com/pboling/sanitize_email/actions/workflows/windows.yml
|
|
180
|
-
[📗win-wf-img]: https://github.com/pboling/sanitize_email/actions/workflows/windows.yml/badge.svg
|
|
181
178
|
|
|
182
179
|
<!-- 5️⃣ coverage & security -->
|
|
183
180
|
[🖇codecov-img♻️]: https://codecov.io/gh/pboling/sanitize_email/graph/badge.svg?token=Joire8DbSW
|
|
@@ -209,15 +206,11 @@ The link tokens in the following sections should be kept ordered by the row and
|
|
|
209
206
|
[🖇linkedin]: http://www.linkedin.com/in/peterboling
|
|
210
207
|
[🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-blue?style=plastic&logo=linkedin
|
|
211
208
|
[✌️wellfound]: https://angel.co/u/peter-boling
|
|
212
|
-
[✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=plastic&logo=
|
|
209
|
+
[✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=plastic&logo=wellfound
|
|
213
210
|
[💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
|
214
211
|
[💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=plastic&logo=crunchbase
|
|
215
212
|
[🐘ruby-mast]: https://ruby.social/@galtzo
|
|
216
213
|
[🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=plastic&logo=mastodon&label=Ruby%20%40galtzo
|
|
217
|
-
[🐘floss-mast]: https://floss.social/@galtzo
|
|
218
|
-
[🐘floss-mast-img]: https://img.shields.io/mastodon/follow/110304921404405715?domain=https%3A%2F%2Ffloss.social&style=plastic&logo=mastodon&label=FLOSS%20%40galtzo
|
|
219
|
-
[🐘mast]: https://mastodon.social/@galtzo
|
|
220
|
-
[🐘mast-img]: https://img.shields.io/mastodon/follow/000924127?domain=https%3A%2F%2Fmastodon.social&style=plastic&logo=mastodon&label=Mastodon%20%40galtzo
|
|
221
214
|
[🌳linktree]: https://linktr.ee/galtzo
|
|
222
215
|
[🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=plastic&logo=linktree
|
|
223
216
|
|
|
@@ -696,6 +689,9 @@ Sometimes also:
|
|
|
696
689
|
BUNDLE_GEMFILE=gemfiles/vanilla.gemfile appraisal update
|
|
697
690
|
```
|
|
698
691
|
|
|
692
|
+
NOTE: This results in bad paths to the gemspec.
|
|
693
|
+
`gemspec path: "../../"` needs to be replaced with `gemspec path: "../"` in each Appraisal gemfile.
|
|
694
|
+
|
|
699
695
|
Except, is unlikely to be possible to install all of the supported Rubies & Railsies in a single container...
|
|
700
696
|
See the various github action workflows for more inspiration on running certain oldies.
|
|
701
697
|
|
|
@@ -7,10 +7,12 @@ require "rails/engine"
|
|
|
7
7
|
module SanitizeEmail
|
|
8
8
|
# For Rails >= 6.0
|
|
9
9
|
class EngineV6 < ::Rails::Engine
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
# Runs before frameworks, like ActionMailer, are initialized
|
|
11
|
+
config.before_initialize do
|
|
12
|
+
ActiveSupport.on_load(:action_mailer) do
|
|
13
|
+
# Within :action_mailer hook, self is ActionMailer::Base
|
|
14
|
+
register_interceptor(SanitizeEmail::Bleach)
|
|
15
|
+
end
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sanitize_email
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Boling
|
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
|
38
38
|
KuxrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
|
|
39
39
|
pF8dMA==
|
|
40
40
|
-----END CERTIFICATE-----
|
|
41
|
-
date: 2024-
|
|
41
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
|
42
42
|
dependencies:
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: mail
|
|
@@ -217,10 +217,10 @@ licenses:
|
|
|
217
217
|
- MIT
|
|
218
218
|
metadata:
|
|
219
219
|
homepage_uri: https://github.com/pboling/sanitize_email
|
|
220
|
-
source_code_uri: https://github.com/pboling/sanitize_email/tree/v2.0.
|
|
221
|
-
changelog_uri: https://github.com/pboling/sanitize_email/blob/v2.0.
|
|
220
|
+
source_code_uri: https://github.com/pboling/sanitize_email/tree/v2.0.8
|
|
221
|
+
changelog_uri: https://github.com/pboling/sanitize_email/blob/v2.0.8/CHANGELOG.md
|
|
222
222
|
bug_tracker_uri: https://github.com/pboling/sanitize_email/issues
|
|
223
|
-
documentation_uri: https://www.rubydoc.info/gems/sanitize_email/2.0.
|
|
223
|
+
documentation_uri: https://www.rubydoc.info/gems/sanitize_email/2.0.8
|
|
224
224
|
wiki_uri: https://github.com/pboling/sanitize_email/wiki
|
|
225
225
|
funding_uri: https://liberapay.com/pboling
|
|
226
226
|
rubygems_mfa_required: 'true'
|
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
239
239
|
- !ruby/object:Gem::Version
|
|
240
240
|
version: '0'
|
|
241
241
|
requirements: []
|
|
242
|
-
rubygems_version: 3.
|
|
242
|
+
rubygems_version: 3.5.11
|
|
243
243
|
signing_key:
|
|
244
244
|
specification_version: 4
|
|
245
245
|
summary: Email Condom for your Ruby Server
|
metadata.gz.sig
CHANGED
|
Binary file
|