token-resolver 2.0.5 → 2.0.7

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: abc6fc0d34980ecdf3f6ed2c286902a093653231b9c679b8ee6cfa5b9b45db4c
4
- data.tar.gz: 8f33331dffde150b5538205d80f08117b0d7aa2926fc49c4b05730192bc15f23
3
+ metadata.gz: b111ad1d02caaa4d93507211269dce00dac19e83dfae2e489da782086423f61f
4
+ data.tar.gz: 637c1d88093732d63c5c7c8a4f188f83d447007d10472f65dc8be2c8b1e83e30
5
5
  SHA512:
6
- metadata.gz: b56b597beec579cd58c407cec9a9b9088863fc53422b694d5960c3c36736ec4a6aac7f2ccc301f52bed32681d876a72a988e0d941ecdc3ca9a6fae26b2fe0efb
7
- data.tar.gz: 6e38cf9a5d89b7970ef64bd8fb7114824c3aa001a1560d9387c65b15e5d93c1a3121628d04022d91d8379c7ec7c1000ae3ca0b9bba84c3766ad99867cbe05e22
6
+ metadata.gz: bfd624a52b306d05b85ccd5c2b2947f1ea28715ac76e43623a7d444e2747d5578036974969b2e2392500ba5492d99bccd8984b28da598196a123ba0f4e0fdd01
7
+ data.tar.gz: bbbaf464313eac60e63ad0909e11e00570d2bd02dec45df5856dee06855eecb3ad6f3b7543e10ff41546efee06c2705d3bd1755cdafb20574641d52ac8f78b12
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,84 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [2.0.7] - 2026-07-31
34
+
35
+ - TAG: [v2.0.7][2.0.7t]
36
+ - COVERAGE: 99.62% -- 265/266 lines in 11 files
37
+ - BRANCH COVERAGE: 100.00% -- 64/64 branches in 11 files
38
+ - 96.77% documented
39
+
40
+ ### Added
41
+
42
+ - kettle-jem-template-20260729-005 - Gemspec metadata now publishes this
43
+ project's RubyForum tag as `mailing_list_uri`, and support docs link to the
44
+ tagged RubyForum community alongside Discord.
45
+
46
+ ### Fixed
47
+
48
+ - kettle-jem-template-20260728-004 - Generated dep-heads workflows now use the
49
+ setup-ruby Bundler install path for direct appraisal Gemfiles, avoiding rv
50
+ lockfile parser failures on Git and path dependencies.
51
+ - kettle-jem-template-20260728-005 - VersionGem bootstrap now creates the
52
+ missing canonical version spec when a project only has shim namespace version
53
+ specs.
54
+ - kettle-jem-template-20260729-001 - Generated JRuby 9.4 workflows now use the
55
+ legacy manual bundle install path, avoiding setup-time Bundler full-index
56
+ failures against `gem.coop`.
57
+ - kettle-jem-template-20260729-002 - VersionGem bootstrap now preserves
58
+ and templates dedicated `version_gem.rb` entrypoints even when the gemspec
59
+ dependency is intentionally omitted, and generated anonymous-loader specs
60
+ cover both `version.rb` and `version_gem.rb`.
61
+ - kettle-jem-template-20260729-003 - Old-Ruby gems below the VersionGem runtime
62
+ floor now get managed minimal `version.rb` files and anonymous-loader version
63
+ specs without adding `version_gem`.
64
+ - kettle-jem-template-20260730-001 - Gemspec package file enumeration now runs
65
+ relative to the gemspec directory, so release package contents stay correct
66
+ even when the gemspec is loaded from another working directory.
67
+
68
+ ## [2.0.6] - 2026-07-28
69
+
70
+ - TAG: [v2.0.6][2.0.6t]
71
+ - COVERAGE: 99.62% -- 265/266 lines in 11 files
72
+ - BRANCH COVERAGE: 100.00% -- 64/64 branches in 11 files
73
+ - 96.77% documented
74
+
75
+ ### Added
76
+
77
+ - kettle-jem-template-20260726-001 - Projects now include YARD lint
78
+ configuration and documentation dependencies so documentation issues fail
79
+ before generated docs are refreshed.
80
+
81
+ - kettle-jem-template-20260727-001 - Spec harness documentation now lists the
82
+ RSpec helpers provided by `kettle-test`.
83
+
84
+ ### Changed
85
+
86
+ - kettle-jem-template-20260725-001 - Release pull request branches beginning
87
+ with `feature/release` now run JRuby and TruffleRuby workflows.
88
+ - kettle-jem-template-20260725-002 - Version specs now use `anonymous_loader` to
89
+ cover `version.rb` without redefining constants, or are removed when version
90
+ specs are not managed for the project.
91
+
92
+ - kettle-jem-template-20260728-001 - Generated Ruby workflows now use clearer
93
+ setup-ruby-flash planning and can prepare appraisal-only jobs without
94
+ installing the main Gemfile bundle.
95
+
96
+ ### Fixed
97
+
98
+ - kettle-jem-template-20260726-002 - Generated version files now document their
99
+ version namespace and constants, reducing warning-only YARD lint output.
100
+
101
+ - kettle-jem-template-20260726-003 - Coverage upload steps now treat Coveralls,
102
+ QLTY, and Codecov as optional, so provider outages do not fail CI when local
103
+ coverage thresholds still pass.
104
+ - kettle-jem-template-20260728-002 - Generated RuboCop configs now ignore the
105
+ same `gemfiles/vendor/bundle` tree as `.gitignore`, so vendored dependency
106
+ installs are not reported as project lint debt.
107
+ - kettle-jem-template-20260728-003 - Generated dep-heads workflows now run
108
+ TruffleRuby jobs with current RubyGems and Bundler, avoiding setup failures
109
+ before the test suite starts.
110
+
33
111
  ## [2.0.5] - 2026-07-21
34
112
 
35
113
  - TAG: [v2.0.5][2.0.5t]
@@ -235,7 +313,11 @@ Please file a bug if you notice a violation of semantic versioning.
235
313
 
236
314
  ### Security
237
315
 
238
- [Unreleased]: https://github.com/kettle-dev/token-resolver/compare/v2.0.5...HEAD
316
+ [Unreleased]: https://github.com/kettle-dev/token-resolver/compare/v2.0.7...HEAD
317
+ [2.0.7]: https://github.com/kettle-dev/token-resolver/compare/v2.0.6...v2.0.7
318
+ [2.0.7t]: https://github.com/kettle-dev/token-resolver/releases/tag/v2.0.7
319
+ [2.0.6]: https://github.com/kettle-dev/token-resolver/compare/v2.0.5...v2.0.6
320
+ [2.0.6t]: https://github.com/kettle-dev/token-resolver/releases/tag/v2.0.6
239
321
  [2.0.5]: https://github.com/kettle-dev/token-resolver/compare/v2.0.4...v2.0.5
240
322
  [2.0.5t]: https://github.com/kettle-dev/token-resolver/releases/tag/v2.0.5
241
323
  [2.0.4]: https://github.com/kettle-dev/token-resolver/compare/v2.0.3...v2.0.4
data/LICENSE.md CHANGED
@@ -3,8 +3,8 @@
3
3
  This project is made available under the following licenses.
4
4
  Choose the option that best fits your use case:
5
5
 
6
- - [AGPL-3.0-only](AGPL-3.0-only.md)
7
- - [PolyForm-Small-Business-1.0.0](PolyForm-Small-Business-1.0.0.md)
6
+ - [AGPL-3.0-only](https://github.com/kettle-dev/token-resolver/blob/main/AGPL-3.0-only.md)
7
+ - [PolyForm-Small-Business-1.0.0](https://github.com/kettle-dev/token-resolver/blob/main/PolyForm-Small-Business-1.0.0.md)
8
8
 
9
9
  If none of the above licenses fit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
10
10
 
data/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  # 🪙 Token::Resolver
4
4
 
5
- [![Version][👽versioni]][👽version] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: AGPL-3.0-only OR PolyForm-Small-Business-1.0.0][📄license-img]][📄license] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf]
5
+ [![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: AGPL-3.0-only OR PolyForm-Small-Business-1.0.0][📄license-img]][📄license] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf]
6
6
 
7
- `if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know][✉️discord-invite], as I may have missed the [discord notification][✉️discord-invite].
7
+ `if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know on Discord][✉️discord-invite] or [RubyForum][✉️ruby-forum], as I may have missed the notification.
8
8
 
9
9
  ---
10
10
 
@@ -43,7 +43,7 @@ result = Token::Resolver.resolve(
43
43
  | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
44
44
  | Works with MRI Ruby 3 | [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
45
45
  | Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork] [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor] |
46
- | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on Github.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
46
+ | Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
47
47
  | Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
48
48
  | Compliance | [![License: AGPL-3.0-only OR PolyForm-Small-Business-1.0.0][📄license-img]][📄license] [![Apache license compatibility: Category X][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
49
49
  | Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
@@ -83,17 +83,14 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
83
83
  <details markdown="1">
84
84
  <summary>Find this repo on federated forges (Coming soon!)</summary>
85
85
 
86
- | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI | Discussions |
87
- |-------------------------------------------------|-----------------------------------------------------------------------|---------------------------|--------------------------|---------------------------|--------------------------|------------------------------|
88
- | 🧪 [kettle-dev/token-resolver on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix | ➖ |
89
- | 🧊 [kettle-dev/token-resolver on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix | ➖ |
90
- | 🐙 [kettle-dev/token-resolver on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix | [💚][gh-discussions] |
91
- | 🎮️ [Discord Server][✉️discord-invite] | [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] | [Let's][✉️discord-invite] | [talk][✉️discord-invite] | [about][✉️discord-invite] | [this][✉️discord-invite] | [library!][✉️discord-invite] |
86
+ | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
87
+ |-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
88
+ | 🧪 [kettle-dev/token-resolver on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
89
+ | 🧊 [kettle-dev/token-resolver on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
90
+ | 🐙 [kettle-dev/token-resolver on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
92
91
 
93
92
  </details>
94
93
 
95
- [gh-discussions]: https://github.com/kettle-dev/token-resolver/discussions
96
-
97
94
  ### Enterprise Support [![Tidelift](https://tidelift.com/badges/package/rubygems/token-resolver)](https://tidelift.com/subscription/pkg/rubygems-token-resolver?utm_source=rubygems-token-resolver&utm_medium=referral&utm_campaign=readme)
98
95
 
99
96
  Available as part of the Tidelift Subscription.
@@ -111,6 +108,7 @@ The maintainers of this and thousands of other packages are working with Tidelif
111
108
 
112
109
  Alternatively:
113
110
 
111
+ - [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
114
112
  - [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
115
113
  - [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork]
116
114
  - [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor]
@@ -331,7 +329,7 @@ See [CHANGELOG.md][📌changelog] for a list of releases.
331
329
 
332
330
  ## 📄 License
333
331
 
334
- The gem is available under the following licenses: [AGPL-3.0-only](AGPL-3.0-only.md), [PolyForm-Small-Business-1.0.0](PolyForm-Small-Business-1.0.0.md).
332
+ The gem is available under the following licenses: [AGPL-3.0-only](https://github.com/kettle-dev/token-resolver/blob/main/AGPL-3.0-only.md), [PolyForm-Small-Business-1.0.0](https://github.com/kettle-dev/token-resolver/blob/main/PolyForm-Small-Business-1.0.0.md).
335
333
  See [LICENSE.md][📄license] for details.
336
334
 
337
335
  If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
@@ -356,11 +354,12 @@ I'm hoping to be able to pay for my kids' health insurance this month,
356
354
  so if you value the work I am doing, I need your support.
357
355
  Please consider sponsoring me or the project.
358
356
 
359
- To join the community or get help 👇️ Join the Discord.
357
+ To join the community or get help, use the RubyForum or Discord.
360
358
 
359
+ [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
361
360
  [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
362
361
 
363
- To say "thanks!" ☝️ Join the Discord or 👇️ send money.
362
+ To say "thanks!" ☝️ Join the community or 👇️ send money.
364
363
 
365
364
  [![Sponsor kettle-dev/token-resolver on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
366
365
 
@@ -401,8 +400,9 @@ Thanks for RTFM. ☺️
401
400
  [✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
402
401
  [✉️ruby-friends-img]: https://img.shields.io/badge/daily.dev-%F0%9F%92%8E_Ruby_Friends-0A0A0A?style=for-the-badge&logo=dailydotdev&logoColor=white
403
402
  [✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
404
- [✉️ruby-forum-img]: https://img.shields.io/badge/RubyForum-Help-CC342D?style=for-the-badge&logo=ruby&logoColor=white
405
- [✉️ruby-forum]: https://www.rubyforum.org/c/help/8
403
+ [✉️ruby-forum-top-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=flat&logo=discourse&label=Ruby%20Users%20Forum
404
+ [✉️ruby-forum-img]: https://img.shields.io/discourse/topics?server=https%3A%2F%2Fwww.rubyforum.org&style=for-the-badge&logo=discourse&label=Ruby%20Users%20Forum
405
+ [✉️ruby-forum]: https://www.rubyforum.org/tag/kettle-dev
406
406
 
407
407
  [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
408
408
  [⛳️gem-namespace]: https://github.com/kettle-dev/token-resolver
@@ -448,7 +448,7 @@ Thanks for RTFM. ☺️
448
448
  [📜src-gl]: https://gitlab.com/kettle-dev/token-resolver
449
449
  [📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
450
450
  [📜src-cb]: https://codeberg.org/kettle-dev/token-resolver
451
- [📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=Github&logoColor=green
451
+ [📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
452
452
  [📜src-gh]: https://github.com/kettle-dev/token-resolver
453
453
  [📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
454
454
  [📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
@@ -27,7 +27,6 @@ module Token
27
27
  # separators: ["|", ":"],
28
28
  # )
29
29
  # # First boundary uses "|", second uses ":", rest repeat ":"
30
- #
31
30
  class Config
32
31
  # @return [String] Opening delimiter for tokens
33
32
  attr_reader :pre
@@ -18,7 +18,6 @@ module Token
18
18
  # @example Fast-path for text without tokens
19
19
  # doc = Token::Resolver::Document.new("No tokens here")
20
20
  # doc.text_only? # => true
21
- #
22
21
  class Document
23
22
  # @return [Array<Node::Text, Node::Token>] Parsed nodes
24
23
  attr_reader :nodes
@@ -17,7 +17,6 @@ module Token
17
17
  #
18
18
  # @note The raw parslet tree contains one :text entry per character.
19
19
  # Use Transform to coalesce these into proper Text nodes.
20
- #
21
20
  class Grammar
22
21
  # Cache of built parser classes, keyed by Config.
23
22
  # Config is frozen and implements #hash/#eql?, so this is safe.
@@ -12,7 +12,6 @@ module Token
12
12
  # text = Token::Resolver::Node::Text.new("Hello ")
13
13
  # text.to_s # => "Hello "
14
14
  # text.content # => "Hello "
15
- #
16
15
  class Text
17
16
  # @return [String] The text content
18
17
  attr_reader :content
@@ -23,7 +23,6 @@ module Token
23
23
  # token = Token::Resolver::Node::Token.new(["KJ", "SECTION", "NAME"], config)
24
24
  # token.key # => "KJ|SECTION:NAME"
25
25
  # token.to_s # => "{KJ|SECTION:NAME}"
26
- #
27
26
  class Token
28
27
  # @return [Array<String>] The token segments
29
28
  attr_reader :segments
@@ -23,7 +23,6 @@ module Token
23
23
  # resolver = Resolve.new(on_missing: :remove)
24
24
  # resolver.resolve(doc, {})
25
25
  # # => "Hello !"
26
- #
27
26
  class Resolve
28
27
  VALID_ON_MISSING = %i[raise keep remove].freeze
29
28
 
@@ -15,7 +15,6 @@ module Token
15
15
  # tree = Grammar.build(config).new.parse("Hi {KJ|X}!")
16
16
  # nodes = Transform.apply(tree, config)
17
17
  # # => [Node::Text("Hi "), Node::Token(["KJ", "X"]), Node::Text("!")]
18
- #
19
18
  class Transform
20
19
  class << self
21
20
  # Transform a parslet tree into an array of Text and Token nodes.
@@ -2,9 +2,12 @@
2
2
 
3
3
  module Token
4
4
  module Resolver
5
+ # Version namespace for this gem.
5
6
  module Version
6
- VERSION = "2.0.5"
7
+ # Current gem version.
8
+ VERSION = "2.0.7"
7
9
  end
10
+ # Current gem version exposed at the traditional constant location.
8
11
  VERSION = Version::VERSION # Traditional Constant Location
9
12
  end
10
13
  end
@@ -23,7 +23,6 @@ module Token
23
23
  # {"KJ|NAME" => "World", "KJ|PROJECT" => "token-resolver"}
24
24
  # )
25
25
  # # => "Hello World, welcome to token-resolver!"
26
- #
27
26
  module Resolver
28
27
  # Base error class for all token-resolver operations.
29
28
  # @api public
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: token-resolver
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -77,20 +77,20 @@ dependencies:
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '2.3'
80
+ version: '2.5'
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: 2.3.7
83
+ version: 2.5.13
84
84
  type: :development
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '2.3'
90
+ version: '2.5'
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: 2.3.7
93
+ version: 2.5.13
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: bundler-audit
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +139,26 @@ dependencies:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: 1.0.4
142
+ - !ruby/object:Gem::Dependency
143
+ name: anonymous_loader
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: '0.1'
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: 0.1.3
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '0.1'
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: 0.1.3
142
162
  - !ruby/object:Gem::Dependency
143
163
  name: appraisal2
144
164
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +188,7 @@ dependencies:
168
188
  version: '2.0'
169
189
  - - ">="
170
190
  - !ruby/object:Gem::Version
171
- version: 2.0.11
191
+ version: 2.0.17
172
192
  type: :development
173
193
  prerelease: false
174
194
  version_requirements: !ruby/object:Gem::Requirement
@@ -178,7 +198,7 @@ dependencies:
178
198
  version: '2.0'
179
199
  - - ">="
180
200
  - !ruby/object:Gem::Version
181
- version: 2.0.11
201
+ version: 2.0.17
182
202
  - !ruby/object:Gem::Dependency
183
203
  name: turbo_tests2
184
204
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +208,7 @@ dependencies:
188
208
  version: '3.2'
189
209
  - - ">="
190
210
  - !ruby/object:Gem::Version
191
- version: 3.2.0
211
+ version: 3.2.3
192
212
  type: :development
193
213
  prerelease: false
194
214
  version_requirements: !ruby/object:Gem::Requirement
@@ -198,7 +218,7 @@ dependencies:
198
218
  version: '3.2'
199
219
  - - ">="
200
220
  - !ruby/object:Gem::Version
201
- version: 3.2.0
221
+ version: 3.2.3
202
222
  - !ruby/object:Gem::Dependency
203
223
  name: ruby-progressbar
204
224
  requirement: !ruby/object:Gem::Requirement
@@ -222,7 +242,7 @@ dependencies:
222
242
  version: '1.0'
223
243
  - - ">="
224
244
  - !ruby/object:Gem::Version
225
- version: 1.0.6
245
+ version: 1.0.7
226
246
  type: :development
227
247
  prerelease: false
228
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -232,7 +252,7 @@ dependencies:
232
252
  version: '1.0'
233
253
  - - ">="
234
254
  - !ruby/object:Gem::Version
235
- version: 1.0.6
255
+ version: 1.0.7
236
256
  - !ruby/object:Gem::Dependency
237
257
  name: gitmoji-regex
238
258
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +262,7 @@ dependencies:
242
262
  version: '2.0'
243
263
  - - ">="
244
264
  - !ruby/object:Gem::Version
245
- version: 2.0.4
265
+ version: 2.0.10
246
266
  type: :development
247
267
  prerelease: false
248
268
  version_requirements: !ruby/object:Gem::Requirement
@@ -252,7 +272,7 @@ dependencies:
252
272
  version: '2.0'
253
273
  - - ">="
254
274
  - !ruby/object:Gem::Version
255
- version: 2.0.4
275
+ version: 2.0.10
256
276
  description: "\U0001FA99 Token::Resolver provides configurable PEG-based (parslet)
257
277
  parsing and resolution of structured tokens (e.g., {KJ|GEM_NAME}) in arbitrary text.
258
278
  Useful for template ETL pipelines where tokens in template files must be resolved
@@ -284,14 +304,15 @@ licenses:
284
304
  - PolyForm-Small-Business-1.0.0
285
305
  metadata:
286
306
  homepage_uri: https://token-resolver.galtzo.com/
287
- source_code_uri: https://github.com/kettle-dev/token-resolver/tree/v2.0.5
288
- changelog_uri: https://github.com/kettle-dev/token-resolver/blob/v2.0.5/CHANGELOG.md
307
+ source_code_uri: https://github.com/kettle-dev/token-resolver/tree/v2.0.7
308
+ changelog_uri: https://github.com/kettle-dev/token-resolver/blob/v2.0.7/CHANGELOG.md
289
309
  bug_tracker_uri: https://github.com/kettle-dev/token-resolver/issues
290
- documentation_uri: https://www.rubydoc.info/gems/token-resolver/2.0.5
310
+ documentation_uri: https://www.rubydoc.info/gems/token-resolver/2.0.7
291
311
  funding_uri: https://github.com/sponsors/pboling
292
312
  wiki_uri: https://github.com/kettle-dev/token-resolver/wiki
293
313
  news_uri: https://www.railsbling.com/tags/token-resolver
294
314
  discord_uri: https://discord.gg/3qme4XHNKN
315
+ mailing_list_uri: https://www.rubyforum.org/tag/kettle-dev
295
316
  rubygems_mfa_required: 'true'
296
317
  rdoc_options:
297
318
  - "--title"
@@ -317,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
338
  - !ruby/object:Gem::Version
318
339
  version: '0'
319
340
  requirements: []
320
- rubygems_version: 4.0.16
341
+ rubygems_version: 4.0.17
321
342
  specification_version: 4
322
343
  summary: "\U0001FA99 Configurable PEG-based token parser and resolver for structured
323
344
  token detection and replacement in arbitrary text"
metadata.gz.sig CHANGED
Binary file