go-merge 7.1.19 → 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: b9aec81d5193113fba11066166acd1a22e23f31db6244e36e9a55b9273e1761f
4
- data.tar.gz: 3b404cafef4b0b7f3613194e7c6db8e36213adfa4602a659b0b19ac7b9608b1c
3
+ metadata.gz: d61083bc4dde3b52d7c421c984e39230c7364ab741deb4caadbad4eb0bb4157a
4
+ data.tar.gz: 1121fd32e105eb8d7fb71974341b09e59e508f9a32eaebdd092f15ba68503ce6
5
5
  SHA512:
6
- metadata.gz: f1d9d991c6341d7a345c3149aac07edbd9015440fc7498ca4c4fbfaa97654bba29b95ff7eddb5928a4443f567ad7146255debcfb3862631c96130c191e923dfa
7
- data.tar.gz: b2b93be7cd962bf3744e41b30eead8b42acba69f7105c67473f78f6ccf376330e00e5d2d406dc460921b3b98f0fb7a2b3579a701ade5f6271970d75cfb28a654
6
+ metadata.gz: 46ee6646a2cba72e921d7c145109d365075448de7e75a322281fdf83280683574392e0cc3142e1f049b4bdd633308a751bc98194e512c4a3fc3a12beddede551
7
+ data.tar.gz: 42008a93e9208333f725ecd804bd7021aa006a91a9974de90b37e4f02f6aa134480daab9e997437eb56ec67b793d99af1c62d6b706b3cdcf6eb609e81d1cbab0
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -2,22 +2,16 @@
2
2
 
3
3
  # ☯️ Go::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
 
@@ -31,48 +25,6 @@ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-ta
31
25
  - Destination parse diagnostics with StructuredMerge result shape.
32
26
  - Module-level APIs for fixture runners and Git integrations.
33
27
 
34
- ## 💡 Info you can shake a stick at
35
-
36
- | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
37
- |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
38
- | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf]|
39
- | 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] |
40
- | 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] |
41
- | 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] |
42
- | 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] |
43
- | 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] |
44
- | 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] |
45
- | `...` 💖 | [![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] |
46
-
47
- ### Compatibility
48
-
49
- The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
50
- CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
51
- The current MRI CI lane runs on Linux and macOS.
52
- The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
53
- When it is higher than the runtime floor, older runtime-compatible Rubies are
54
- not covered by the generated CI or Appraisal matrix.
55
-
56
- <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>
57
-
58
- The _amazing_ test matrix is powered by the kettle-dev stack.
59
-
60
- <details markdown="1">
61
- <summary>How kettle-dev manages complexity in tests</summary>
62
-
63
- | Gem | Source | Role | Total downloads |
64
- |-----|--------|------|---------------------|
65
- | [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) |
66
- | [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) |
67
- | [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) |
68
- | [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) |
69
- | [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) |
70
- | [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) |
71
- | [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) |
72
- | [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) |
73
-
74
- </details>
75
-
76
28
  ## ✨ Installation
77
29
 
78
30
  Install the gem and add to the application's Gemfile by executing:
@@ -114,6 +66,48 @@ File.write("main.go", result.fetch(:output))
114
66
 
115
67
  Most module-level merge methods return a Hash with `:ok`, `:diagnostics`, `:output`, and `:policies`. Check `:ok` before writing the result; diagnostics are structured for CI output and fixture conformance reports.
116
68
 
69
+ ## 💡 Info you can shake a stick at
70
+
71
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
72
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
73
+ | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf]|
74
+ | 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] |
75
+ | 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] |
76
+ | 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] |
77
+ | 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] |
78
+ | 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] |
79
+ | 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] |
80
+ | `...` 💖 | [![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] |
81
+
82
+ ### Compatibility
83
+
84
+ The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+, with concordant releases of JRuby and TruffleRuby.
85
+ CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
86
+ The current MRI CI lane runs on Linux and macOS.
87
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
88
+ When it is higher than the runtime floor, older runtime-compatible Rubies are
89
+ not covered by the generated CI or Appraisal matrix.
90
+
91
+ <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>
92
+
93
+ The _amazing_ test matrix is powered by the kettle-dev stack.
94
+
95
+ <details markdown="1">
96
+ <summary>How kettle-dev manages complexity in tests</summary>
97
+
98
+ | Gem | Source | Role | Total downloads |
99
+ |-----|--------|------|---------------------|
100
+ | [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) |
101
+ | [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) |
102
+ | [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) |
103
+ | [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) |
104
+ | [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) |
105
+ | [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) |
106
+ | [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) |
107
+ | [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) |
108
+
109
+ </details>
110
+
117
111
  ## 🔐 Security
118
112
 
119
113
  See [SECURITY.md][🔐security].
@@ -160,6 +154,16 @@ See [LICENSE.md][📄license] for details.
160
154
 
161
155
  If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
162
156
 
157
+ ### Please give the project a star ⭐ ♥.
158
+
159
+ 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.
160
+
161
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
162
+
163
+ [![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]
164
+
165
+ Thanks for RTFM. ☺️
166
+
163
167
  [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
164
168
  [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
165
169
  [⛳liberapay]: https://liberapay.com/pboling/donate
@@ -183,6 +187,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
183
187
  [✉️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
184
188
  [✉️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
185
189
  [✉️ruby-forum]: https://www.rubyforum.org/tag/structuredmerge
190
+
186
191
  [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
187
192
  [⛳️gem-namespace]: https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/go-merge
188
193
  [⛳️namespace-img]: https://img.shields.io/badge/namespace-Go::Merge-3C2D2D.svg?style=square&logo=ruby&logoColor=white
@@ -214,6 +219,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
214
219
  [💖🐙hub]: https://github.org/pboling
215
220
  [💖🛖hut]: https://sr.ht/~galtzo/
216
221
  [💖🧪lab]: https://gitlab.com/pboling
222
+ [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
217
223
  [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
218
224
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
219
225
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
@@ -236,6 +242,16 @@ If none of the available licenses suit your use case, please [contact us](mailto
236
242
  [👽dl-ranki]: https://img.shields.io/gem/dt/go-merge.svg
237
243
  [👽version]: https://clickgems.clickhouse.com/dashboard/go-merge
238
244
  [👽versioni]: https://img.shields.io/gem/v/go-merge.svg
245
+ [🏀qlty-mnt]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby
246
+ [🏀qlty-mnti]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/maintainability.svg
247
+ [🏀qlty-cov]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/metrics/code?sort=coverageRating
248
+ [🏀qlty-covi]: https://qlty.sh/gh/structuredmerge/projects/structuredmerge-ruby/coverage.svg
249
+ [🏀codecov]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby
250
+ [🏀codecovi]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
251
+ [🏀coveralls]: https://coveralls.io/github/structuredmerge/structuredmerge-ruby?branch=main
252
+ [🏀coveralls-img]: https://coveralls.io/repos/github/structuredmerge/structuredmerge-ruby/badge.svg?branch=main
253
+ [🚎2-cov-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml
254
+ [🚎2-cov-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/coverage.yml/badge.svg
239
255
  [🚎11-c-wf]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml
240
256
  [🚎11-c-wfi]: https://github.com/structuredmerge/structuredmerge-ruby/actions/workflows/current.yml/badge.svg
241
257
  [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
@@ -247,6 +263,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
247
263
  [🤝cb-pulls]: https://codeberg.org/structuredmerge/structuredmerge-ruby/pulls
248
264
  [🤝cb-donate]: https://donate.codeberg.org/
249
265
  [🤝contributing]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/CONTRIBUTING.md
266
+ [🏀codecov-g]: https://codecov.io/gh/structuredmerge/structuredmerge-ruby/graph/badge.svg
250
267
  [🖐contrib-rocks]: https://contrib.rocks
251
268
  [🖐contributors]: https://github.com/structuredmerge/structuredmerge-ruby/graphs/contributors
252
269
  [🖐contributors-img]: https://contrib.rocks/image?repo=structuredmerge/structuredmerge-ruby
@@ -263,7 +280,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
263
280
  [📌gitmoji]: https://gitmoji.dev
264
281
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
265
282
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
266
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.000-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
283
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.704-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
267
284
  [🔐security]: https://github.com/structuredmerge/structuredmerge-ruby/blob/main/SECURITY.md
268
285
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
269
286
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -272,6 +289,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
272
289
  [📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only_OR_PolyForm--Small--Business--1.0.0-259D6C.svg
273
290
  [📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
274
291
  [📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
292
+
275
293
  [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
276
294
  [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
277
295
  [🚎yard-current]: http://rubydoc.info/gems/go-merge
@@ -181,14 +181,15 @@ module Go
181
181
  end
182
182
 
183
183
  def safe_range?(source, wrapper)
184
- return false if wrapper.start_byte.negative? || wrapper.end_byte > source.bytesize
184
+ bytes = source.b
185
+ return false if wrapper.start_byte.negative? || wrapper.end_byte > bytes.bytesize
185
186
  return false if wrapper.end_byte < wrapper.start_byte
186
187
 
187
- line_start = source.rindex("\n", [wrapper.start_byte - 1, 0].max)
188
+ line_start = bytes.rindex("\n", [wrapper.start_byte - 1, 0].max)
188
189
  line_start = line_start ? line_start + 1 : 0
189
- line_end = source.index("\n", wrapper.end_byte) || source.bytesize
190
- horizontal_whitespace?(source.byteslice(line_start...wrapper.start_byte).to_s) &&
191
- horizontal_whitespace?(source.byteslice(wrapper.end_byte...line_end).to_s)
190
+ line_end = bytes.index("\n", wrapper.end_byte) || bytes.bytesize
191
+ horizontal_whitespace?(bytes.byteslice(line_start...wrapper.start_byte).to_s) &&
192
+ horizontal_whitespace?(bytes.byteslice(wrapper.end_byte...line_end).to_s)
192
193
  end
193
194
 
194
195
  def horizontal_whitespace?(value)
@@ -5,7 +5,7 @@ module Go
5
5
  # Version namespace for this gem.
6
6
  module Version
7
7
  # Current gem version.
8
- VERSION = '7.1.19'
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: go-merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.19
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.19
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.19
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.19
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.19
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
@@ -356,10 +356,10 @@ licenses:
356
356
  - PolyForm-Small-Business-1.0.0
357
357
  metadata:
358
358
  homepage_uri: "https://structuredmerge.org"
359
- source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.19"
360
- changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.19/CHANGELOG.md"
359
+ source_code_uri: "https://github.com/structuredmerge/structuredmerge-ruby/tree/v7.1.22"
360
+ changelog_uri: "https://github.com/structuredmerge/structuredmerge-ruby/blob/v7.1.22/CHANGELOG.md"
361
361
  bug_tracker_uri: "https://github.com/structuredmerge/structuredmerge-ruby/issues"
362
- documentation_uri: "https://www.rubydoc.info/gems/go-merge/7.1.19"
362
+ documentation_uri: "https://www.rubydoc.info/gems/go-merge/7.1.22"
363
363
  funding_uri: "https://github.com/sponsors/pboling"
364
364
  wiki_uri: "https://github.com/structuredmerge/structuredmerge-ruby/wiki"
365
365
  news_uri: "https://www.railsbling.com/tags/go-merge"
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
391
  - !ruby/object:Gem::Version
392
392
  version: "0"
393
393
  requirements: []
394
- rubygems_version: 4.1.0
394
+ rubygems_version: 4.1.1
395
395
  specification_version: 4
396
396
  summary: ☯️ Structured Merge Go module analysis and merge for Ruby
397
397
  test_files: []
metadata.gz.sig CHANGED
Binary file