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