activemail 1.2.0 → 1.2.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 +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +5 -5
- data/lib/activemail/configuration.rb +1 -1
- data/lib/activemail/rails/template_handler.rb +1 -1
- data/lib/activemail/version.rb +1 -1
- data/lib/activemail.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47993a9061efeb2fe36ded1328f98d53eabe7bd22c3b689f962df99b249a5f95
|
|
4
|
+
data.tar.gz: 68a05bc3eb6520e119c94f50dc39ea5b6135444bbf5ff7df0d02f1d00c4f0259
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f498c03cb1bd2f5b1371d8d55429b8eb1e5bf7f96d55a39982e6d7a19d066c45f4d97699f8b3fdc76f8b0825d747a48b35b23cfbe59a2ef66e88c360a60d859
|
|
7
|
+
data.tar.gz: ec69158e556709a4a61a24ed44c51a05d1107270d2a4e60b19ebb43f461d5221f8a1ff8488bb68e2b8093d378b89461edd83d2dc4517a666d6c7fcc07944791b
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,20 @@ All notable changes to this project are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.2] - 2026-07-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Publish to RubyGems via trusted publishing (OIDC) instead of a long-lived API key.
|
|
13
|
+
- Harden the `blank_link_rel=` setter (internal, no behaviour change).
|
|
14
|
+
|
|
15
|
+
## [1.2.1] - 2026-07-01
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Renamed the internal `ActiveMail::Core#release_the_kraken` to `#transpile`.
|
|
20
|
+
- Neutralised test fixtures (example URLs) and severed the upstream fork link.
|
|
21
|
+
|
|
8
22
|
## [1.2.0] - 2026-07-01
|
|
9
23
|
|
|
10
24
|
### Added
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ tokens, automatic CSS inlining, generators, and test-time quality guards — so
|
|
|
7
7
|
responsive, accessible email renders **out of the box**, with every default
|
|
8
8
|
overridable.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Not affiliated with Rails core.
|
|
11
11
|
|
|
12
12
|
Write this:
|
|
13
13
|
|
|
@@ -289,7 +289,7 @@ Helpers available from `Base`: `combine_classes`, `combine_attributes`,
|
|
|
289
289
|
Per-instance overrides (including replacing a built-in tag) are also possible:
|
|
290
290
|
|
|
291
291
|
```ruby
|
|
292
|
-
ActiveMail::Core.new(components: { 'button' => MyButton }).
|
|
292
|
+
ActiveMail::Core.new(components: { 'button' => MyButton }).transpile(source)
|
|
293
293
|
```
|
|
294
294
|
|
|
295
295
|
## Generators
|
|
@@ -356,8 +356,8 @@ Targets the real-world client landscape as of 2026:
|
|
|
356
356
|
## Programmatic use
|
|
357
357
|
|
|
358
358
|
```ruby
|
|
359
|
-
ActiveMail::Core.new.
|
|
360
|
-
ActiveMail::Core.new(column_count: 24, container_width: 480).
|
|
359
|
+
ActiveMail::Core.new.transpile('<container><row><columns>Hi</columns></row></container>')
|
|
360
|
+
ActiveMail::Core.new(column_count: 24, container_width: 480).transpile(source)
|
|
361
361
|
```
|
|
362
362
|
|
|
363
363
|
## Development
|
|
@@ -371,4 +371,4 @@ bundle exec srb tc # Sorbet
|
|
|
371
371
|
|
|
372
372
|
## License
|
|
373
373
|
|
|
374
|
-
MIT. See [`LICENSE.txt`](LICENSE.txt).
|
|
374
|
+
MIT. See [`LICENSE.txt`](LICENSE.txt), which retains the original ZURB copyright.
|
|
@@ -198,7 +198,7 @@ module ActiveMail
|
|
|
198
198
|
raise TypeError, "blank_link_rel must be a String or nil, got #{value.inspect} (#{value.class})" unless value.nil? || value.is_a?(String)
|
|
199
199
|
|
|
200
200
|
normalized = value&.strip
|
|
201
|
-
@blank_link_rel = normalized
|
|
201
|
+
@blank_link_rel = normalized && normalized.empty? ? nil : normalized
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
sig { params(value: T.untyped).returns(ActiveMail::ComponentMap) }
|
data/lib/activemail/version.rb
CHANGED
data/lib/activemail.rb
CHANGED
|
@@ -73,7 +73,7 @@ module ActiveMail
|
|
|
73
73
|
|
|
74
74
|
# Object, not String: ActionView::OutputBuffer is no longer a String since Rails 7.1.
|
|
75
75
|
sig { params(html_string: Object).returns(String) }
|
|
76
|
-
def
|
|
76
|
+
def transpile(html_string)
|
|
77
77
|
raws, str = extract_raws(normalize_input(html_string))
|
|
78
78
|
parse_cmd = ::ActiveMail.full_document?(str) ? :parse : :fragment
|
|
79
79
|
html = Nokogiri::HTML.public_send(parse_cmd, str)
|