activemail 1.2.0 → 1.2.1
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 +7 -0
- data/README.md +5 -5
- 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: 3ad6c37435b356eecce625c0d03128d400a0684893d9fe74794038bd58d93e6e
|
|
4
|
+
data.tar.gz: 2bff13d848732be8df3643cc386c64b72dc0bde713a0b7df6873e97d55a41877
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b93e6c7efbeba96471a2989e74abf7308896255fa6338a25adadaaa1bdbde68625c4adb210b13cabf1752cd596d91168d19fe86ff77b4de00cb7e2d144aba4aa
|
|
7
|
+
data.tar.gz: 55fafc3be6f04051d719de0735bc3f89a7689357913da9da15242130a7e80fbd54ee65574397bcf509c873a2a1ef21000a951b00dafd8353c3ff2734941001dd
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ 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.1] - 2026-07-01
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Renamed the internal `ActiveMail::Core#release_the_kraken` to `#transpile`.
|
|
13
|
+
- Neutralised test fixtures (example URLs) and severed the upstream fork link.
|
|
14
|
+
|
|
8
15
|
## [1.2.0] - 2026-07-01
|
|
9
16
|
|
|
10
17
|
### 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.
|
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)
|