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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45cf8d77d0e4e10e7669e5cfeaa843b174a495b900d6bc5ffc83b2af18bfb11d
4
- data.tar.gz: 4b750b051e3354ffc5eeac01e71df54f9bc724b6d3c00ab2d160845a70396db7
3
+ metadata.gz: 3ad6c37435b356eecce625c0d03128d400a0684893d9fe74794038bd58d93e6e
4
+ data.tar.gz: 2bff13d848732be8df3643cc386c64b72dc0bde713a0b7df6873e97d55a41877
5
5
  SHA512:
6
- metadata.gz: aebffed9184e53716057ec140ea66c71ebca81cac9d15ca3cd60b20da4f7fdfc0da8f5fa599e3aa18a08b7d75400295be8b56c1a776cc36465ac412646d515f0
7
- data.tar.gz: a9975ff0585326d018de39b7d651515d788f792465ac49f8d147034df5e7abc6e9fbcd1a5e4fb717612e59969efac36a5799bc8d1e35e698146cee7afb59f287
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
- A fork and modernization of the now-unmaintained `inky-rb`. Not affiliated with Rails core.
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 }).release_the_kraken(source)
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.release_the_kraken('<container><row><columns>Hi</columns></row></container>')
360
- ActiveMail::Core.new(column_count: 24, container_width: 480).release_the_kraken(source)
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.
@@ -37,7 +37,7 @@ module ActiveMail
37
37
  else
38
38
  engine_handler.call(template)
39
39
  end
40
- "ActiveMail::Core.new.release_the_kraken(begin; #{compiled_source};end)"
40
+ "ActiveMail::Core.new.transpile(begin; #{compiled_source};end)"
41
41
  end
42
42
 
43
43
  module Composer
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module ActiveMail
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
  end
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 release_the_kraken(html_string)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Advitam