rbs-merge 1.0.0
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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +46 -0
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +134 -0
- data/CONTRIBUTING.md +227 -0
- data/FUNDING.md +74 -0
- data/LICENSE.txt +21 -0
- data/README.md +936 -0
- data/REEK +0 -0
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +21 -0
- data/lib/rbs/merge/conflict_resolver.rb +99 -0
- data/lib/rbs/merge/debug_logger.rb +24 -0
- data/lib/rbs/merge/file_aligner.rb +148 -0
- data/lib/rbs/merge/file_analysis.rb +264 -0
- data/lib/rbs/merge/freeze_node.rb +117 -0
- data/lib/rbs/merge/merge_result.rb +171 -0
- data/lib/rbs/merge/smart_merger.rb +266 -0
- data/lib/rbs/merge/version.rb +12 -0
- data/lib/rbs/merge.rb +82 -0
- data/lib/rbs-merge.rb +4 -0
- data/sig/rbs/merge.rbs +203 -0
- data.tar.gz.sig +0 -0
- metadata +318 -0
- metadata.gz.sig +0 -0
data/README.md
ADDED
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
| 📍 NOTE |
|
|
2
|
+
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
3
|
+
| RubyGems (the [GitHub org][rubygems-org], not the website) [suffered][draper-security] a [hostile takeover][ellen-takeover] in September 2025. |
|
|
4
|
+
| Ultimately [4 maintainers][simi-removed] were [hard removed][martin-removed] and a reason has been given for only 1 of those, while 2 others resigned in protest. |
|
|
5
|
+
| It is a [complicated story][draper-takeover] which is difficult to [parse quickly][draper-lies]. |
|
|
6
|
+
| Simply put - there was active policy for adding or removing maintainers/owners of [rubygems][rubygems-maint-policy] and [bundler][bundler-maint-policy], and those [policies were not followed][policy-fail]. |
|
|
7
|
+
| I'm adding notes like this to gems because I [don't condone theft][draper-theft] of repositories or gems from their rightful owners. |
|
|
8
|
+
| If a similar theft happened with my repos/gems, I'd hope some would stand up for me. |
|
|
9
|
+
| Disenfranchised former-maintainers have started [gem.coop][gem-coop]. |
|
|
10
|
+
| Once available I will publish there exclusively; unless RubyCentral makes amends with the community. |
|
|
11
|
+
| The ["Technology for Humans: Joel Draper"][reinteractive-podcast] podcast episode by [reinteractive][reinteractive] is the most cogent summary I'm aware of. |
|
|
12
|
+
| See [here][gem-naming], [here][gem-coop] and [here][martin-ann] for more info on what comes next. |
|
|
13
|
+
| What I'm doing: A (WIP) proposal for [bundler/gem scopes][gem-scopes], and a (WIP) proposal for a federated [gem server][gem-server]. |
|
|
14
|
+
|
|
15
|
+
[rubygems-org]: https://github.com/rubygems/
|
|
16
|
+
[draper-security]: https://joel.drapper.me/p/ruby-central-security-measures/
|
|
17
|
+
[draper-takeover]: https://joel.drapper.me/p/ruby-central-takeover/
|
|
18
|
+
[ellen-takeover]: https://pup-e.com/blog/goodbye-rubygems/
|
|
19
|
+
[simi-removed]: https://www.reddit.com/r/ruby/s/gOk42POCaV
|
|
20
|
+
[martin-removed]: https://bsky.app/profile/martinemde.com/post/3m3occezxxs2q
|
|
21
|
+
[draper-lies]: https://joel.drapper.me/p/ruby-central-fact-check/
|
|
22
|
+
[draper-theft]: https://joel.drapper.me/p/ruby-central/
|
|
23
|
+
[reinteractive]: https://reinteractive.com/ruby-on-rails
|
|
24
|
+
[gem-coop]: https://gem.coop
|
|
25
|
+
[gem-naming]: https://github.com/gem-coop/gem.coop/issues/12
|
|
26
|
+
[martin-ann]: https://martinemde.com/2025/10/05/announcing-gem-coop.html
|
|
27
|
+
[gem-scopes]: https://github.com/galtzo-floss/bundle-namespace
|
|
28
|
+
[gem-server]: https://github.com/galtzo-floss/gem-server
|
|
29
|
+
[reinteractive-podcast]: https://youtu.be/_H4qbtC5qzU?si=BvuBU90R2wAqD2E6
|
|
30
|
+
[bundler-maint-policy]: https://github.com/ruby/rubygems/blob/b1ab33a3d52310a84d16b193991af07f5a6a07c0/doc/bundler/playbooks/TEAM_CHANGES.md
|
|
31
|
+
[rubygems-maint-policy]: https://github.com/ruby/rubygems/blob/b1ab33a3d52310a84d16b193991af07f5a6a07c0/doc/rubygems/POLICIES.md?plain=1#L187-L196
|
|
32
|
+
[policy-fail]: https://www.reddit.com/r/ruby/comments/1ove9vp/rubycentral_hates_this_one_fact/
|
|
33
|
+
|
|
34
|
+
[![Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0][🖼️galtzo-i]][🖼️galtzo-discord] [![ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5][🖼️ruby-lang-i]][🖼️ruby-lang] [![kettle-rb Logo by Aboling0, CC BY-SA 4.0][🖼️kettle-rb-i]][🖼️kettle-rb]
|
|
35
|
+
|
|
36
|
+
[🖼️galtzo-i]: https://logos.galtzo.com/assets/images/galtzo-floss/avatar-192px.svg
|
|
37
|
+
[🖼️galtzo-discord]: https://discord.gg/3qme4XHNKN
|
|
38
|
+
[🖼️ruby-lang-i]: https://logos.galtzo.com/assets/images/ruby-lang/avatar-192px.svg
|
|
39
|
+
[🖼️ruby-lang]: https://www.ruby-lang.org/
|
|
40
|
+
[🖼️kettle-rb-i]: https://logos.galtzo.com/assets/images/kettle-rb/avatar-192px.svg
|
|
41
|
+
[🖼️kettle-rb]: https://github.com/kettle-rb
|
|
42
|
+
|
|
43
|
+
# ☯️ Rbs::Merge
|
|
44
|
+
|
|
45
|
+
[![Version][👽versioni]][👽version] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][📄license-img]][📄license-ref] [![Downloads Rank][👽dl-ranki]][👽dl-rank] [![Open Source Helpers][👽oss-helpi]][👽oss-help] [![CodeCov Test Coverage][🏀codecovi]][🏀codecov] [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls] [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov] [![QLTY Maintainability][🏀qlty-mnti]][🏀qlty-mnt] [![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf] [![CI Runtime Dependencies @ HEAD][🚎12-crh-wfi]][🚎12-crh-wf] [![CI Current][🚎11-c-wfi]][🚎11-c-wf] [![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Supported][🚎6-s-wfi]][🚎6-s-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Apache SkyWalking Eyes License Compatibility Check][🚎15-🪪-wfi]][🚎15-🪪-wf]
|
|
46
|
+
|
|
47
|
+
`if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know][🖼️galtzo-discord], as I may have missed the [discord notification][🖼️galtzo-discord].
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
`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.
|
|
52
|
+
|
|
53
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![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 on Polar][🖇polar-img]][🖇polar] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
54
|
+
|
|
55
|
+
## 🌻 Synopsis
|
|
56
|
+
|
|
57
|
+
Rbs::Merge is a standalone Ruby module that intelligently merges two versions of an RBS (Ruby Signature) file using the official RBS parser. It's like a smart "git merge" specifically designed for RBS type definitions. Built on top of [ast-merge](https://github.com/kettle-rb/ast-merge), it shares the same architecture as [prism-merge](https://github.com/kettle-rb/prism-merge) for Ruby source files.
|
|
58
|
+
|
|
59
|
+
### Key Features
|
|
60
|
+
|
|
61
|
+
- **RBS-Aware**: Uses the official RBS parser to understand type signature structure
|
|
62
|
+
- **Intelligent**: Matches declarations by structural signatures (class names, method names, type aliases)
|
|
63
|
+
- **Recursive Merge**: Automatically merges class and module bodies recursively, intelligently combining nested method definitions and members
|
|
64
|
+
- **Comment-Preserving**: Comments are properly attached to relevant declarations
|
|
65
|
+
- **Freeze Block Support**: Respects freeze markers (default: `rbs-merge:freeze` / `rbs-merge:unfreeze`) for merge control - customizable to match your project's conventions
|
|
66
|
+
- **Full Provenance**: Tracks origin of every declaration
|
|
67
|
+
- **Standalone**: Minimal dependencies - just `rbs` and `ast-merge`
|
|
68
|
+
- **Customizable**:
|
|
69
|
+
- `signature_generator` - callable custom signature generators
|
|
70
|
+
- `preference` - setting of `:template`, `:destination`, or a Hash for per-node-type preferences
|
|
71
|
+
- `node_splitter` - Hash mapping node types to callables for per-node-type merge customization (see [ast-merge](https://github.com/kettle-rb/ast-merge) docs)
|
|
72
|
+
- `add_template_only_nodes` - setting to retain declarations that do not exist in destination
|
|
73
|
+
- `freeze_token` - customize freeze block markers (default: `"rbs-merge"`)
|
|
74
|
+
|
|
75
|
+
### Supported RBS Declarations
|
|
76
|
+
|
|
77
|
+
| Declaration Type | Signature Format | Matching Behavior |
|
|
78
|
+
|-----------------|-----------------|-------------------|
|
|
79
|
+
| `Class` | `[:class, name]` | Classes match by name |
|
|
80
|
+
| `Module` | `[:module, name]` | Modules match by name |
|
|
81
|
+
| `Interface` | `[:interface, name]` | Interfaces match by name |
|
|
82
|
+
| `TypeAlias` | `[:type_alias, name]` | Type aliases match by name |
|
|
83
|
+
| `Constant` | `[:constant, name]` | Constants match by name |
|
|
84
|
+
| `Global` | `[:global, name]` | Global variables match by name |
|
|
85
|
+
| `MethodDefinition` | `[:method, name, kind]` | Methods match by name and kind (instance/singleton) |
|
|
86
|
+
| `Alias` | `[:alias, new_name, old_name]` | Method aliases match by both names |
|
|
87
|
+
| `AttrReader` | `[:attr_reader, name]` | Attr readers match by name |
|
|
88
|
+
| `AttrWriter` | `[:attr_writer, name]` | Attr writers match by name |
|
|
89
|
+
| `AttrAccessor` | `[:attr_accessor, name]` | Attr accessors match by name |
|
|
90
|
+
| `Include` | `[:include, name]` | Include directives match by module name |
|
|
91
|
+
| `Extend` | `[:extend, name]` | Extend directives match by module name |
|
|
92
|
+
| `Prepend` | `[:prepend, name]` | Prepend directives match by module name |
|
|
93
|
+
| `InstanceVariable` | `[:ivar, name]` | Instance variables match by name |
|
|
94
|
+
| `ClassInstanceVariable` | `[:civar, name]` | Class instance variables match by name |
|
|
95
|
+
| `ClassVariable` | `[:cvar, name]` | Class variables match by name |
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require "rbs/merge"
|
|
101
|
+
|
|
102
|
+
template = File.read("template.rbs")
|
|
103
|
+
destination = File.read("destination.rbs")
|
|
104
|
+
|
|
105
|
+
merger = Rbs::Merge::SmartMerger.new(template, destination)
|
|
106
|
+
result = merger.merge
|
|
107
|
+
|
|
108
|
+
File.write("merged.rbs", result.to_s)
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### The `*-merge` Gem Family
|
|
112
|
+
|
|
113
|
+
This gem is part of a family of gems that provide intelligent merging for various file formats:
|
|
114
|
+
|
|
115
|
+
| Gem | Format | Parser | Description |
|
|
116
|
+
|-----|--------|--------|-------------|
|
|
117
|
+
| [ast-merge][ast-merge] | Text | internal | Shared infrastructure for all `*-merge` gems |
|
|
118
|
+
| [prism-merge][prism-merge] | Ruby | [Prism][prism] | Smart merge for Ruby source files |
|
|
119
|
+
| [psych-merge][psych-merge] | YAML | [Psych][psych] | Smart merge for YAML files |
|
|
120
|
+
| [json-merge][json-merge] | JSON | [tree-sitter-json][ts-json] | Smart merge for JSON files |
|
|
121
|
+
| [jsonc-merge][jsonc-merge] | JSONC | [tree-sitter-jsonc][ts-jsonc] | ⚠️ Proof of concept; Smart merge for JSON with Comments |
|
|
122
|
+
| [bash-merge][bash-merge] | Bash | [tree-sitter-bash][ts-bash] | Smart merge for Bash scripts |
|
|
123
|
+
| [rbs-merge][rbs-merge] | RBS | [RBS][rbs] | Smart merge for Ruby type signatures |
|
|
124
|
+
| [dotenv-merge][dotenv-merge] | Dotenv | internal ([dotenv][dotenv]) | Smart merge for `.env` files |
|
|
125
|
+
| [toml-merge][toml-merge] | TOML | [tree-sitter-toml][ts-toml] | Smart merge for TOML files |
|
|
126
|
+
| [markdown-merge][markdown-merge] | Markdown | _base classes_ | Shared foundation for Markdown mergers |
|
|
127
|
+
| [markly-merge][markly-merge] | Markdown | [Markly][markly] | Smart merge for Markdown (CommonMark via libcmark-gfm) |
|
|
128
|
+
| [commonmarker-merge][commonmarker-merge] | Markdown | [Commonmarker][commonmarker] | Smart merge for Markdown (CommonMark via comrak) |
|
|
129
|
+
|
|
130
|
+
**Example implementations** for the gem templating use case:
|
|
131
|
+
|
|
132
|
+
| Gem | Purpose | Description |
|
|
133
|
+
|-----|---------|-------------|
|
|
134
|
+
| [kettle-dev][kettle-dev] | Gem Development | Gem templating tool using `*-merge` gems |
|
|
135
|
+
| [kettle-jem][kettle-jem] | Gem Templating | Gem template library with smart merge support |
|
|
136
|
+
|
|
137
|
+
[ast-merge]: https://github.com/kettle-rb/ast-merge
|
|
138
|
+
[prism-merge]: https://github.com/kettle-rb/prism-merge
|
|
139
|
+
[psych-merge]: https://github.com/kettle-rb/psych-merge
|
|
140
|
+
[json-merge]: https://github.com/kettle-rb/json-merge
|
|
141
|
+
[jsonc-merge]: https://github.com/kettle-rb/jsonc-merge
|
|
142
|
+
[bash-merge]: https://github.com/kettle-rb/bash-merge
|
|
143
|
+
[rbs-merge]: https://github.com/kettle-rb/rbs-merge
|
|
144
|
+
[dotenv-merge]: https://github.com/kettle-rb/dotenv-merge
|
|
145
|
+
[toml-merge]: https://github.com/kettle-rb/toml-merge
|
|
146
|
+
[markdown-merge]: https://github.com/kettle-rb/markdown-merge
|
|
147
|
+
[markly-merge]: https://github.com/kettle-rb/markly-merge
|
|
148
|
+
[commonmarker-merge]: https://github.com/kettle-rb/commonmarker-merge
|
|
149
|
+
[kettle-dev]: https://github.com/kettle-rb/kettle-dev
|
|
150
|
+
[kettle-jem]: https://github.com/kettle-rb/kettle-jem
|
|
151
|
+
[prism]: https://github.com/ruby/prism
|
|
152
|
+
[psych]: https://github.com/ruby/psych
|
|
153
|
+
[ts-json]: https://github.com/tree-sitter/tree-sitter-json
|
|
154
|
+
[ts-jsonc]: https://gitlab.com/WhyNotHugo/tree-sitter-jsonc
|
|
155
|
+
[ts-bash]: https://github.com/tree-sitter/tree-sitter-bash
|
|
156
|
+
[ts-toml]: https://github.com/tree-sitter-grammars/tree-sitter-toml
|
|
157
|
+
[rbs]: https://github.com/ruby/rbs
|
|
158
|
+
[dotenv]: https://github.com/bkeepers/dotenv
|
|
159
|
+
[markly]: https://github.com/kivikakk/markly
|
|
160
|
+
[commonmarker]: https://github.com/gjtorikian/commonmarker
|
|
161
|
+
|
|
162
|
+
## 💡 Info you can shake a stick at
|
|
163
|
+
|
|
164
|
+
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
165
|
+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
166
|
+
| Works with JRuby | [![JRuby 10.0 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
|
|
167
|
+
| Works with Truffle Ruby | [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎9-t-wf] [![Truffle Ruby 24.1 Compat][💎truby-c-i]][🚎11-c-wf] |
|
|
168
|
+
| Works with MRI Ruby 3 | [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎6-s-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎6-s-wf] [![Ruby 3.4 Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf] |
|
|
169
|
+
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![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] |
|
|
170
|
+
| 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] |
|
|
171
|
+
| 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] |
|
|
172
|
+
| Compliance | [![License: MIT][📄license-img]][📄license-ref] [![Compatible with Apache Software Projects: Verified by SkyWalking Eyes][📄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] |
|
|
173
|
+
| 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] |
|
|
174
|
+
| 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] |
|
|
175
|
+
| `...` 💖 | [![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] |
|
|
176
|
+
|
|
177
|
+
### Compatibility
|
|
178
|
+
|
|
179
|
+
Compatible with MRI Ruby 3.2.0+, and concordant releases of JRuby, and TruffleRuby.
|
|
180
|
+
|
|
181
|
+
| 🚚 _Amazing_ test matrix was brought to you by | 🔎 appraisal2 🔎 and the color 💚 green 💚 |
|
|
182
|
+
|------------------------------------------------|--------------------------------------------------------|
|
|
183
|
+
| 👟 Check it out! | ✨ [github.com/appraisal-rb/appraisal2][💎appraisal2] ✨ |
|
|
184
|
+
|
|
185
|
+
### Federated DVCS
|
|
186
|
+
|
|
187
|
+
<details markdown="1">
|
|
188
|
+
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
189
|
+
|
|
190
|
+
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI | Discussions |
|
|
191
|
+
|-------------------------------------------------|-----------------------------------------------------------------------|---------------------------|--------------------------|---------------------------|--------------------------|------------------------------|
|
|
192
|
+
| 🧪 [kettle-rb/rbs-merge on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix | ➖ |
|
|
193
|
+
| 🧊 [kettle-rb/rbs-merge on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix | ➖ |
|
|
194
|
+
| 🐙 [kettle-rb/rbs-merge on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix | [💚][gh-discussions] |
|
|
195
|
+
| 🎮️ [Discord Server][✉️discord-invite] | [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] | [Let's][✉️discord-invite] | [talk][✉️discord-invite] | [about][✉️discord-invite] | [this][✉️discord-invite] | [library!][✉️discord-invite] |
|
|
196
|
+
|
|
197
|
+
</details>
|
|
198
|
+
|
|
199
|
+
[gh-discussions]: https://github.com/kettle-rb/rbs-merge/discussions
|
|
200
|
+
|
|
201
|
+
### Enterprise Support [](https://tidelift.com/subscription/pkg/rubygems-rbs-merge?utm_source=rubygems-rbs-merge&utm_medium=referral&utm_campaign=readme)
|
|
202
|
+
|
|
203
|
+
Available as part of the Tidelift Subscription.
|
|
204
|
+
|
|
205
|
+
<details markdown="1">
|
|
206
|
+
<summary>Need enterprise-level guarantees?</summary>
|
|
207
|
+
|
|
208
|
+
The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
|
209
|
+
|
|
210
|
+
[![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]
|
|
211
|
+
|
|
212
|
+
- 💡Subscribe for support guarantees covering _all_ your FLOSS dependencies
|
|
213
|
+
- 💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]
|
|
214
|
+
- 💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers
|
|
215
|
+
|
|
216
|
+
Alternatively:
|
|
217
|
+
|
|
218
|
+
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
219
|
+
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
220
|
+
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
221
|
+
|
|
222
|
+
</details>
|
|
223
|
+
|
|
224
|
+
## ✨ Installation
|
|
225
|
+
|
|
226
|
+
Install the gem and add to the application's Gemfile by executing:
|
|
227
|
+
|
|
228
|
+
```console
|
|
229
|
+
bundle add rbs-merge
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
233
|
+
|
|
234
|
+
```console
|
|
235
|
+
gem install rbs-merge
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### 🔒 Secure Installation
|
|
239
|
+
|
|
240
|
+
<details markdown="1">
|
|
241
|
+
<summary>For Medium or High Security Installations</summary>
|
|
242
|
+
|
|
243
|
+
This gem is cryptographically signed, and has verifiable [SHA-256 and SHA-512][💎SHA_checksums] checksums by
|
|
244
|
+
[stone_checksums][💎stone_checksums]. Be sure the gem you install hasn’t been tampered with
|
|
245
|
+
by following the instructions below.
|
|
246
|
+
|
|
247
|
+
Add my public key (if you haven’t already, expires 2045-04-29) as a trusted certificate:
|
|
248
|
+
|
|
249
|
+
```console
|
|
250
|
+
gem cert --add <(curl -Ls https://raw.github.com/galtzo-floss/certs/main/pboling.pem)
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
You only need to do that once. Then proceed to install with:
|
|
254
|
+
|
|
255
|
+
```console
|
|
256
|
+
gem install rbs-merge -P HighSecurity
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
The `HighSecurity` trust profile will verify signed gems, and not allow the installation of unsigned dependencies.
|
|
260
|
+
|
|
261
|
+
If you want to up your security game full-time:
|
|
262
|
+
|
|
263
|
+
```console
|
|
264
|
+
bundle config set --global trust-policy MediumSecurity
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
`MediumSecurity` instead of `HighSecurity` is necessary if not all the gems you use are signed.
|
|
268
|
+
|
|
269
|
+
NOTE: Be prepared to track down certs for signed gems and add them the same way you added mine.
|
|
270
|
+
|
|
271
|
+
</details>
|
|
272
|
+
|
|
273
|
+
## ⚙️ Configuration
|
|
274
|
+
|
|
275
|
+
Rbs::Merge works out of the box with zero configuration, but offers customization options for advanced use cases.
|
|
276
|
+
|
|
277
|
+
### Signature Match Preference
|
|
278
|
+
|
|
279
|
+
Control which version to use when declarations have matching signatures but different content:
|
|
280
|
+
|
|
281
|
+
```ruby
|
|
282
|
+
# Use template version (for updating type definitions from a canonical source)
|
|
283
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
284
|
+
template,
|
|
285
|
+
destination,
|
|
286
|
+
preference: :template,
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
# Use destination version (for preserving local type customizations)
|
|
290
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
291
|
+
template,
|
|
292
|
+
destination,
|
|
293
|
+
preference: :destination, # This is the default
|
|
294
|
+
)
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**When to use each:**
|
|
298
|
+
|
|
299
|
+
- **`:template`** - Template contains canonical/updated type definitions
|
|
300
|
+
- Generated RBS files from `rbs prototype` that should replace older versions
|
|
301
|
+
- Type definition updates from upstream libraries
|
|
302
|
+
- Standardized type signatures that should be enforced
|
|
303
|
+
|
|
304
|
+
- **`:destination`** (default) - Destination contains customizations
|
|
305
|
+
- Hand-tuned type definitions with more specific types
|
|
306
|
+
- Local overrides for library types
|
|
307
|
+
- Project-specific type annotations
|
|
308
|
+
|
|
309
|
+
### Template-Only Declarations
|
|
310
|
+
|
|
311
|
+
Control whether to add declarations that only exist in the template:
|
|
312
|
+
|
|
313
|
+
```ruby
|
|
314
|
+
# Add template-only declarations (for merging new type definitions)
|
|
315
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
316
|
+
template,
|
|
317
|
+
destination,
|
|
318
|
+
add_template_only_nodes: true,
|
|
319
|
+
)
|
|
320
|
+
|
|
321
|
+
# Skip template-only declarations (for templates with placeholder types)
|
|
322
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
323
|
+
template,
|
|
324
|
+
destination,
|
|
325
|
+
add_template_only_nodes: false, # This is the default
|
|
326
|
+
)
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
**When to use each:**
|
|
330
|
+
|
|
331
|
+
- **`true`** - Template has new type definitions to add
|
|
332
|
+
- New classes/modules from updated code
|
|
333
|
+
- New method signatures that need type annotations
|
|
334
|
+
- Required type aliases or constants
|
|
335
|
+
|
|
336
|
+
- **`false`** (default) - Template has placeholder/example types
|
|
337
|
+
- Example type definitions that shouldn't be added
|
|
338
|
+
- Generated types that may not apply to destination
|
|
339
|
+
|
|
340
|
+
### Combined Configuration
|
|
341
|
+
|
|
342
|
+
For different merge scenarios:
|
|
343
|
+
|
|
344
|
+
```ruby
|
|
345
|
+
# Scenario 1: Update types from generated RBS (template wins, add new types)
|
|
346
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
347
|
+
generated_rbs,
|
|
348
|
+
existing_rbs,
|
|
349
|
+
preference: :template,
|
|
350
|
+
add_template_only_nodes: true,
|
|
351
|
+
)
|
|
352
|
+
# Result: All type definitions updated to match generated, new types added
|
|
353
|
+
|
|
354
|
+
# Scenario 2: Preserve custom types (destination wins, skip template-only)
|
|
355
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
356
|
+
library_types,
|
|
357
|
+
custom_types,
|
|
358
|
+
preference: :destination, # default
|
|
359
|
+
add_template_only_nodes: false, # default
|
|
360
|
+
)
|
|
361
|
+
# Result: Custom type refinements preserved, template-only types skipped
|
|
362
|
+
|
|
363
|
+
# Scenario 3: Merge new types but keep customizations
|
|
364
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
365
|
+
template_types,
|
|
366
|
+
project_types,
|
|
367
|
+
preference: :destination, # Keep custom type refinements
|
|
368
|
+
add_template_only_nodes: true, # But add new type definitions
|
|
369
|
+
)
|
|
370
|
+
# Result: Existing types keep destination definitions, new types added from template
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Custom Signature Generator
|
|
374
|
+
|
|
375
|
+
You can provide a custom signature generator to control how declarations are matched between template and destination files:
|
|
376
|
+
|
|
377
|
+
```ruby
|
|
378
|
+
signature_generator = lambda do |node|
|
|
379
|
+
case node
|
|
380
|
+
when RBS::AST::Declarations::Class
|
|
381
|
+
# Match classes by name only
|
|
382
|
+
[:class, node.name.to_s]
|
|
383
|
+
when RBS::AST::Declarations::TypeAlias
|
|
384
|
+
# Match type aliases by name
|
|
385
|
+
[:type_alias, node.name.to_s]
|
|
386
|
+
when RBS::AST::Members::MethodDefinition
|
|
387
|
+
# Match methods by name and kind
|
|
388
|
+
[:method, node.name.to_s, node.kind]
|
|
389
|
+
else
|
|
390
|
+
# Return node to fall through to default signature computation
|
|
391
|
+
node
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
396
|
+
template,
|
|
397
|
+
destination,
|
|
398
|
+
signature_generator: signature_generator,
|
|
399
|
+
)
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Freeze Blocks
|
|
403
|
+
|
|
404
|
+
Protect sections in the destination file from being overwritten by the template using freeze markers.
|
|
405
|
+
|
|
406
|
+
By default, Rbs::Merge uses `rbs-merge` as the freeze token:
|
|
407
|
+
|
|
408
|
+
```ruby
|
|
409
|
+
# In your destination.rbs file
|
|
410
|
+
# rbs-merge:freeze
|
|
411
|
+
type custom_config = { api_key: String, timeout: Integer }
|
|
412
|
+
# rbs-merge:unfreeze
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
You can customize the freeze token to match your project's conventions:
|
|
416
|
+
|
|
417
|
+
```ruby
|
|
418
|
+
# Use a custom freeze token
|
|
419
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
420
|
+
template,
|
|
421
|
+
destination,
|
|
422
|
+
freeze_token: "my-project", # Now uses # my-project:freeze / # my-project:unfreeze
|
|
423
|
+
)
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
Freeze blocks are **always preserved** from the destination file during merge, regardless of template content. They can be placed around:
|
|
427
|
+
|
|
428
|
+
- Type alias definitions
|
|
429
|
+
- Class/module declarations
|
|
430
|
+
- Interface definitions
|
|
431
|
+
- Method signatures within classes
|
|
432
|
+
|
|
433
|
+
This allows you to protect custom type definitions that should never be overwritten by template updates.
|
|
434
|
+
|
|
435
|
+
## 🔧 Basic Usage
|
|
436
|
+
|
|
437
|
+
### Simple Merge
|
|
438
|
+
|
|
439
|
+
The most basic usage merges two RBS files:
|
|
440
|
+
|
|
441
|
+
```ruby
|
|
442
|
+
require "rbs/merge"
|
|
443
|
+
|
|
444
|
+
template = File.read("template.rbs")
|
|
445
|
+
destination = File.read("destination.rbs")
|
|
446
|
+
|
|
447
|
+
merger = Rbs::Merge::SmartMerger.new(template, destination)
|
|
448
|
+
result = merger.merge
|
|
449
|
+
|
|
450
|
+
File.write("merged.rbs", result.to_s)
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
### Understanding the Merge
|
|
454
|
+
|
|
455
|
+
Rbs::Merge intelligently combines files by:
|
|
456
|
+
|
|
457
|
+
1. **Parsing RBS**: Uses the official RBS parser to understand type structure
|
|
458
|
+
2. **Finding Matches**: Identifies matching declarations between files by signature
|
|
459
|
+
3. **Resolving Conflicts**: Uses configurable preference to choose between versions
|
|
460
|
+
4. **Preserving Context**: Maintains comments and freeze blocks
|
|
461
|
+
|
|
462
|
+
Example:
|
|
463
|
+
|
|
464
|
+
```ruby
|
|
465
|
+
# template.rbs
|
|
466
|
+
class Foo
|
|
467
|
+
def bar: (String) -> Integer
|
|
468
|
+
def new_method: () -> void
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
type my_type = String
|
|
472
|
+
|
|
473
|
+
# destination.rbs
|
|
474
|
+
class Foo
|
|
475
|
+
def bar: (Integer) -> String # Custom signature
|
|
476
|
+
def custom_method: () -> void
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
type my_type = Integer | String # Expanded type
|
|
480
|
+
|
|
481
|
+
# After merge with default settings (destination preference):
|
|
482
|
+
# - Foo#bar keeps destination signature: (Integer) -> String
|
|
483
|
+
# - Foo#custom_method preserved (destination-only)
|
|
484
|
+
# - Foo#new_method NOT added (add_template_only_nodes: false)
|
|
485
|
+
# - my_type keeps destination definition: Integer | String
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
### Working with Generated RBS
|
|
489
|
+
|
|
490
|
+
When merging RBS files generated by `rbs prototype`:
|
|
491
|
+
|
|
492
|
+
```ruby
|
|
493
|
+
require "rbs/merge"
|
|
494
|
+
|
|
495
|
+
# Generate new type signatures
|
|
496
|
+
generated = `rbs prototype rb lib/my_class.rb`
|
|
497
|
+
existing = File.read("sig/my_class.rbs")
|
|
498
|
+
|
|
499
|
+
merger = Rbs::Merge::SmartMerger.new(
|
|
500
|
+
generated,
|
|
501
|
+
existing,
|
|
502
|
+
preference: :template, # Use generated signatures
|
|
503
|
+
add_template_only_nodes: true, # Add new methods
|
|
504
|
+
)
|
|
505
|
+
result = merger.merge
|
|
506
|
+
|
|
507
|
+
File.write("sig/my_class.rbs", result.to_s)
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
### Protecting Custom Types
|
|
511
|
+
|
|
512
|
+
Use freeze blocks to protect hand-crafted type definitions:
|
|
513
|
+
|
|
514
|
+
```ruby
|
|
515
|
+
# destination.rbs
|
|
516
|
+
class MyAPI
|
|
517
|
+
# rbs-merge:freeze
|
|
518
|
+
# These types are carefully tuned and should not be overwritten
|
|
519
|
+
def fetch: [T] (String path, Class[T] type) -> T
|
|
520
|
+
def post: [T, U] (String path, T body, Class[U] response_type) -> U
|
|
521
|
+
# rbs-merge:unfreeze
|
|
522
|
+
|
|
523
|
+
def version: () -> String
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
The generic method signatures in the freeze block will be preserved even if the template has simpler signatures.
|
|
528
|
+
|
|
529
|
+
### Merge Result Information
|
|
530
|
+
|
|
531
|
+
The merge result provides detailed information about decisions made:
|
|
532
|
+
|
|
533
|
+
```ruby
|
|
534
|
+
merger = Rbs::Merge::SmartMerger.new(template, destination)
|
|
535
|
+
result = merger.merge
|
|
536
|
+
|
|
537
|
+
# Get the merged content
|
|
538
|
+
puts result.to_s
|
|
539
|
+
|
|
540
|
+
# Check if anything was merged
|
|
541
|
+
puts "Empty result" if result.empty?
|
|
542
|
+
|
|
543
|
+
# Get summary of decisions
|
|
544
|
+
summary = result.summary
|
|
545
|
+
puts "Total decisions: #{summary[:total_decisions]}"
|
|
546
|
+
puts "Total lines: #{summary[:total_lines]}"
|
|
547
|
+
puts "By decision type: #{summary[:by_decision]}"
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
### Error Handling
|
|
551
|
+
|
|
552
|
+
Rbs::Merge provides specific error types for different failure modes:
|
|
553
|
+
|
|
554
|
+
```ruby
|
|
555
|
+
require "rbs/merge"
|
|
556
|
+
|
|
557
|
+
begin
|
|
558
|
+
merger = Rbs::Merge::SmartMerger.new(template, destination)
|
|
559
|
+
result = merger.merge
|
|
560
|
+
rescue Rbs::Merge::TemplateParseError => e
|
|
561
|
+
puts "Template has syntax errors: #{e.message}"
|
|
562
|
+
rescue Rbs::Merge::DestinationParseError => e
|
|
563
|
+
puts "Destination has syntax errors: #{e.message}"
|
|
564
|
+
rescue Rbs::Merge::FreezeNode::InvalidStructureError => e
|
|
565
|
+
puts "Invalid freeze block structure: #{e.message}"
|
|
566
|
+
puts " Start line: #{e.start_line}"
|
|
567
|
+
puts " End line: #{e.end_line}"
|
|
568
|
+
end
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
## 🦷 FLOSS Funding
|
|
572
|
+
|
|
573
|
+
While kettle-rb tools are free software and will always be, the project would benefit immensely from some funding.
|
|
574
|
+
Raising a monthly budget of... "dollars" would make the project more sustainable.
|
|
575
|
+
|
|
576
|
+
We welcome both individual and corporate sponsors! We also offer a
|
|
577
|
+
wide array of funding channels to account for your preferences
|
|
578
|
+
(although currently [Open Collective][🖇osc] is our preferred funding platform).
|
|
579
|
+
|
|
580
|
+
**If you're working in a company that's making significant use of kettle-rb tools we'd
|
|
581
|
+
appreciate it if you suggest to your company to become a kettle-rb sponsor.**
|
|
582
|
+
|
|
583
|
+
You can support the development of kettle-rb tools via
|
|
584
|
+
[GitHub Sponsors][🖇sponsor],
|
|
585
|
+
[Liberapay][⛳liberapay],
|
|
586
|
+
[PayPal][🖇paypal],
|
|
587
|
+
[Open Collective][🖇osc]
|
|
588
|
+
and [Tidelift][🏙️entsup-tidelift].
|
|
589
|
+
|
|
590
|
+
| 📍 NOTE |
|
|
591
|
+
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
592
|
+
| If doing a sponsorship in the form of donation is problematic for your company <br/> from an accounting standpoint, we'd recommend the use of Tidelift, <br/> where you can get a support-like subscription instead. |
|
|
593
|
+
|
|
594
|
+
### Open Collective for Individuals
|
|
595
|
+
|
|
596
|
+
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/kettle-rb#backer)]
|
|
597
|
+
|
|
598
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
599
|
+
|
|
600
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:START -->
|
|
601
|
+
No backers yet. Be the first!
|
|
602
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:END -->
|
|
603
|
+
|
|
604
|
+
### Open Collective for Organizations
|
|
605
|
+
|
|
606
|
+
Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/kettle-rb#sponsor)]
|
|
607
|
+
|
|
608
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
609
|
+
|
|
610
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:START -->
|
|
611
|
+
No sponsors yet. Be the first!
|
|
612
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:END -->
|
|
613
|
+
|
|
614
|
+
[kettle-readme-backers]: https://github.com/kettle-rb/rbs-merge/blob/main/exe/kettle-readme-backers
|
|
615
|
+
|
|
616
|
+
### Another way to support open-source
|
|
617
|
+
|
|
618
|
+
I’m driven by a passion to foster a thriving open-source community – a space where people can tackle complex problems, no matter how small. Revitalizing libraries that have fallen into disrepair, and building new libraries focused on solving real-world challenges, are my passions. I was recently affected by layoffs, and the tech jobs market is unwelcoming. I’m reaching out here because your support would significantly aid my efforts to provide for my family, and my farm (11 🐔 chickens, 2 🐶 dogs, 3 🐰 rabbits, 8 🐈 cats).
|
|
619
|
+
|
|
620
|
+
If you work at a company that uses my work, please encourage them to support me as a corporate sponsor. My work on gems you use might show up in `bundle fund`.
|
|
621
|
+
|
|
622
|
+
I’m developing a new library, [floss_funding][🖇floss-funding-gem], designed to empower open-source developers like myself to get paid for the work we do, in a sustainable way. Please give it a look.
|
|
623
|
+
|
|
624
|
+
**[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
|
|
625
|
+
|
|
626
|
+
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![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 on Polar][🖇polar-img]][🖇polar] [![Donate to my FLOSS efforts at ko-fi.com][🖇kofi-img]][🖇kofi] [![Donate to my FLOSS efforts using Patreon][🖇patreon-img]][🖇patreon]
|
|
627
|
+
|
|
628
|
+
## 🔐 Security
|
|
629
|
+
|
|
630
|
+
See [SECURITY.md][🔐security].
|
|
631
|
+
|
|
632
|
+
## 🤝 Contributing
|
|
633
|
+
|
|
634
|
+
If you need some ideas of where to help, you could work on adding more code coverage,
|
|
635
|
+
or if it is already 💯 (see [below](#code-coverage)) check [reek](REEK), [issues][🤝gh-issues], or [PRs][🤝gh-pulls],
|
|
636
|
+
or use the gem and think about how it could be better.
|
|
637
|
+
|
|
638
|
+
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
|
639
|
+
|
|
640
|
+
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
|
641
|
+
|
|
642
|
+
### 🚀 Release Instructions
|
|
643
|
+
|
|
644
|
+
See [CONTRIBUTING.md][🤝contributing].
|
|
645
|
+
|
|
646
|
+
### Code Coverage
|
|
647
|
+
|
|
648
|
+
[![Coverage Graph][🏀codecov-g]][🏀codecov]
|
|
649
|
+
|
|
650
|
+
[![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls]
|
|
651
|
+
|
|
652
|
+
[![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov]
|
|
653
|
+
|
|
654
|
+
### 🪇 Code of Conduct
|
|
655
|
+
|
|
656
|
+
Everyone interacting with this project's codebases, issue trackers,
|
|
657
|
+
chat rooms and mailing lists agrees to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
|
|
658
|
+
|
|
659
|
+
## 🌈 Contributors
|
|
660
|
+
|
|
661
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
|
662
|
+
|
|
663
|
+
Made with [contributors-img][🖐contrib-rocks].
|
|
664
|
+
|
|
665
|
+
Also see GitLab Contributors: [https://gitlab.com/kettle-rb/rbs-merge/-/graphs/main][🚎contributors-gl]
|
|
666
|
+
|
|
667
|
+
<details>
|
|
668
|
+
<summary>⭐️ Star History</summary>
|
|
669
|
+
|
|
670
|
+
<a href="https://star-history.com/#kettle-rb/rbs-merge&Date">
|
|
671
|
+
<picture>
|
|
672
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=kettle-rb/rbs-merge&type=Date&theme=dark" />
|
|
673
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=kettle-rb/rbs-merge&type=Date" />
|
|
674
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=kettle-rb/rbs-merge&type=Date" />
|
|
675
|
+
</picture>
|
|
676
|
+
</a>
|
|
677
|
+
|
|
678
|
+
</details>
|
|
679
|
+
|
|
680
|
+
## 📌 Versioning
|
|
681
|
+
|
|
682
|
+
This Library adheres to [![Semantic Versioning 2.0.0][📌semver-img]][📌semver].
|
|
683
|
+
Violations of this scheme should be reported as bugs.
|
|
684
|
+
Specifically, if a minor or patch version is released that breaks backward compatibility,
|
|
685
|
+
a new version should be immediately released that restores compatibility.
|
|
686
|
+
Breaking changes to the public API will only be introduced with new major versions.
|
|
687
|
+
|
|
688
|
+
> dropping support for a platform is both obviously and objectively a breaking change <br/>
|
|
689
|
+
>—Jordan Harband ([@ljharb](https://github.com/ljharb), maintainer of SemVer) [in SemVer issue 716][📌semver-breaking]
|
|
690
|
+
|
|
691
|
+
I understand that policy doesn't work universally ("exceptions to every rule!"),
|
|
692
|
+
but it is the policy here.
|
|
693
|
+
As such, in many cases it is good to specify a dependency on this library using
|
|
694
|
+
the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
|
|
695
|
+
|
|
696
|
+
For example:
|
|
697
|
+
|
|
698
|
+
```ruby
|
|
699
|
+
spec.add_dependency("rbs-merge", "~> 1.0")
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
<details markdown="1">
|
|
703
|
+
<summary>📌 Is "Platform Support" part of the public API? More details inside.</summary>
|
|
704
|
+
|
|
705
|
+
SemVer should, IMO, but doesn't explicitly, say that dropping support for specific Platforms
|
|
706
|
+
is a *breaking change* to an API, and for that reason the bike shedding is endless.
|
|
707
|
+
|
|
708
|
+
To get a better understanding of how SemVer is intended to work over a project's lifetime,
|
|
709
|
+
read this article from the creator of SemVer:
|
|
710
|
+
|
|
711
|
+
- ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
|
|
712
|
+
|
|
713
|
+
</details>
|
|
714
|
+
|
|
715
|
+
See [CHANGELOG.md][📌changelog] for a list of releases.
|
|
716
|
+
|
|
717
|
+
## 📄 License
|
|
718
|
+
|
|
719
|
+
The gem is available as open source under the terms of
|
|
720
|
+
the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
|
|
721
|
+
See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
|
|
722
|
+
|
|
723
|
+
### © Copyright
|
|
724
|
+
|
|
725
|
+
<ul>
|
|
726
|
+
<li>
|
|
727
|
+
Copyright (c) 2025 Peter H. Boling, of
|
|
728
|
+
<a href="https://discord.gg/3qme4XHNKN">
|
|
729
|
+
Galtzo.com
|
|
730
|
+
<picture>
|
|
731
|
+
<img src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px-blank.svg" alt="Galtzo.com Logo (Wordless) by Aboling0, CC BY-SA 4.0" width="24">
|
|
732
|
+
</picture>
|
|
733
|
+
</a>, and rbs-merge contributors.
|
|
734
|
+
</li>
|
|
735
|
+
</ul>
|
|
736
|
+
|
|
737
|
+
## 🤑 A request for help
|
|
738
|
+
|
|
739
|
+
Maintainers have teeth and need to pay their dentists.
|
|
740
|
+
After getting laid off in an RIF in March, and encountering difficulty finding a new one,
|
|
741
|
+
I began spending most of my time building open source tools.
|
|
742
|
+
I'm hoping to be able to pay for my kids' health insurance this month,
|
|
743
|
+
so if you value the work I am doing, I need your support.
|
|
744
|
+
Please consider sponsoring me or the project.
|
|
745
|
+
|
|
746
|
+
To join the community or get help 👇️ Join the Discord.
|
|
747
|
+
|
|
748
|
+
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
749
|
+
|
|
750
|
+
To say "thanks!" ☝️ Join the Discord or 👇️ send money.
|
|
751
|
+
|
|
752
|
+
[![Sponsor kettle-rb/rbs-merge on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
|
|
753
|
+
|
|
754
|
+
### Please give the project a star ⭐ ♥.
|
|
755
|
+
|
|
756
|
+
Thanks for RTFM. ☺️
|
|
757
|
+
|
|
758
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
|
|
759
|
+
[⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
|
|
760
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
|
761
|
+
[🖇osc-all-img]: https://img.shields.io/opencollective/all/kettle-rb
|
|
762
|
+
[🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/kettle-rb
|
|
763
|
+
[🖇osc-backers-img]: https://img.shields.io/opencollective/backers/kettle-rb
|
|
764
|
+
[🖇osc-backers]: https://opencollective.com/kettle-rb#backer
|
|
765
|
+
[🖇osc-backers-i]: https://opencollective.com/kettle-rb/backers/badge.svg?style=flat
|
|
766
|
+
[🖇osc-sponsors]: https://opencollective.com/kettle-rb#sponsor
|
|
767
|
+
[🖇osc-sponsors-i]: https://opencollective.com/kettle-rb/sponsors/badge.svg?style=flat
|
|
768
|
+
[🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/kettle-rb?style=for-the-badge
|
|
769
|
+
[🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/kettle-rb?style=for-the-badge
|
|
770
|
+
[🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/kettle-rb?style=for-the-badge
|
|
771
|
+
[🖇osc]: https://opencollective.com/kettle-rb
|
|
772
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
773
|
+
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
774
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
775
|
+
[🖇polar-img]: https://img.shields.io/badge/polar-donate-a51611.svg?style=flat
|
|
776
|
+
[🖇polar]: https://polar.sh/pboling
|
|
777
|
+
[🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
|
|
778
|
+
[🖇kofi]: https://ko-fi.com/O5O86SNP4
|
|
779
|
+
[🖇patreon-img]: https://img.shields.io/badge/patreon-donate-a51611.svg?style=flat
|
|
780
|
+
[🖇patreon]: https://patreon.com/galtzo
|
|
781
|
+
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
|
|
782
|
+
[🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
|
|
783
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
|
784
|
+
[🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
|
|
785
|
+
[🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
|
|
786
|
+
[🖇paypal]: https://www.paypal.com/paypalme/peterboling
|
|
787
|
+
[🖇floss-funding.dev]: https://floss-funding.dev
|
|
788
|
+
[🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
|
|
789
|
+
[✉️discord-invite]: https://discord.gg/3qme4XHNKN
|
|
790
|
+
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
|
|
791
|
+
[✉️ruby-friends-img]: https://img.shields.io/badge/daily.dev-%F0%9F%92%8E_Ruby_Friends-0A0A0A?style=for-the-badge&logo=dailydotdev&logoColor=white
|
|
792
|
+
[✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
|
|
793
|
+
|
|
794
|
+
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
795
|
+
[⛳️gem-namespace]: https://github.com/kettle-rb/rbs-merge
|
|
796
|
+
[⛳️namespace-img]: https://img.shields.io/badge/namespace-Rbs::Merge-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
797
|
+
[⛳️gem-name]: https://bestgems.org/gems/rbs-merge
|
|
798
|
+
[⛳️name-img]: https://img.shields.io/badge/name-rbs--merge-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
|
|
799
|
+
[⛳️tag-img]: https://img.shields.io/github/tag/kettle-rb/rbs-merge.svg
|
|
800
|
+
[⛳️tag]: http://github.com/kettle-rb/rbs-merge/releases
|
|
801
|
+
[🚂maint-blog]: http://www.railsbling.com/tags/rbs-merge
|
|
802
|
+
[🚂maint-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
|
|
803
|
+
[🚂maint-contact]: http://www.railsbling.com/contact
|
|
804
|
+
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|
|
805
|
+
[💖🖇linkedin]: http://www.linkedin.com/in/peterboling
|
|
806
|
+
[💖🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-LinkedIn-0B66C2?style=flat&logo=newjapanprowrestling
|
|
807
|
+
[💖✌️wellfound]: https://wellfound.com/u/peter-boling
|
|
808
|
+
[💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
|
|
809
|
+
[💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
|
810
|
+
[💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
|
|
811
|
+
[💖🐘ruby-mast]: https://ruby.social/@galtzo
|
|
812
|
+
[💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https://ruby.social&style=flat&logo=mastodon&label=Ruby%20@galtzo
|
|
813
|
+
[💖🦋bluesky]: https://bsky.app/profile/galtzo.com
|
|
814
|
+
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
|
|
815
|
+
[💖🌳linktree]: https://linktr.ee/galtzo
|
|
816
|
+
[💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
|
|
817
|
+
[💖💁🏼♂️devto]: https://dev.to/galtzo
|
|
818
|
+
[💖💁🏼♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
|
|
819
|
+
[💖💁🏼♂️aboutme]: https://about.me/peter.boling
|
|
820
|
+
[💖💁🏼♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
|
|
821
|
+
[💖🧊berg]: https://codeberg.org/pboling
|
|
822
|
+
[💖🐙hub]: https://github.org/pboling
|
|
823
|
+
[💖🛖hut]: https://sr.ht/~galtzo/
|
|
824
|
+
[💖🧪lab]: https://gitlab.com/pboling
|
|
825
|
+
[👨🏼🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
|
|
826
|
+
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
|
827
|
+
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
|
828
|
+
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
|
829
|
+
[🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-rbs-merge?utm_source=rubygems-rbs-merge&utm_medium=referral&utm_campaign=readme
|
|
830
|
+
[🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
|
|
831
|
+
[🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
|
|
832
|
+
[💁🏼♂️peterboling]: http://www.peterboling.com
|
|
833
|
+
[🚂railsbling]: http://www.railsbling.com
|
|
834
|
+
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
|
835
|
+
[📜src-gl]: https://gitlab.com/kettle-rb/rbs-merge/
|
|
836
|
+
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
|
837
|
+
[📜src-cb]: https://codeberg.org/kettle-rb/rbs-merge
|
|
838
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=Github&logoColor=green
|
|
839
|
+
[📜src-gh]: https://github.com/kettle-rb/rbs-merge
|
|
840
|
+
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
841
|
+
[📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
842
|
+
[📜gl-wiki]: https://gitlab.com/kettle-rb/rbs-merge/-/wikis/home
|
|
843
|
+
[📜gh-wiki]: https://github.com/kettle-rb/rbs-merge/wiki
|
|
844
|
+
[📜gl-wiki-img]: https://img.shields.io/badge/wiki-examples-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
|
|
845
|
+
[📜gh-wiki-img]: https://img.shields.io/badge/wiki-examples-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
|
|
846
|
+
[👽dl-rank]: https://bestgems.org/gems/rbs-merge
|
|
847
|
+
[👽dl-ranki]: https://img.shields.io/gem/rd/rbs-merge.svg
|
|
848
|
+
[👽oss-help]: https://www.codetriage.com/kettle-rb/rbs-merge
|
|
849
|
+
[👽oss-helpi]: https://www.codetriage.com/kettle-rb/rbs-merge/badges/users.svg
|
|
850
|
+
[👽version]: https://bestgems.org/gems/rbs-merge
|
|
851
|
+
[👽versioni]: https://img.shields.io/gem/v/rbs-merge.svg
|
|
852
|
+
[🏀qlty-mnt]: https://qlty.sh/gh/kettle-rb/projects/rbs-merge
|
|
853
|
+
[🏀qlty-mnti]: https://qlty.sh/gh/kettle-rb/projects/rbs-merge/maintainability.svg
|
|
854
|
+
[🏀qlty-cov]: https://qlty.sh/gh/kettle-rb/projects/rbs-merge/metrics/code?sort=coverageRating
|
|
855
|
+
[🏀qlty-covi]: https://qlty.sh/gh/kettle-rb/projects/rbs-merge/coverage.svg
|
|
856
|
+
[🏀codecov]: https://codecov.io/gh/kettle-rb/rbs-merge
|
|
857
|
+
[🏀codecovi]: https://codecov.io/gh/kettle-rb/rbs-merge/graph/badge.svg
|
|
858
|
+
[🏀coveralls]: https://coveralls.io/github/kettle-rb/rbs-merge?branch=main
|
|
859
|
+
[🏀coveralls-img]: https://coveralls.io/repos/github/kettle-rb/rbs-merge/badge.svg?branch=main
|
|
860
|
+
[🖐codeQL]: https://github.com/kettle-rb/rbs-merge/security/code-scanning
|
|
861
|
+
[🖐codeQL-img]: https://github.com/kettle-rb/rbs-merge/actions/workflows/codeql-analysis.yml/badge.svg
|
|
862
|
+
[🚎2-cov-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/coverage.yml
|
|
863
|
+
[🚎2-cov-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/coverage.yml/badge.svg
|
|
864
|
+
[🚎3-hd-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/heads.yml
|
|
865
|
+
[🚎3-hd-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/heads.yml/badge.svg
|
|
866
|
+
[🚎5-st-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/style.yml
|
|
867
|
+
[🚎5-st-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/style.yml/badge.svg
|
|
868
|
+
[🚎6-s-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/supported.yml
|
|
869
|
+
[🚎6-s-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/supported.yml/badge.svg
|
|
870
|
+
[🚎9-t-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/truffle.yml
|
|
871
|
+
[🚎9-t-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/truffle.yml/badge.svg
|
|
872
|
+
[🚎11-c-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/current.yml
|
|
873
|
+
[🚎11-c-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/current.yml/badge.svg
|
|
874
|
+
[🚎12-crh-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/dep-heads.yml
|
|
875
|
+
[🚎12-crh-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/dep-heads.yml/badge.svg
|
|
876
|
+
[🚎13-🔒️-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/locked_deps.yml
|
|
877
|
+
[🚎13-🔒️-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/locked_deps.yml/badge.svg
|
|
878
|
+
[🚎14-🔓️-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/unlocked_deps.yml
|
|
879
|
+
[🚎14-🔓️-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/unlocked_deps.yml/badge.svg
|
|
880
|
+
[🚎15-🪪-wf]: https://github.com/kettle-rb/rbs-merge/actions/workflows/license-eye.yml
|
|
881
|
+
[🚎15-🪪-wfi]: https://github.com/kettle-rb/rbs-merge/actions/workflows/license-eye.yml/badge.svg
|
|
882
|
+
[💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
883
|
+
[💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
884
|
+
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
|
885
|
+
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
|
886
|
+
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
887
|
+
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
|
888
|
+
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
|
|
889
|
+
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
|
890
|
+
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
|
891
|
+
[🤝gh-issues]: https://github.com/kettle-rb/rbs-merge/issues
|
|
892
|
+
[🤝gh-pulls]: https://github.com/kettle-rb/rbs-merge/pulls
|
|
893
|
+
[🤝gl-issues]: https://gitlab.com/kettle-rb/rbs-merge/-/issues
|
|
894
|
+
[🤝gl-pulls]: https://gitlab.com/kettle-rb/rbs-merge/-/merge_requests
|
|
895
|
+
[🤝cb-issues]: https://codeberg.org/kettle-rb/rbs-merge/issues
|
|
896
|
+
[🤝cb-pulls]: https://codeberg.org/kettle-rb/rbs-merge/pulls
|
|
897
|
+
[🤝cb-donate]: https://donate.codeberg.org/
|
|
898
|
+
[🤝contributing]: CONTRIBUTING.md
|
|
899
|
+
[🏀codecov-g]: https://codecov.io/gh/kettle-rb/rbs-merge/graphs/tree.svg
|
|
900
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
|
901
|
+
[🖐contributors]: https://github.com/kettle-rb/rbs-merge/graphs/contributors
|
|
902
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=kettle-rb/rbs-merge
|
|
903
|
+
[🚎contributors-gl]: https://gitlab.com/kettle-rb/rbs-merge/-/graphs/main
|
|
904
|
+
[🪇conduct]: CODE_OF_CONDUCT.md
|
|
905
|
+
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-259D6C.svg
|
|
906
|
+
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
|
907
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
|
908
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
|
|
909
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
|
910
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
|
911
|
+
[📌changelog]: CHANGELOG.md
|
|
912
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
|
913
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-34495e.svg?style=flat
|
|
914
|
+
[📌gitmoji]: https://gitmoji.dev
|
|
915
|
+
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
916
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
917
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.348-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
918
|
+
[🔐security]: SECURITY.md
|
|
919
|
+
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
920
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
921
|
+
[📄license]: LICENSE.txt
|
|
922
|
+
[📄license-ref]: https://opensource.org/licenses/MIT
|
|
923
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
|
|
924
|
+
[📄license-compat]: https://dev.to/galtzo/how-to-check-license-compatibility-41h0
|
|
925
|
+
[📄license-compat-img]: https://img.shields.io/badge/Apache_Compatible:_Category_A-%E2%9C%93-259D6C.svg?style=flat&logo=Apache
|
|
926
|
+
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
927
|
+
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
|
|
928
|
+
[🚎yard-current]: http://rubydoc.info/gems/rbs-merge
|
|
929
|
+
[🚎yard-head]: https://rbs-merge.galtzo.com
|
|
930
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
931
|
+
[💎SHA_checksums]: https://gitlab.com/kettle-rb/rbs-merge/-/tree/main/checksums
|
|
932
|
+
[💎rlts]: https://github.com/rubocop-lts/rubocop-lts
|
|
933
|
+
[💎rlts-img]: https://img.shields.io/badge/code_style_&_linting-rubocop--lts-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
934
|
+
[💎appraisal2]: https://github.com/appraisal-rb/appraisal2
|
|
935
|
+
[💎appraisal2-img]: https://img.shields.io/badge/appraised_by-appraisal2-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
936
|
+
[💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
|