bash-merge 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: 3c8058cd1889a3af9ca5e3ca531487ec66d980d49dcdf6a56362f88e2d6be0d9
4
- data.tar.gz: f02519bf024fec1867c96aeb0e6bd0713c5c9f97024df671a36a7d16802859c3
3
+ metadata.gz: db9350b03a46fc40fdb3a6dad9f4073216ef159af6374d6c202623efd53b11e7
4
+ data.tar.gz: 0a8767ff44ad60d5923f2839a2cc5effc02ace3a970d4743ff1078ff050f08e2
5
5
  SHA512:
6
- metadata.gz: 19f08706eae2930558a70a6f9130e9a2662eb8c5bb421f49ae687a48a469169ec5204ba098bfff806988356cdc283faac60ce6101ee86bc9c7571c8372fe9301
7
- data.tar.gz: 506ab3fc926bee55363357dca0104535fe58e810e74370646ff097e74e97b89f4f75eddff8debf1354a5f52b3893f5f3cece9813a3efa3a8123eb148bb39e786
6
+ metadata.gz: 30c09f61bd6dbe538d387b7fed6e9e9ddc6f6b7bbd55b52a4bd07c3f386c0f8971d0cc67582ff3e4e455b84a6a57ea2301a38dc224729ac8c30da1adac090ca8
7
+ data.tar.gz: 75d6b04965a84997b0c7ace4c5fe0207e610019320249d1645ba8d76df8765052883041b97a9c9236c263ba07e47bf1353139efc4b22043e6100ae3ec0080475
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -2,22 +2,16 @@
2
2
 
3
3
  # ☯️ Bash::Merge
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
 
@@ -70,48 +64,6 @@ File.write("merged.sh", result.to_bash)
70
64
  [ast-merge]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/ast-merge
71
65
  [tree_haver]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/tree_haver
72
66
 
73
- ## 💡 Info you can shake a stick at
74
-
75
- | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
76
- |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
77
- | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf]|
78
- | 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] |
79
- | 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] |
80
- | 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] |
81
- | 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] |
82
- | 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
- | Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
84
- | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
85
-
86
- ### Compatibility
87
-
88
- The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
89
- CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
90
- The current MRI CI lane runs on Linux and macOS.
91
- The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
92
- When it is higher than the runtime floor, older runtime-compatible Rubies are
93
- not covered by the generated CI or Appraisal matrix.
94
-
95
- <a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
96
-
97
- The _amazing_ test matrix is powered by the kettle-dev stack.
98
-
99
- <details markdown="1">
100
- <summary>How kettle-dev manages complexity in tests</summary>
101
-
102
- | Gem | Source | Role | Total downloads |
103
- |-----|--------|------|---------------------|
104
- | [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [![Total downloads for appraisal2](https://img.shields.io/gem/dt/appraisal2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2) |
105
- | [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [![Total downloads for appraisal2-rubocop](https://img.shields.io/gem/dt/appraisal2-rubocop.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
106
- | [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [![Total downloads for kettle-dev](https://img.shields.io/gem/dt/kettle-dev.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
107
- | [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [![Total downloads for kettle-jem](https://img.shields.io/gem/dt/kettle-jem.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
108
- | [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [![Total downloads for kettle-soup-cover](https://img.shields.io/gem/dt/kettle-soup-cover.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
109
- | [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [![Total downloads for kettle-test](https://img.shields.io/gem/dt/kettle-test.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-test) |
110
- | [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [![Total downloads for rubocop-lts](https://img.shields.io/gem/dt/rubocop-lts.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
111
- | [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [![Total downloads for turbo_tests2](https://img.shields.io/gem/dt/turbo_tests2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
112
-
113
- </details>
114
-
115
67
  ## ✨ Installation
116
68
 
117
69
  Install the gem and add to the application's Gemfile by executing:
@@ -252,6 +204,48 @@ result = merger.merge
252
204
  # Result includes functions/variables from template that don't exist in destination
253
205
  ```
254
206
 
207
+ ## 💡 Info you can shake a stick at
208
+
209
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
210
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
211
+ | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf]|
212
+ | 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] |
213
+ | 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] |
214
+ | 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] |
215
+ | 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] |
216
+ | 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] |
217
+ | Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼‍♂️devto-img]][💖💁🏼‍♂️devto] |
218
+ | `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼‍♂️aboutme-img]][💖💁🏼‍♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
219
+
220
+ ### Compatibility
221
+
222
+ The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
223
+ CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
224
+ The current MRI CI lane runs on Linux and macOS.
225
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
226
+ When it is higher than the runtime floor, older runtime-compatible Rubies are
227
+ not covered by the generated CI or Appraisal matrix.
228
+
229
+ <a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
230
+
231
+ The _amazing_ test matrix is powered by the kettle-dev stack.
232
+
233
+ <details markdown="1">
234
+ <summary>How kettle-dev manages complexity in tests</summary>
235
+
236
+ | Gem | Source | Role | Total downloads |
237
+ |-----|--------|------|---------------------|
238
+ | [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [![Total downloads for appraisal2](https://img.shields.io/gem/dt/appraisal2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2) |
239
+ | [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [![Total downloads for appraisal2-rubocop](https://img.shields.io/gem/dt/appraisal2-rubocop.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
240
+ | [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [![Total downloads for kettle-dev](https://img.shields.io/gem/dt/kettle-dev.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
241
+ | [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [![Total downloads for kettle-jem](https://img.shields.io/gem/dt/kettle-jem.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
242
+ | [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [![Total downloads for kettle-soup-cover](https://img.shields.io/gem/dt/kettle-soup-cover.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
243
+ | [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [![Total downloads for kettle-test](https://img.shields.io/gem/dt/kettle-test.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/kettle-test) |
244
+ | [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [![Total downloads for rubocop-lts](https://img.shields.io/gem/dt/rubocop-lts.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
245
+ | [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [![Total downloads for turbo_tests2](https://img.shields.io/gem/dt/turbo_tests2.svg?style=flat-square)](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
246
+
247
+ </details>
248
+
255
249
  ## 🔐 Security
256
250
 
257
251
  See [SECURITY.md][🔐security].
@@ -298,6 +292,16 @@ See [LICENSE.md][📄license] for details.
298
292
 
299
293
  If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
300
294
 
295
+ ### Please give the project a star ⭐ ♥.
296
+
297
+ 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.
298
+
299
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
300
+
301
+ [![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]
302
+
303
+ Thanks for RTFM. ☺️
304
+
301
305
  [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
302
306
  [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
303
307
  [⛳liberapay]: https://liberapay.com/pboling/donate
@@ -321,6 +325,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
321
325
  [✉️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
322
326
  [✉️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
323
327
  [✉️ruby-forum]: https://www.rubyforum.org/tag/structuredmerge
328
+
324
329
  [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
325
330
  [⛳️gem-namespace]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/bash-merge
326
331
  [⛳️namespace-img]: https://img.shields.io/badge/namespace-Bash::Merge-3C2D2D.svg?style=square&logo=ruby&logoColor=white
@@ -352,6 +357,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
352
357
  [💖🐙hub]: https://github.org/pboling
353
358
  [💖🛖hut]: https://sr.ht/~galtzo/
354
359
  [💖🧪lab]: https://gitlab.com/pboling
360
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
355
361
  [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
356
362
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
357
363
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
@@ -374,6 +380,16 @@ If none of the available licenses suit your use case, please [contact us](mailto
374
380
  [👽dl-ranki]: https://img.shields.io/gem/dt/bash-merge.svg
375
381
  [👽version]: https://clickgems.clickhouse.com/dashboard/bash-merge
376
382
  [👽versioni]: https://img.shields.io/gem/v/bash-merge.svg
383
+ [🏀qlty-mnt]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby
384
+ [🏀qlty-mnti]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/maintainability.svg
385
+ [🏀qlty-cov]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/metrics/code?sort=coverageRating
386
+ [🏀qlty-covi]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/coverage.svg
387
+ [🏀codecov]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby
388
+ [🏀codecovi]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
389
+ [🏀coveralls]: https://coveralls.io/github/structuredmerge/structuredmerge-ruby?branch=main
390
+ [🏀coveralls-img]: https://coveralls.io/repos/github/structuredmerge/structuredmerge-ruby/badge.svg?branch=main
391
+ [🚎2-cov-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml
392
+ [🚎2-cov-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml/badge.svg
377
393
  [🚎11-c-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml
378
394
  [🚎11-c-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml/badge.svg
379
395
  [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
@@ -385,6 +401,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
385
401
  [🤝cb-pulls]: https://codeberg.org/structuredmerge/structuredmerge-ruby/pulls
386
402
  [🤝cb-donate]: https://donate.codeberg.org/
387
403
  [🤝contributing]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/CONTRIBUTING.md
404
+ [🏀codecov-g]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
388
405
  [🖐contrib-rocks]: https://contrib.rocks
389
406
  [🖐contributors]: https://github.com/structuredmerge/structuredmerge-ruby/graphs/contributors
390
407
  [🖐contributors-img]: https://contrib.rocks/image?repo=structuredmerge/structuredmerge-ruby
@@ -401,7 +418,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
401
418
  [📌gitmoji]: https://gitmoji.dev
402
419
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
403
420
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
404
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.000-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
421
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.361-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
405
422
  [🔐security]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/SECURITY.md
406
423
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
407
424
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -410,6 +427,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
410
427
  [📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only_OR_PolyForm--Small--Business--1.0.0-259D6C.svg
411
428
  [📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
412
429
  [📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
430
+
413
431
  [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
414
432
  [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
415
433
  [🚎yard-current]: http://rubydoc.info/gems/bash-merge
@@ -302,14 +302,15 @@ module Bash
302
302
  end
303
303
 
304
304
  def safe_range?(source, wrapper)
305
- return false if wrapper.start_byte.negative? || wrapper.end_byte > source.bytesize
305
+ bytes = source.b
306
+ return false if wrapper.start_byte.negative? || wrapper.end_byte > bytes.bytesize
306
307
  return false if wrapper.end_byte < wrapper.start_byte
307
308
 
308
- line_start = source.rindex("\n", [wrapper.start_byte - 1, 0].max)
309
+ line_start = bytes.rindex("\n", [wrapper.start_byte - 1, 0].max)
309
310
  line_start = line_start ? line_start + 1 : 0
310
- line_end = source.index("\n", wrapper.end_byte) || source.bytesize
311
- horizontal_whitespace?(source.byteslice(line_start...wrapper.start_byte).to_s) &&
312
- horizontal_whitespace?(source.byteslice(wrapper.end_byte...line_end).to_s)
311
+ line_end = bytes.index("\n", wrapper.end_byte) || bytes.bytesize
312
+ horizontal_whitespace?(bytes.byteslice(line_start...wrapper.start_byte).to_s) &&
313
+ horizontal_whitespace?(bytes.byteslice(wrapper.end_byte...line_end).to_s)
313
314
  end
314
315
 
315
316
  def horizontal_whitespace?(value)
@@ -5,7 +5,7 @@ module Bash
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: bash-merge
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: tree_haver
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +60,7 @@ dependencies:
60
60
  -
61
61
  - "="
62
62
  - !ruby/object:Gem::Version
63
- version: 7.1.20
63
+ version: 7.1.22
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
@@ -68,7 +68,7 @@ dependencies:
68
68
  -
69
69
  - "="
70
70
  - !ruby/object:Gem::Version
71
- version: 7.1.20
71
+ version: 7.1.22
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: version_gem
74
74
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ dependencies:
104
104
  -
105
105
  - ">="
106
106
  - !ruby/object:Gem::Version
107
- version: 3.1.31
107
+ version: 3.1.36
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  -
117
117
  - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 3.1.31
119
+ version: 3.1.36
120
120
  - !ruby/object:Gem::Dependency
121
121
  name: bundler-audit
122
122
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +232,7 @@ dependencies:
232
232
  -
233
233
  - ">="
234
234
  - !ruby/object:Gem::Version
235
- version: 2.0.30
235
+ version: 2.0.31
236
236
  type: :development
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
@@ -244,7 +244,7 @@ dependencies:
244
244
  -
245
245
  - ">="
246
246
  - !ruby/object:Gem::Version
247
- version: 2.0.30
247
+ version: 2.0.31
248
248
  - !ruby/object:Gem::Dependency
249
249
  name: turbo_tests2
250
250
  requirement: !ruby/object:Gem::Requirement
@@ -363,10 +363,10 @@ licenses:
363
363
  - PolyForm-Small-Business-1.0.0
364
364
  metadata:
365
365
  homepage_uri: "https://structuredmerge.org"
366
- source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.20"
367
- changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.20/CHANGELOG.md"
366
+ source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.22"
367
+ changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.22/CHANGELOG.md"
368
368
  bug_tracker_uri: "https://github.com/structuredmerge/structuredmerge-ruby/issues"
369
- documentation_uri: "https://www.rubydoc.info/gems/bash-merge/7.1.20"
369
+ documentation_uri: "https://www.rubydoc.info/gems/bash-merge/7.1.22"
370
370
  funding_uri: "https://github.com/sponsors/pboling"
371
371
  wiki_uri: "https://github.com/structuredmerge/structuredmerge-ruby/wiki"
372
372
  news_uri: "https://www.railsbling.com/tags/bash-merge"
metadata.gz.sig CHANGED
Binary file