Skip to content

Commit 3a6ee9a

Browse files
committed
🔖 Prepare release v1.0.1
⚡️ A message from a fellow meat-based-AI ⚡️ - [❤️] Finely-crafted open-source tools like token-resolver (& many more) require time and effort. - [❤️] Though I adore my work, it lacks financial sustainability. - [❤️] Please, help me continue enhancing your tools by becoming a sponsor: - [💲] https://liberapay.com/pboling/donate - [💲] https://github.com/sponsors/pboling
1 parent f3cd96b commit 3a6ee9a

37 files changed

+2382
-2323
lines changed

CHANGELOG.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,25 @@ Please file a bug if you notice a violation of semantic versioning.
2020

2121
### Added
2222

23+
### Changed
24+
25+
### Deprecated
26+
27+
### Removed
28+
29+
### Fixed
30+
31+
### Security
32+
33+
## [1.0.1] - 2026-02-22
34+
35+
- TAG: [v1.0.1][1.0.1t]
36+
- COVERAGE: 98.13% -- 263/268 lines in 10 files
37+
- BRANCH COVERAGE: 91.18% -- 62/68 branches in 10 files
38+
- 96.77% documented
39+
40+
### Added
41+
2342
- `Config#segment_pattern` option — a parslet character class constraining which characters
2443
are valid inside token segments (default: `"[A-Za-z0-9_]"`). This prevents false positive
2544
token matches against Ruby block parameters (`{ |x| expr }`), shell variable expansion
@@ -28,12 +47,6 @@ Please file a bug if you notice a violation of semantic versioning.
2847
- `Resolve#resolve` now validates replacement keys against the config's `segment_pattern` and
2948
raises `ArgumentError` if a key contains characters that the grammar would never parse.
3049

31-
### Changed
32-
33-
### Deprecated
34-
35-
### Removed
36-
3750
### Fixed
3851

3952
- **False positive token matches** — the grammar previously used `any` (match any character)
@@ -44,8 +57,6 @@ Please file a bug if you notice a violation of semantic versioning.
4457
roundtripping, silently corrupting source files. The grammar now uses
4558
`match(segment_pattern)` instead of `any`, limiting segments to word characters by default.
4659

47-
### Security
48-
4960
## [1.0.0] - 2026-02-21
5061

5162
- TAG: [v1.0.0][1.0.0t]
@@ -59,6 +70,8 @@ Please file a bug if you notice a violation of semantic versioning.
5970

6071
### Security
6172

62-
[Unreleased]: https://github.com/kettle-rb/token-resolver/compare/v1.0.0...HEAD
73+
[Unreleased]: https://github.com/kettle-rb/token-resolver/compare/v1.0.1...HEAD
74+
[1.0.1]: https://github.com/kettle-rb/token-resolver/compare/v1.0.0...v1.0.1
75+
[1.0.1t]: https://github.com/kettle-rb/token-resolver/releases/tag/v1.0.1
6376
[1.0.0]: https://github.com/kettle-rb/ast-merge/compare/e0e299cad6e6914d512845c71df6b7ac8009e5ac...v1.0.0
6477
[1.0.0t]: https://github.com/kettle-rb/ast-merge/tags/v1.0.0

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GIT
1313
PATH
1414
remote: .
1515
specs:
16-
token-resolver (1.0.0)
16+
token-resolver (1.0.1)
1717
parslet (~> 2.0)
1818
version_gem (~> 1.1, >= 1.1.9)
1919

@@ -458,7 +458,7 @@ CHECKSUMS
458458
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
459459
timecop (0.9.10) sha256=12ba45ce57cdcf6b1043cb6cdffa6381fd89ce10d369c28a7f6f04dc1b0cd8eb
460460
timecop-rspec (1.0.3) sha256=005f14841bb606dcaefb060e321b5388e2e59537742bee8b3a9a9a40e598fab9
461-
token-resolver (1.0.0)
461+
token-resolver (1.0.1)
462462
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
463463
ttfunk (1.8.0) sha256=a7cbc7e489cc46e979dde04d34b5b9e4f5c8f1ee5fc6b1a7be39b829919d20ca
464464
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ This prevents false positives with syntax that structurally resembles tokens but
176176

177177
```ruby
178178
# These are NOT parsed as tokens (spaces, punctuation disqualify them):
179-
'items.map { |x| x.to_s }' # Ruby block parameters
180-
'${CLASSPATH:+:$CLASSPATH}' # Shell variable expansion
181-
'cert_chain.select! { |fp| File.exist? }' # Ruby block with expressions
179+
"items.map { |x| x.to_s }" # Ruby block parameters
180+
"${CLASSPATH:+:$CLASSPATH}" # Shell variable expansion
181+
"cert_chain.select! { |fp| File.exist? }" # Ruby block with expressions
182182
```
183183

184184
If you need different characters in your token segments, provide a custom pattern:
@@ -654,7 +654,7 @@ Thanks for RTFM. ☺️
654654
[📌gitmoji]: https://gitmoji.dev
655655
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
656656
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
657-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.258-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
657+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.268-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
658658
[🔐security]: SECURITY.md
659659
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
660660
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year

docs/Token.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h2>Defined Under Namespace</h2>
107107
</div>
108108

109109
<div id="footer">
110-
Generated on Sat Feb 21 05:58:48 2026 by
110+
Generated on Sun Feb 22 03:06:40 2026 by
111111
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112112
0.9.38 (ruby-4.0.1).
113113
</div>

0 commit comments

Comments
 (0)