<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://bridgetownrb.com/" version="2.2.2">Bridgetown</generator><link href="https://peterboling.com/feed/token_resolver.xml" rel="self" type="application/atom+xml" /><link href="https://peterboling.com/" rel="alternate" type="text/html" /><updated>2026-11-15T23:03:36+00:00</updated><id>https://peterboling.com/feed/token_resolver.xml</id><title type="html">Peter Boling | Token_resolver</title><subtitle>Yet Another Paradigm by Peter Boling, featuring technical blog posts about Ruby, JavaScript, TypeScript, Go, Python, DevOps, and various open source projects. Ramblings, mumblings, cv/resume, technical blog, and documentation for many popular, and unpopular, RubyGems and other FLOSS projects, including oauth2, omniauth-identity, sanitize_email, debug_logging, flag_shih_tzu, gem_bench, etc. Semi-lifely state-of-the-petris updates.</subtitle><author><name>Peter Boling</name><email>floss@galtzo.com</email></author><entry><title type="html">token-resolver v1.0.2 released!</title><link href="https://peterboling.com/token_resolver/token-resolver-v1.0.2-released!/" rel="alternate" type="text/html" title="token-resolver v1.0.2 released!" /><published>2026-02-22T12:02:13+00:00</published><updated>2026-02-22T12:02:13+00:00</updated><id>https://peterboling.com/token_resolver/token-resolver-v1.0.2-released!/</id><content type="html" xml:base="https://peterboling.com/token_resolver/token-resolver-v1.0.2-released!/">&lt;h2 id=&quot;102---2026-02-22&quot;&gt;&lt;a href=&quot;https://github.com/kettle-rb/token-resolver/compare/v1.0.1...v1.0.2&quot;&gt;1.0.2&lt;/a&gt; - 2026-02-22&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;TAG: &lt;a href=&quot;https://github.com/kettle-rb/token-resolver/releases/tag/v1.0.2&quot;&gt;v1.0.2&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;COVERAGE: 98.13% – 263/268 lines in 10 files&lt;/li&gt;
  &lt;li&gt;BRANCH COVERAGE: 91.18% – 62/68 branches in 10 files&lt;/li&gt;
  &lt;li&gt;96.77% documented&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Benchmarking tools&lt;/strong&gt; — Performance comparison suite comparing &lt;code class=&quot;highlighter-rouge&quot;&gt;token-resolver&lt;/code&gt; against simpler
alternatives (&lt;code class=&quot;highlighter-rouge&quot;&gt;String#gsub&lt;/code&gt; and &lt;code class=&quot;highlighter-rouge&quot;&gt;Kernel#sprintf&lt;/code&gt;):
    &lt;ul&gt;
      &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;benchmarks/comparison.rb&lt;/code&gt; — Comprehensive benchmark script measuring iterations per second
across four realistic scenarios (simple replacement, moderate complexity, high complexity,
and large documents with sparse tokens)&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;gemfiles/modular/benchmark/ips.gemfile&lt;/code&gt; — Development dependency for &lt;code class=&quot;highlighter-rouge&quot;&gt;benchmark-ips&lt;/code&gt; gem&lt;/li&gt;
      &lt;li&gt;Rake tasks: &lt;code class=&quot;highlighter-rouge&quot;&gt;rake bench:comparison&lt;/code&gt; (run comparison), &lt;code class=&quot;highlighter-rouge&quot;&gt;rake bench:list&lt;/code&gt; (list benchmarks),
&lt;code class=&quot;highlighter-rouge&quot;&gt;rake bench:run&lt;/code&gt; (run all benchmarks), &lt;code class=&quot;highlighter-rouge&quot;&gt;rake bench&lt;/code&gt; (alias)&lt;/li&gt;
      &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;BENCHMARK.md&lt;/code&gt; — Results and analysis showing token-resolver is 100-3000x slower due to
PEG parsing, validation, and AST building; includes guidance on when to use each approach
and real-world performance context&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Official Discord 👉️ &lt;a href=&quot;https://discord.gg/3qme4XHNKN&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/1373797679469170758?style=flat&quot; alt=&quot;Live Chat on Discord&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many paths lead to being a sponsor or a backer of this project. Are you on such a path?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://opencollective.com/kettle-rb#backer&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/backers/badge.svg?style=flat&quot; alt=&quot;OpenCollective Backers&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://opencollective.com/kettle-rb#sponsor&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/sponsors/badge.svg?style=flat&quot; alt=&quot;OpenCollective Sponsors&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/sponsors/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&amp;amp;logo=github&quot; alt=&quot;Sponsor Me on Github&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://liberapay.com/pboling/donate&quot;&gt;&lt;img src=&quot;https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&amp;amp;color=a51611&amp;amp;style=flat&quot; alt=&quot;Liberapay Goal Progress&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.paypal.com/paypalme/peterboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&amp;amp;logo=paypal&quot; alt=&quot;Donate on PayPal&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.buymeacoffee.com/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Buy me a coffee&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://polar.sh/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/polar-donate-a51611.svg?style=flat&quot; alt=&quot;Donate on Polar&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://ko-fi.com/O5O86SNP4&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts at ko-fi.com&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://patreon.com/galtzo&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts using Patreon&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><category term="release" /><category term="token-resolver" /><category term="v1.0.2" /></entry><entry><title type="html">token-resolver v1.0.1 released!</title><link href="https://peterboling.com/token_resolver/token-resolver-v1.0.1-released!/" rel="alternate" type="text/html" title="token-resolver v1.0.1 released!" /><published>2026-02-22T10:23:06+00:00</published><updated>2026-02-22T10:23:06+00:00</updated><id>https://peterboling.com/token_resolver/token-resolver-v1.0.1-released!/</id><content type="html" xml:base="https://peterboling.com/token_resolver/token-resolver-v1.0.1-released!/">&lt;h2 id=&quot;101---2026-02-22&quot;&gt;&lt;a href=&quot;https://github.com/kettle-rb/token-resolver/compare/v1.0.0...v1.0.1&quot;&gt;1.0.1&lt;/a&gt; - 2026-02-22&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;TAG: &lt;a href=&quot;https://github.com/kettle-rb/token-resolver/releases/tag/v1.0.1&quot;&gt;v1.0.1&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;COVERAGE: 98.13% – 263/268 lines in 10 files&lt;/li&gt;
  &lt;li&gt;BRANCH COVERAGE: 91.18% – 62/68 branches in 10 files&lt;/li&gt;
  &lt;li&gt;96.77% documented&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;Config#segment_pattern&lt;/code&gt; option — a parslet character class constraining which characters
are valid inside token segments (default: &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;[A-Za-z0-9_]&quot;&lt;/code&gt;). This prevents false positive
token matches against Ruby block parameters (&lt;code class=&quot;highlighter-rouge&quot;&gt;{ |x| expr }&lt;/code&gt;), shell variable expansion
(&lt;code class=&quot;highlighter-rouge&quot;&gt;${VAR:+val}&lt;/code&gt;), and other syntax that structurally resembles tokens but contains spaces
or punctuation in the “segments”.&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;Resolve#resolve&lt;/code&gt; now validates replacement keys against the config’s &lt;code class=&quot;highlighter-rouge&quot;&gt;segment_pattern&lt;/code&gt; and
raises &lt;code class=&quot;highlighter-rouge&quot;&gt;ArgumentError&lt;/code&gt; if a key contains characters that the grammar would never parse.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;fixed&quot;&gt;Fixed&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;False positive token matches&lt;/strong&gt; — the grammar previously used &lt;code class=&quot;highlighter-rouge&quot;&gt;any&lt;/code&gt; (match any character)
for segment content, which allowed spaces, operators, and punctuation inside token segments.
This caused Ruby block syntax like &lt;code class=&quot;highlighter-rouge&quot;&gt;{ |fp| File.exist?(fp) }&lt;/code&gt; and shell expansion like
&lt;code class=&quot;highlighter-rouge&quot;&gt;${CLASSPATH:+:$CLASSPATH}&lt;/code&gt; to be incorrectly parsed as tokens. With multi-separator configs
(&lt;code class=&quot;highlighter-rouge&quot;&gt;[&quot;|&quot;, &quot;:&quot;]&lt;/code&gt;), the second &lt;code class=&quot;highlighter-rouge&quot;&gt;|&lt;/code&gt; was reconstructed as &lt;code class=&quot;highlighter-rouge&quot;&gt;:&lt;/code&gt; during &lt;code class=&quot;highlighter-rouge&quot;&gt;on_missing: :keep&lt;/code&gt;
roundtripping, silently corrupting source files. The grammar now uses
&lt;code class=&quot;highlighter-rouge&quot;&gt;match(segment_pattern)&lt;/code&gt; instead of &lt;code class=&quot;highlighter-rouge&quot;&gt;any&lt;/code&gt;, limiting segments to word characters by default.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Official Discord 👉️ &lt;a href=&quot;https://discord.gg/3qme4XHNKN&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/1373797679469170758?style=flat&quot; alt=&quot;Live Chat on Discord&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many paths lead to being a sponsor or a backer of this project. Are you on such a path?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://opencollective.com/kettle-rb#backer&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/backers/badge.svg?style=flat&quot; alt=&quot;OpenCollective Backers&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://opencollective.com/kettle-rb#sponsor&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/sponsors/badge.svg?style=flat&quot; alt=&quot;OpenCollective Sponsors&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/sponsors/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&amp;amp;logo=github&quot; alt=&quot;Sponsor Me on Github&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://liberapay.com/pboling/donate&quot;&gt;&lt;img src=&quot;https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&amp;amp;color=a51611&amp;amp;style=flat&quot; alt=&quot;Liberapay Goal Progress&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.paypal.com/paypalme/peterboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&amp;amp;logo=paypal&quot; alt=&quot;Donate on PayPal&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.buymeacoffee.com/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Buy me a coffee&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://polar.sh/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/polar-donate-a51611.svg?style=flat&quot; alt=&quot;Donate on Polar&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://ko-fi.com/O5O86SNP4&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts at ko-fi.com&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://patreon.com/galtzo&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts using Patreon&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><category term="release" /><category term="token-resolver" /><category term="v1.0.1" /></entry><entry><title type="html">token-resolver v1.0.0 released!</title><link href="https://peterboling.com/token_resolver/token-resolver-v1.0.0-released!/" rel="alternate" type="text/html" title="token-resolver v1.0.0 released!" /><published>2026-02-21T13:14:27+00:00</published><updated>2026-02-21T13:14:27+00:00</updated><id>https://peterboling.com/token_resolver/token-resolver-v1.0.0-released!/</id><content type="html" xml:base="https://peterboling.com/token_resolver/token-resolver-v1.0.0-released!/">&lt;h2 id=&quot;100---2026-02-21&quot;&gt;&lt;a href=&quot;https://github.com/kettle-rb/ast-merge/compare/e0e299cad6e6914d512845c71df6b7ac8009e5ac...v1.0.0&quot;&gt;1.0.0&lt;/a&gt; - 2026-02-21&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;TAG: &lt;a href=&quot;https://github.com/kettle-rb/ast-merge/tags/v1.0.0&quot;&gt;v1.0.0&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;COVERAGE: 97.67% – 252/258 lines in 10 files&lt;/li&gt;
  &lt;li&gt;BRANCH COVERAGE: 89.39% – 59/66 branches in 10 files&lt;/li&gt;
  &lt;li&gt;96.72% documented&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;added&quot;&gt;Added&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;Initial release&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;security&quot;&gt;Security&lt;/h3&gt;

&lt;p&gt;Official Discord 👉️ &lt;a href=&quot;https://discord.gg/3qme4XHNKN&quot;&gt;&lt;img src=&quot;https://img.shields.io/discord/1373797679469170758?style=flat&quot; alt=&quot;Live Chat on Discord&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Many paths lead to being a sponsor or a backer of this project. Are you on such a path?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://opencollective.com/kettle-rb#backer&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/backers/badge.svg?style=flat&quot; alt=&quot;OpenCollective Backers&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://opencollective.com/kettle-rb#sponsor&quot;&gt;&lt;img src=&quot;https://opencollective.com/kettle-rb/sponsors/badge.svg?style=flat&quot; alt=&quot;OpenCollective Sponsors&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/sponsors/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&amp;amp;logo=github&quot; alt=&quot;Sponsor Me on Github&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://liberapay.com/pboling/donate&quot;&gt;&lt;img src=&quot;https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&amp;amp;color=a51611&amp;amp;style=flat&quot; alt=&quot;Liberapay Goal Progress&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://www.paypal.com/paypalme/peterboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&amp;amp;logo=paypal&quot; alt=&quot;Donate on PayPal&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.buymeacoffee.com/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Buy me a coffee&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://polar.sh/pboling&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/polar-donate-a51611.svg?style=flat&quot; alt=&quot;Donate on Polar&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://ko-fi.com/O5O86SNP4&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts at ko-fi.com&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://patreon.com/galtzo&quot;&gt;&lt;img src=&quot;https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat&quot; alt=&quot;Donate to my FLOSS efforts using Patreon&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content><category term="release" /><category term="token-resolver" /><category term="v1.0.0" /></entry><entry><title type="html">Introducing token-resolver</title><link href="https://peterboling.com/token_resolver/introducing-token-resolver/" rel="alternate" type="text/html" title="Introducing token-resolver" /><published>2026-02-21T00:00:00+00:00</published><updated>2026-02-21T00:00:00+00:00</updated><id>https://peterboling.com/token_resolver/introducing-token-resolver/</id><content type="html" xml:base="https://peterboling.com/token_resolver/introducing-token-resolver/">&lt;p&gt;Token::Resolver recognizes structured tokens and replaces them from a supplied map. Delimiters, separators, and segment counts are configurable, so callers can define a token syntax for their own templates. The README demonstrates resolving &lt;code class=&quot;highlighter-rouge&quot;&gt;{KJ|NAME}&lt;/code&gt;-style placeholders in otherwise ordinary text.&lt;/p&gt;

&lt;p&gt;Read the &lt;a href=&quot;https://github.com/kettle-dev/token-resolver/blob/main/README.md&quot;&gt;upstream README&lt;/a&gt; for installation and usage, or browse the &lt;a href=&quot;https://github.com/kettle-dev/token-resolver&quot;&gt;project repository&lt;/a&gt;.&lt;/p&gt;</content><category term="introduction" /><category term="token-resolver" /></entry></feed>