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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45cf8d77d0e4e10e7669e5cfeaa843b174a495b900d6bc5ffc83b2af18bfb11d
4
- data.tar.gz: 4b750b051e3354ffc5eeac01e71df54f9bc724b6d3c00ab2d160845a70396db7
3
+ metadata.gz: 47993a9061efeb2fe36ded1328f98d53eabe7bd22c3b689f962df99b249a5f95
4
+ data.tar.gz: 68a05bc3eb6520e119c94f50dc39ea5b6135444bbf5ff7df0d02f1d00c4f0259
5
5
  SHA512:
6
- metadata.gz: aebffed9184e53716057ec140ea66c71ebca81cac9d15ca3cd60b20da4f7fdfc0da8f5fa599e3aa18a08b7d75400295be8b56c1a776cc36465ac412646d515f0
7
- data.tar.gz: a9975ff0585326d018de39b7d651515d788f792465ac49f8d147034df5e7abc6e9fbcd1a5e4fb717612e59969efac36a5799bc8d1e35e698146cee7afb59f287
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
- 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.
@@ -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&.empty? ? nil : 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) }
@@ -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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Advitam