ast-template 7.1.20 → 7.1.22

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: ae5325c3e0aebfa5daabab865864984852b32b5f340ea301193d058117c5c276
4
- data.tar.gz: 8509afb59b2b7eda35f3531697a758d3fa8afb0c339afc05b7d585f40c7135d2
3
+ metadata.gz: 70957e043a2db1296e3a94ae3831a39b3210bfd57e8f855ca9c2fc3e19f96b3d
4
+ data.tar.gz: 75fe53f8289db9e22dfce8b1ae184e937f7d0de4489cc3df56bdba05a9547d02
5
5
  SHA512:
6
- metadata.gz: 0d9a919daebb826e2230e14d2af1cf8367837a5ee2c06dfbd1d97029722c17e501c0f5a5dc8ca25eb4255d41ad6aff5f2bc69691e5ac2b82dfbbf39bd8f52b6f
7
- data.tar.gz: 4ca7747f7c0709e1018c75ce024dc56dddc89cf789eb18b168969aa3db7b71eb636ab77745dc76d4fd1c36e76ec0036cf97ca9feab35942bc61aa32a7297b59e
6
+ metadata.gz: 927ccbd5e190a8d44cb7735de6b10341739290d51a12d9399d77b1bc40c2f4d20e5cc2e08c71e10850266297dc1e1568a7e8b722aa739a82fea7dea046e568d2
7
+ data.tar.gz: bac5b53b3d70ec41b4218b278686fc75a8e7895039689b65a25ee88f5797898030e37f378121e383f966eaea848337234d02cdd3ed0c8fcb81fc333121743d7f
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -2,22 +2,16 @@
2
2
 
3
3
  # 💎 Ast::Template
4
4
 
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] [![Total downloads][👽dl-ranki]][👽dl-rank] [![CI Current][🚎11-c-wfi]][🚎11-c-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] [![Total downloads][👽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 Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf]
6
6
 
7
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
- ---
10
-
11
9
  `if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
12
10
 
13
11
  [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
14
12
 
15
- <details markdown="1">
16
- <summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
17
-
18
- I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
19
-
20
- </details>
13
+ <!-- kettle-sponsors:shields:start -->
14
+ <!-- kettle-sponsors:shields:end -->
21
15
 
22
16
  ## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
23
17
 
@@ -31,6 +25,41 @@ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-ta
31
25
  - Adapter-family registry checks for template applicability.
32
26
  - Dry-run and apply workflows for repeatable template updates.
33
27
 
28
+ ## ✨ Installation
29
+
30
+ Install the gem and add to the application's Gemfile by executing:
31
+
32
+ ```console
33
+ bundle add ast-template
34
+ ```
35
+
36
+ If bundler is not being used to manage dependencies, install the gem by executing:
37
+
38
+ ```console
39
+ gem install ast-template
40
+ ```
41
+
42
+ ## ⚙️ Configuration
43
+
44
+ Configure `ast-template` with a template root, a destination root, and optional session options that control dry-run behavior, adapter selection, and report detail.
45
+
46
+ Template-specific package facts are normally supplied by the caller that owns the package metadata. For Ruby gems, `kettle-jem` is that caller.
47
+
48
+ ## 🔧 Basic Usage
49
+
50
+ ```ruby
51
+ require "ast/template"
52
+
53
+ request = Ast::Template.package_directory_session_request(
54
+ template_root: "template",
55
+ destination_root: ".",
56
+ mode: "plan",
57
+ )
58
+
59
+ report = Ast::Template.run_package_directory_session(request)
60
+ puts report.fetch(:mode)
61
+ ```
62
+
34
63
  ## 💡 Info you can shake a stick at
35
64
 
36
65
  | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
@@ -49,7 +78,7 @@ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-ta
49
78
  The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
50
79
  CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
51
80
  The current MRI CI lane runs on Linux and macOS.
52
- The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
81
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
53
82
  When it is higher than the runtime floor, older runtime-compatible Rubies are
54
83
  not covered by the generated CI or Appraisal matrix.
55
84
 
@@ -73,41 +102,6 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
73
102
 
74
103
  </details>
75
104
 
76
- ## ✨ Installation
77
-
78
- Install the gem and add to the application's Gemfile by executing:
79
-
80
- ```console
81
- bundle add ast-template
82
- ```
83
-
84
- If bundler is not being used to manage dependencies, install the gem by executing:
85
-
86
- ```console
87
- gem install ast-template
88
- ```
89
-
90
- ## ⚙️ Configuration
91
-
92
- Configure `ast-template` with a template root, a destination root, and optional session options that control dry-run behavior, adapter selection, and report detail.
93
-
94
- Template-specific package facts are normally supplied by the caller that owns the package metadata. For Ruby gems, `kettle-jem` is that caller.
95
-
96
- ## 🔧 Basic Usage
97
-
98
- ```ruby
99
- require "ast/template"
100
-
101
- request = Ast::Template.package_directory_session_request(
102
- template_root: "template",
103
- destination_root: ".",
104
- mode: "plan",
105
- )
106
-
107
- report = Ast::Template.run_package_directory_session(request)
108
- puts report.fetch(:mode)
109
- ```
110
-
111
105
  ## 🔐 Security
112
106
 
113
107
  See [SECURITY.md][🔐security].
@@ -154,6 +148,16 @@ See [LICENSE.md][📄license] for details.
154
148
 
155
149
  If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
156
150
 
151
+ ### Please give the project a star ⭐ ♥.
152
+
153
+ Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
154
+
155
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
156
+
157
+ [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal] 💌 [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] 💌 [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
158
+
159
+ Thanks for RTFM. ☺️
160
+
157
161
  [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
158
162
  [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
159
163
  [⛳liberapay]: https://liberapay.com/pboling/donate
@@ -177,6 +181,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
177
181
  [✉️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
178
182
  [✉️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
179
183
  [✉️ruby-forum]: https://www.rubyforum.org/tag/structuredmerge
184
+
180
185
  [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
181
186
  [⛳️gem-namespace]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/ast-template
182
187
  [⛳️namespace-img]: https://img.shields.io/badge/namespace-Ast::Template-3C2D2D.svg?style=square&logo=ruby&logoColor=white
@@ -208,6 +213,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
208
213
  [💖🐙hub]: https://github.org/pboling
209
214
  [💖🛖hut]: https://sr.ht/~galtzo/
210
215
  [💖🧪lab]: https://gitlab.com/pboling
216
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
211
217
  [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
212
218
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
213
219
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
@@ -230,6 +236,16 @@ If none of the available licenses suit your use case, please [contact us](mailto
230
236
  [👽dl-ranki]: https://img.shields.io/gem/dt/ast-template.svg
231
237
  [👽version]: https://clickgems.clickhouse.com/dashboard/ast-template
232
238
  [👽versioni]: https://img.shields.io/gem/v/ast-template.svg
239
+ [🏀qlty-mnt]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby
240
+ [🏀qlty-mnti]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/maintainability.svg
241
+ [🏀qlty-cov]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/metrics/code?sort=coverageRating
242
+ [🏀qlty-covi]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/coverage.svg
243
+ [🏀codecov]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby
244
+ [🏀codecovi]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
245
+ [🏀coveralls]: https://coveralls.io/github/structuredmerge/structuredmerge-ruby?branch=main
246
+ [🏀coveralls-img]: https://coveralls.io/repos/github/structuredmerge/structuredmerge-ruby/badge.svg?branch=main
247
+ [🚎2-cov-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml
248
+ [🚎2-cov-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml/badge.svg
233
249
  [🚎11-c-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml
234
250
  [🚎11-c-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml/badge.svg
235
251
  [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
@@ -241,6 +257,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
241
257
  [🤝cb-pulls]: https://codeberg.org/structuredmerge/structuredmerge-ruby/pulls
242
258
  [🤝cb-donate]: https://donate.codeberg.org/
243
259
  [🤝contributing]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/CONTRIBUTING.md
260
+ [🏀codecov-g]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
244
261
  [🖐contrib-rocks]: https://contrib.rocks
245
262
  [🖐contributors]: https://github.com/structuredmerge/structuredmerge-ruby/graphs/contributors
246
263
  [🖐contributors-img]: https://contrib.rocks/image?repo=structuredmerge/structuredmerge-ruby
@@ -257,7 +274,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
257
274
  [📌gitmoji]: https://gitmoji.dev
258
275
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
259
276
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
260
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.000-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
277
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.723-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
261
278
  [🔐security]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/SECURITY.md
262
279
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
263
280
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -266,6 +283,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
266
283
  [📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only_OR_PolyForm--Small--Business--1.0.0-259D6C.svg
267
284
  [📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
268
285
  [📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
286
+
269
287
  [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
270
288
  [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
271
289
  [🚎yard-current]: http://rubydoc.info/gems/ast-template
@@ -5,7 +5,7 @@ module Ast
5
5
  # Version namespace for this gem.
6
6
  module Version
7
7
  # Current gem version.
8
- VERSION = '7.1.20'
8
+ VERSION = '7.1.22'
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ast-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.20
4
+ version: 7.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -44,7 +44,7 @@ dependencies:
44
44
  -
45
45
  - "="
46
46
  - !ruby/object:Gem::Version
47
- version: 7.1.20
47
+ version: 7.1.22
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  -
53
53
  - "="
54
54
  - !ruby/object:Gem::Version
55
- version: 7.1.20
55
+ version: 7.1.22
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: token-resolver
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -112,7 +112,7 @@ dependencies:
112
112
  -
113
113
  - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 3.1.31
115
+ version: 3.1.36
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ dependencies:
124
124
  -
125
125
  - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: 3.1.31
127
+ version: 3.1.36
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: bundler-audit
130
130
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +240,7 @@ dependencies:
240
240
  -
241
241
  - ">="
242
242
  - !ruby/object:Gem::Version
243
- version: 2.0.30
243
+ version: 2.0.31
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
@@ -252,7 +252,7 @@ dependencies:
252
252
  -
253
253
  - ">="
254
254
  - !ruby/object:Gem::Version
255
- version: 2.0.30
255
+ version: 2.0.31
256
256
  - !ruby/object:Gem::Dependency
257
257
  name: turbo_tests2
258
258
  requirement: !ruby/object:Gem::Requirement
@@ -366,10 +366,10 @@ licenses:
366
366
  - PolyForm-Small-Business-1.0.0
367
367
  metadata:
368
368
  homepage_uri: "https://structuredmerge.org"
369
- source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.20"
370
- changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.20/CHANGELOG.md"
369
+ source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.22"
370
+ changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.22/CHANGELOG.md"
371
371
  bug_tracker_uri: "https://github.com/structuredmerge/structuredmerge-ruby/issues"
372
- documentation_uri: "https://www.rubydoc.info/gems/ast-template/7.1.20"
372
+ documentation_uri: "https://www.rubydoc.info/gems/ast-template/7.1.22"
373
373
  funding_uri: "https://github.com/sponsors/pboling"
374
374
  wiki_uri: "https://github.com/structuredmerge/structuredmerge-ruby/wiki"
375
375
  news_uri: "https://www.railsbling.com/tags/ast-template"
metadata.gz.sig CHANGED
Binary file