include_with_respect 1.0.1 → 1.0.3

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.
data/README.md CHANGED
@@ -1,45 +1,50 @@
1
- # IncludeWithRespect
1
+ <a href="https://github.com/galtzo-floss"><img alt="galtzo-floss Logo by GitHub" src="https://github.com/galtzo-floss.png?size=192" width="14%" align="right"/></a>
2
2
 
3
- *Find out if your include/extend hooks are misbehaving!*
3
+ # 🫡 IncludeWithRespect
4
4
 
5
- ## Why did I make this gem?
5
+ [![Version][👽versioni]][👽version] [![Ruby Users Forum][✉️ruby-forum-top-img]][✉️ruby-forum] [![GitHub tag (latest SemVer)][⛳️tag-img]][⛳️tag] [![License: MIT][📄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 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] [![CI JRuby][🚎10-j-wfi]][🚎10-j-wf] [![Deps Locked][🚎13-🔒️-wfi]][🚎13-🔒️-wf] [![Deps Unlocked][🚎14-🔓️-wfi]][🚎14-🔓️-wf] [![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf] [![CI Style][🚎5-st-wfi]][🚎5-st-wf] [![Apache SkyWalking Eyes License Compatibility Check][🚎15-🪪-wfi]][🚎15-🪪-wf]
6
6
 
7
- Modules have hooks on `include` and `extend`, among others. These will run every time a module is included or extended into another module or class. If the hooks should only run once, (think shared state), then running them multiple times can cause difficult to trace bugs. This gem allows developers to trace modules that are re-included multiple times into other objects.
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
- | Project | IncludeWithRespect |
10
- |------------------------ | ----------------------- |
11
- | gem name | [include_with_respect][rubygems] |
12
- | license | [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][mit] |
13
- | download rank | [![Downloads Today](https://img.shields.io/gem/rd/include_with_respect.svg)][github] |
14
- | version | [![Version](https://img.shields.io/gem/v/include_with_respect.svg)][rubygems] |
15
- | dependencies | [![Depfu](https://badges.depfu.com/badges/7ab03542cae3755d64038f7b3e7af53e/count.svg)](https://depfu.com/github/pboling/include_with_respect?project_id=10361) |
16
- | continuous integration | [![Build Status](https://travis-ci.org/pboling/include_with_respect.svg?branch=master)](https://travis-ci.org/pboling/include_with_respect) |
17
- | test coverage | [![Test Coverage](https://api.codeclimate.com/v1/badges/604a8f3a996c008cb2ae/test_coverage)](https://codeclimate.com/github/pboling/include_with_respect/test_coverage) |
18
- | maintainability | [![Maintainability](https://api.codeclimate.com/v1/badges/604a8f3a996c008cb2ae/maintainability)](https://codeclimate.com/github/pboling/include_with_respect/maintainability) |
19
- | code triage | [![Open Source Helpers](https://www.codetriage.com/pboling/include_with_respect/badges/users.svg)](https://www.codetriage.com/pboling/include_with_respect) |
20
- | homepage | [on Github.com][homepage], [on Railsbling.com][blogpage] |
21
- | documentation | [on RDoc.info][documentation] |
22
- | Spread ~♡ⓛⓞⓥⓔ♡~ | [🌍 🌎 🌏][about-me], [🍚][crowdrise], [👼][angel-list], [🐛][topcoder], [:shipit:][coderwall], [![Tweet Peter][twitter-followers]][twitter] |
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.
23
10
 
11
+ [![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 at ko-fi.com][🖇kofi-img]][🖇kofi]
24
12
 
25
- ## Installation
13
+ <!-- kettle-sponsors:shields:start -->
14
+ <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/github.svg" alt="services: GitHub"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/healthsherpa.svg" alt="sponsor: HealthSherpa"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/microsoft.svg" alt="compute: Microsoft"></a>
15
+ <!-- kettle-sponsors:shields:end -->
26
16
 
27
- Add this line to your application's Gemfile:
17
+ ## 🌻 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>
28
18
 
29
- ```ruby
30
- gem 'include_with_respect'
19
+ ## ✨ Installation
20
+
21
+ Install the gem and add to the application's Gemfile by executing:
22
+
23
+ ```console
24
+ bundle add include_with_respect
31
25
  ```
32
26
 
33
- And then execute:
27
+ If bundler is not being used to manage dependencies, install the gem by executing:
34
28
 
35
- $ bundle
29
+ ```console
30
+ gem install include_with_respect
31
+ ```
36
32
 
37
- Or install it yourself as:
33
+ ## ⚙️ Configuration
38
34
 
39
- $ gem install include_with_respect
35
+ The default behavior raises when a module is included or extended more than
36
+ once. Configure the policy globally through
37
+ `IncludeWithRespect.configuration.level`; the supported levels are used by
38
+ the module’s duplicate-include handling, and can also be changed for a
39
+ specific test or integration.
40
40
 
41
- ## Usage
41
+ ```ruby
42
+ require "include_with_respect"
42
43
 
44
+ IncludeWithRespect.configuration.level = :warning
45
+ ```
46
+
47
+ ## 🔧 Basic Usage
43
48
 
44
49
  ### With Ruby `Class`:
45
50
 
@@ -113,61 +118,451 @@ end
113
118
 
114
119
  Same results as the other usage examples.
115
120
 
116
- ## Development
121
+ ## 🦷 FLOSS Funding
122
+
123
+ While galtzo-floss tools are free software and will always be, the project would benefit immensely from some funding.
124
+ Raising a monthly budget of... "dollars" would make the project more sustainable.
125
+
126
+ We welcome both individual and corporate sponsors! We also offer a
127
+ wide array of funding channels to account for your preferences.
128
+ Currently, [Open Collective][🖇osc] is our preferred funding platform.
129
+
130
+ ### Individual Support
131
+
132
+ You can support the development of galtzo-floss tools via
133
+ [GitHub Sponsors][🖇sponsor],
134
+ [Liberapay][⛳liberapay],
135
+ [Open Collective][🖇osc],
136
+ and [PayPal][🖇paypal].
137
+
138
+ ### Open Collective for Individuals
139
+
140
+ Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/galtzo-floss#backer)]
141
+
142
+ NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
143
+
144
+ <!-- OPENCOLLECTIVE-INDIVIDUALS:START -->
145
+ No backers yet. Be the first!
146
+ <!-- OPENCOLLECTIVE-INDIVIDUALS:END -->
147
+
148
+ ### Open Collective for Organizations
149
+
150
+ Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/galtzo-floss#sponsor)]
151
+
152
+ NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
153
+
154
+ <!-- OPENCOLLECTIVE-ORGANIZATIONS:START -->
155
+ No sponsors yet. Be the first!
156
+ <!-- OPENCOLLECTIVE-ORGANIZATIONS:END -->
157
+
158
+ [kettle-readme-backers]: https://github.com/galtzo-floss/include_with_respect/blob/main/bin/kettle-readme-backers
159
+
160
+ ### Another way to support open-source
161
+
162
+ 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. Maintainers have teeth and need to pay their dentists; after getting laid off in an RIF, I began spending most of my time building open source tools full-time. Your support significantly aids my efforts to provide for my family (including health insurance) and my farm (11 🐔 chickens, 2 🐶 dogs, 3 🐰 rabbits, 8 🐈‍ cats).
163
+
164
+ 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`.
165
+
166
+ 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.
167
+
168
+ **[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
169
+
170
+ To join the community or get help, use the RubyForum or Discord. You can send support with the sponsor buttons at the end of this README.
171
+
172
+ [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
173
+
174
+ ## 🏢 Corporate Sponsorship
175
+
176
+ <!-- kettle-sponsors:cards:start -->
177
+ <a href="https://github.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/github.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/github.svg" align="top" alt="Sponsor: GitHub - Copilot Max"></picture></a> <a href="https://healthsherpa.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/healthsherpa.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/healthsherpa.svg" align="top" alt="Sponsor: HealthSherpa - GitHub Sponsors =&gt; @pboling (maintainer)"></picture></a> <a href="https://opensource.microsoft.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/microsoft.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/microsoft.svg" align="top" alt="Sponsor: Microsoft - Azure compute resources"></picture></a>
178
+
179
+ <sub>Create sponsorship badges for your project with [kettle-sponsors](https://github.com/kettle-dev/kettle-sponsors).</sub>
180
+ <!-- kettle-sponsors:cards:end -->
181
+
182
+ **If you're working in a company that's making significant use of galtzo-floss tools we'd
183
+ appreciate it if you suggest to your company to become a galtzo-floss sponsor.**
184
+
185
+ ## 💡 Info you can shake a stick at
186
+
187
+ | Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
188
+ |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
189
+ | Works with JRuby | [![JRuby 10.0 Compat][💎jruby-10.0i]][🚎jruby-10.0-wf] [![JRuby current Compat][💎jruby-c-i]][🚎10-j-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf]|
190
+ | Works with Truffle Ruby | [![Truffle Ruby 33.0 Compat][💎truby-33.0i]][🚎truby-33.0-wf] [![Truffle Ruby current Compat][💎truby-c-i]][🚎9-t-wf]|
191
+ | Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
192
+ | Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
193
+ | Works with MRI Ruby 2 | ![Ruby 2.0 Compat][💎ruby-2.0i] ![Ruby 2.1 Compat][💎ruby-2.1i] ![Ruby 2.2 Compat][💎ruby-2.2i] ![Ruby 2.3 Compat][💎ruby-2.3i] <br/> [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
194
+ | Works with MRI Ruby 1 | ![Ruby 1.9 Compat][💎ruby-1.9i]|
195
+ | 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] |
196
+ | 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] |
197
+ | 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] |
198
+ | Compliance | [![License: MIT][📄license-img]][📄license] [![Apache license compatibility: Category A][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 3.0][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
199
+ | 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] |
200
+ | 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] |
201
+ | `...` 💖 | [![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] |
202
+
203
+ ### Compatibility
117
204
 
118
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
205
+ The gem's declared runtime compatibility floor is MRI Ruby 1.9.2+, with concordant releases of JRuby and TruffleRuby.
206
+ CI workflows and Appraisals are generated for MRI Ruby 2.4+.
207
+ The current MRI CI lane runs on Linux and macOS.
208
+ The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
209
+ When it is higher than the runtime floor, older runtime-compatible Rubies are
210
+ not covered by the generated CI or Appraisal matrix.
119
211
 
120
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
212
+ <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>
121
213
 
122
- ## Contributing
214
+ The _amazing_ test matrix is powered by the kettle-dev stack.
123
215
 
124
- Bug reports and pull requests are welcome on GitHub at https://github.com/pboling/include_with_respect.
216
+ <details markdown="1">
217
+ <summary>How kettle-dev manages complexity in tests</summary>
125
218
 
126
- Create an issue and tell me about it, or fix it yo'sef.
219
+ | Gem | Source | Role | Total downloads |
220
+ |-----|--------|------|---------------------|
221
+ | [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) |
222
+ | [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) |
223
+ | [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) |
224
+ | [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) |
225
+ | [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) |
226
+ | [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) |
227
+ | [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) |
228
+ | [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) |
127
229
 
128
- 1. Fork it
129
- 2. Create your feature branch (`git checkout -b my-new-feature`)
130
- 3. Commit your changes (`git commit -am 'Added some feature'`)
131
- 4. Push to the branch (`git push origin my-new-feature`)
132
- 5. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
133
- 6. Create new Pull Request
230
+ </details>
134
231
 
135
- ## Versioning
232
+ ### Federated DVCS
136
233
 
137
- This library aims to adhere to [Semantic Versioning 2.0.0][semver].
138
- Violations of this scheme should be reported as bugs. Specifically,
139
- if a minor or patch version is released that breaks backward
140
- compatibility, a new version should be immediately released that
141
- restores compatibility. Breaking changes to the public API will
142
- only be introduced with new major versions.
234
+ <details markdown="1">
235
+ <summary>Find this repo on federated forges (Coming soon!)</summary>
143
236
 
144
- As a result of this policy, you can (and should) specify a
145
- dependency on this gem using the [Pessimistic Version Constraint][pvc] with two digits of precision.
237
+ | Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
238
+ |-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
239
+ | 🧪 [galtzo-floss/include_with_respect on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
240
+ | 🧊 [galtzo-floss/include_with_respect on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
241
+ | 🐙 [galtzo-floss/include_with_respect on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
242
+
243
+ </details>
244
+
245
+ <details markdown="1">
246
+ <summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
247
+
248
+ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
249
+
250
+ </details>
251
+
252
+ ### Enterprise Support
253
+
254
+ For enterprise support from the maintainer, use [Upwork][👨🏼‍🏫expsup-upwork] or [CodeMentor][👨🏼‍🏫expsup-codementor].
255
+
256
+ Other support channels:
257
+
258
+ - [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
259
+ - [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
260
+
261
+ ## 🔐 Security
262
+
263
+ See [SECURITY.md][🔐security].
264
+
265
+ ## 🤝 Contributing
266
+
267
+ If you need some ideas of where to help, you could work on adding more code coverage,
268
+ check [issues][🤝gh-issues] or [PRs][🤝gh-pulls], or use the gem and think about how it could be better.
269
+
270
+ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
271
+
272
+ See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
273
+
274
+ Want to contribute with AI coding agents? This project is developed with [Cloudroom][🖇cloudroom] and ships an `AGENTS.md` with repo conventions so agents can jump straight in. Signing up with [my referral link][🖇cloudroom] also supports ongoing maintenance at no extra cost to you.
275
+
276
+ ### 🚀 Release Instructions
277
+
278
+ See [CONTRIBUTING.md][🤝contributing].
279
+
280
+ ### Code Coverage
281
+
282
+ <details markdown="1">
283
+ <summary>Coverage service badges</summary>
284
+
285
+ [![Coverage Graph][🏀codecov-g]][🏀codecov]
286
+
287
+ [![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls]
288
+
289
+ [![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov]
290
+
291
+ </details>
292
+
293
+ ### 🪇 Code of Conduct
294
+
295
+ Everyone interacting with this project's codebases, issue trackers,
296
+ chat rooms and mailing lists agrees to follow the [![Contributor Covenant 3.0][🪇conduct-img]][🪇conduct].
297
+
298
+ ## 🌈 Contributors
299
+
300
+ [![Contributors][🖐contributors-img]][🖐contributors]
301
+
302
+ Made with [contributors-img][🖐contrib-rocks].
303
+
304
+ Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/include_with_respect/-/graphs/main][🚎contributors-gl]
305
+
306
+ ## 📌 Versioning
307
+
308
+ This library follows [![Semantic Versioning 2.0.0][📌semver-img]][📌semver] for its public API where practical.
309
+ For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
146
310
 
147
311
  For example:
148
312
 
149
- spec.add_dependency 'include_with_respect', '~> 0.0'
150
-
151
- ## Legal
152
-
153
- * [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)][mit]
154
- * Copyright (c) 2019 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
155
-
156
- [semver]: http://semver.org/
157
- [pvc]: http://docs.rubygems.org/read/chapter/16#page74
158
- [railsbling]: http://www.railsbling.com
159
- [peterboling]: http://www.peterboling.com
160
- [coderwall]: http://coderwall.com/pboling
161
- [documentation]: http://rdoc.info/github/pboling/gem_bench/frames
162
- [homepage]: https://github.com/pboling/gem_bench
163
- [mit]: https://opensource.org/licenses/MIT
164
- [rubygems]: https://rubygems.org/gems/include_with_respect
165
- [about-me]: https://about.me/peter.boling
166
- [crowdrise]: https://www.crowdrise.com/helprefugeeswithhopefortomorrowliberia/fundraiser/peterboling
167
- [angel-list]: https://angel.co/peter-boling
168
- [topcoder]: https://www.topcoder.com/members/pboling/
169
- [coderwall]: http://coderwall.com/pboling
170
- [twitter-followers]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow
171
- [twitter]: http://twitter.com/galtzo
172
- [blogpage]: http://www.railsbling.com/include_with_respect
173
- [github]: https://github.com/pboling/include_with_respect
313
+ ```ruby
314
+ spec.add_dependency("include_with_respect", "~> 1.0")
315
+ ```
316
+
317
+ <details markdown="1">
318
+ <summary>📌 Is "Platform Support" part of the public API? More details inside.</summary>
319
+
320
+ Dropping support for a platform can be a breaking change for affected users.
321
+ If a release changes supported platforms, it should be called out clearly in the changelog and versioned with that impact in mind.
322
+
323
+ To get a better understanding of how SemVer is intended to work over a project's lifetime,
324
+ read this article from the creator of SemVer:
325
+
326
+ - ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
327
+
328
+ </details>
329
+
330
+ See [CHANGELOG.md][📌changelog] for a list of releases.
331
+
332
+ ## 📄 License
333
+
334
+ The gem is available as open source under the terms of
335
+ the [MIT](https://github.com/galtzo-floss/include_with_respect/blob/main/MIT.md) [![License: MIT][📄license-img]][📄license-ref].
336
+
337
+ ### © Copyright
338
+
339
+ See [LICENSE.md][📄license] for the official copyright notice.
340
+
341
+ <details markdown="1">
342
+ <summary>Copyright holders</summary>
343
+
344
+ - Copyright (c) 2019-2020, 2024-2026 Peter H. Boling
345
+
346
+ </details>
347
+
348
+ ### Please give the project a star ⭐ ♥.
349
+
350
+ 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.
351
+
352
+ If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
353
+
354
+ [![Sponsor galtzo-floss/include_with_respect 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] 💌 [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] 💌 [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
355
+
356
+ I use [Cloudroom][🖇cloudroom], an agentic AI coding environment, every day. It's the first AI product that made me say "shut up and take my money."
357
+ If you sign up with [my referral link][🖇cloudroom], I receive a share of your subscription for as long as you stay subscribed, at no extra cost to you.
358
+
359
+ [🖇cloudroom]: https://go.cloudroom.dev/u9f53f181a
360
+
361
+ Thanks for RTFM. ☺️
362
+
363
+ [⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
364
+ [⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
365
+ [⛳liberapay]: https://liberapay.com/pboling/donate
366
+ [🖇osc-all-img]: https://img.shields.io/opencollective/all/galtzo-floss
367
+ [🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/galtzo-floss
368
+ [🖇osc-backers-img]: https://img.shields.io/opencollective/backers/galtzo-floss
369
+ [🖇osc-backers]: https://opencollective.com/galtzo-floss#backer
370
+ [🖇osc-backers-i]: https://opencollective.com/galtzo-floss/backers/badge.svg?style=flat
371
+ [🖇osc-sponsors]: https://opencollective.com/galtzo-floss#sponsor
372
+ [🖇osc-sponsors-i]: https://opencollective.com/galtzo-floss/sponsors/badge.svg?style=flat
373
+ [🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/galtzo-floss?style=for-the-badge
374
+ [🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/galtzo-floss?style=for-the-badge
375
+ [🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/galtzo-floss?style=for-the-badge
376
+ [🖇osc]: https://opencollective.com/galtzo-floss
377
+ [🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
378
+ [🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
379
+ [🖇sponsor]: https://github.com/sponsors/pboling
380
+ [🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
381
+ [🖇kofi]: https://ko-fi.com/pboling
382
+ [🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
383
+ [🖇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
384
+ [🖇buyme]: https://www.buymeacoffee.com/pboling
385
+ [🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
386
+ [🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
387
+ [🖇paypal]: https://www.paypal.com/paypalme/peterboling
388
+ [🖇floss-funding.dev]: https://floss-funding.dev
389
+ [🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
390
+ [✉️discord-invite]: https://discord.gg/3qme4XHNKN
391
+ [✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
392
+ [✉️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
393
+ [✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
394
+ [✉️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
395
+ [✉️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
396
+ [✉️ruby-forum]: https://www.rubyforum.org/tag/galtzo-floss
397
+
398
+ [✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
399
+ [⛳️gem-namespace]: https://github.com/galtzo-floss/include_with_respect
400
+ [⛳️namespace-img]: https://img.shields.io/badge/namespace-IncludeWithRespect-3C2D2D.svg?style=square&logo=ruby&logoColor=white
401
+ [⛳️gem-name]: https://clickgems.clickhouse.com/dashboard/include_with_respect
402
+ [⛳️name-img]: https://img.shields.io/badge/name-include__with__respect-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
403
+ [⛳️tag-img]: https://img.shields.io/github/tag/galtzo-floss/include_with_respect.svg
404
+ [⛳️tag]: https://github.com/galtzo-floss/include_with_respect/releases
405
+ [🚂maint-blog]: http://www.railsbling.com/tags/include_with_respect
406
+ [🚂maint-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
407
+ [🚂maint-contact]: http://www.railsbling.com/contact
408
+ [🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
409
+ [💖🖇linkedin]: http://www.linkedin.com/in/peterboling
410
+ [💖🖇linkedin-img]: https://img.shields.io/badge/LinkedIn-Profile-0B66C2?style=flat&logo=newjapanprowrestling
411
+ [💖✌️wellfound]: https://wellfound.com/u/peter-boling
412
+ [💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
413
+ [💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
414
+ [💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
415
+ [💖🐘ruby-mast]: https://ruby.social/@galtzo
416
+ [💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https://ruby.social&style=flat&logo=mastodon&label=Ruby%20@galtzo
417
+ [💖🦋bluesky]: https://bsky.app/profile/galtzo.com
418
+ [💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
419
+ [💖🌳linktree]: https://linktr.ee/galtzo
420
+ [💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
421
+ [💖💁🏼‍♂️devto]: https://dev.to/galtzo
422
+ [💖💁🏼‍♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
423
+ [💖💁🏼‍♂️aboutme]: https://about.me/peter.boling
424
+ [💖💁🏼‍♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
425
+ [💖🧊berg]: https://codeberg.org/pboling
426
+ [💖🐙hub]: https://github.org/pboling
427
+ [💖🛖hut]: https://sr.ht/~galtzo/
428
+ [💖🧪lab]: https://gitlab.com/pboling
429
+ [👨🏼‍🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
430
+ [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
431
+ [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
432
+ [👨🏼‍🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
433
+ [💁🏼‍♂️peterboling]: http://www.peterboling.com
434
+ [🚂railsbling]: http://www.railsbling.com
435
+ [📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
436
+ [📜src-gl]: https://gitlab.com/galtzo-floss/include_with_respect
437
+ [📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
438
+ [📜src-cb]: https://codeberg.org/galtzo-floss/include_with_respect
439
+ [📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
440
+ [📜src-gh]: https://github.com/galtzo-floss/include_with_respect
441
+ [📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
442
+ [📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
443
+ [📜gl-wiki]: https://gitlab.com/galtzo-floss/include_with_respect/-/wikis/home
444
+ [📜gh-wiki]: https://github.com/galtzo-floss/include_with_respect/wiki
445
+ [📜gl-wiki-img]: https://img.shields.io/badge/wiki-gitlab-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
446
+ [📜gh-wiki-img]: https://img.shields.io/badge/wiki-github-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
447
+ [👽dl-rank]: https://clickgems.clickhouse.com/dashboard/include_with_respect
448
+ [👽dl-ranki]: https://img.shields.io/gem/dt/include_with_respect.svg
449
+ [👽version]: https://clickgems.clickhouse.com/dashboard/include_with_respect
450
+ [👽versioni]: https://img.shields.io/gem/v/include_with_respect.svg
451
+ [🏀qlty-mnt]: https://qlty.sh/gh/galtzo-floss/projects/include_with_respect
452
+ [🏀qlty-mnti]: https://qlty.sh/gh/galtzo-floss/projects/include_with_respect/maintainability.svg
453
+ [🏀qlty-cov]: https://qlty.sh/gh/galtzo-floss/projects/include_with_respect/metrics/code?sort=coverageRating
454
+ [🏀qlty-covi]: https://qlty.sh/gh/galtzo-floss/projects/include_with_respect/coverage.svg
455
+ [🏀codecov]: https://codecov.io/gh/galtzo-floss/include_with_respect
456
+ [🏀codecovi]: https://codecov.io/gh/galtzo-floss/include_with_respect/graph/badge.svg
457
+ [🏀coveralls]: https://coveralls.io/github/galtzo-floss/include_with_respect?branch=main
458
+ [🏀coveralls-img]: https://coveralls.io/repos/github/galtzo-floss/include_with_respect/badge.svg?branch=main
459
+ [🚎ruby-2.4-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-2.4.yml
460
+ [🚎ruby-2.5-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-2.5.yml
461
+ [🚎ruby-2.6-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-2.6.yml
462
+ [🚎ruby-2.7-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-2.7.yml
463
+ [🚎ruby-3.0-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-3.0.yml
464
+ [🚎ruby-3.1-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-3.1.yml
465
+ [🚎ruby-3.2-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-3.2.yml
466
+ [🚎ruby-3.3-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-3.3.yml
467
+ [🚎ruby-3.4-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/ruby-3.4.yml
468
+ [🚎jruby-10.0-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/jruby-10.0.yml
469
+ [🚎truby-33.0-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/truffleruby-33.0.yml
470
+ [🚎2-cov-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/coverage.yml
471
+ [🚎2-cov-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/coverage.yml/badge.svg
472
+ [🚎3-hd-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/heads.yml
473
+ [🚎3-hd-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/heads.yml/badge.svg
474
+ [🚎5-st-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/style.yml
475
+ [🚎5-st-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/style.yml/badge.svg
476
+ [🚎9-t-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/truffle.yml
477
+ [🚎9-t-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/truffle.yml/badge.svg
478
+ [🚎10-j-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/jruby.yml
479
+ [🚎10-j-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/jruby.yml/badge.svg
480
+ [🚎11-c-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/current.yml
481
+ [🚎11-c-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/current.yml/badge.svg
482
+ [🚎12-crh-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/dep-heads.yml
483
+ [🚎12-crh-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/dep-heads.yml/badge.svg
484
+ [🚎13-🔒️-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/locked_deps.yml
485
+ [🚎13-🔒️-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/locked_deps.yml/badge.svg
486
+ [🚎14-🔓️-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/unlocked_deps.yml
487
+ [🚎14-🔓️-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/unlocked_deps.yml/badge.svg
488
+ [🚎15-🪪-wf]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/license-eye.yml
489
+ [🚎15-🪪-wfi]: https://github.com/galtzo-floss/include_with_respect/actions/workflows/license-eye.yml/badge.svg
490
+ [💎ruby-1.9i]: https://img.shields.io/badge/Ruby-1.9_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
491
+ [💎ruby-2.0i]: https://img.shields.io/badge/Ruby-2.0_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
492
+ [💎ruby-2.1i]: https://img.shields.io/badge/Ruby-2.1_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
493
+ [💎ruby-2.2i]: https://img.shields.io/badge/Ruby-2.2_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
494
+ [💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
495
+ [💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
496
+ [💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
497
+ [💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
498
+ [💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
499
+ [💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
500
+ [💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
501
+ [💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
502
+ [💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
503
+ [💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
504
+ [💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
505
+ [💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
506
+ [💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
507
+ [💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
508
+ [💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
509
+ [💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
510
+ [💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
511
+ [🤝gh-issues]: https://github.com/galtzo-floss/include_with_respect/issues
512
+ [🤝gh-pulls]: https://github.com/galtzo-floss/include_with_respect/pulls
513
+ [🤝gl-issues]: https://gitlab.com/galtzo-floss/include_with_respect/-/issues
514
+ [🤝gl-pulls]: https://gitlab.com/galtzo-floss/include_with_respect/-/merge_requests
515
+ [🤝cb-issues]: https://codeberg.org/galtzo-floss/include_with_respect/issues
516
+ [🤝cb-pulls]: https://codeberg.org/galtzo-floss/include_with_respect/pulls
517
+ [🤝cb-donate]: https://donate.codeberg.org/
518
+ [🤝contributing]: https://github.com/galtzo-floss/include_with_respect/blob/main/CONTRIBUTING.md
519
+ [🏀codecov-g]: https://codecov.io/gh/galtzo-floss/include_with_respect/graph/badge.svg
520
+ [🖐contrib-rocks]: https://contrib.rocks
521
+ [🖐contributors]: https://github.com/galtzo-floss/include_with_respect/graphs/contributors
522
+ [🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/include_with_respect
523
+ [🚎contributors-gl]: https://gitlab.com/galtzo-floss/include_with_respect/-/graphs/main
524
+ [🪇conduct]: https://github.com/galtzo-floss/include_with_respect/blob/main/CODE_OF_CONDUCT.md
525
+ [🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-3.0-259D6C.svg
526
+ [📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
527
+ [📌semver]: https://semver.org/spec/v2.0.0.html
528
+ [📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
529
+ [📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
530
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
531
+ [📌changelog]: https://github.com/galtzo-floss/include_with_respect/blob/main/CHANGELOG.md
532
+ [📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
533
+ [📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-34495e.svg?style=flat
534
+ [📌gitmoji]: https://gitmoji.dev
535
+ [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
536
+ [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
537
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.077-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
538
+ [🔐security]: https://github.com/galtzo-floss/include_with_respect/blob/main/SECURITY.md
539
+ [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
540
+ [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
541
+ [📄license]: LICENSE.md
542
+ [📄license-ref]: https://github.com/galtzo-floss/include_with_respect/blob/main/MIT.md
543
+ [📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
544
+ [📄license-compat]: https://www.apache.org/legal/resolved.html#category-a
545
+ [📄license-compat-img]: https://img.shields.io/badge/Apache_Compatible:_Category_A-%E2%9C%93-259D6C.svg?style=flat&logo=Apache
546
+
547
+ [📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
548
+ [📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
549
+ [🚎yard-current]: http://rubydoc.info/gems/include_with_respect
550
+ [🚎yard-head]: https://include-with-respect.galtzo.com
551
+ [💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
552
+ [💎SHA_checksums]: https://gitlab.com/galtzo-floss/include_with_respect/-/tree/main/checksums
553
+ [💎rlts]: https://github.com/rubocop-lts/rubocop-lts
554
+ [💎rlts-img]: https://img.shields.io/badge/code_style_&_linting-rubocop--lts-34495e.svg?plastic&logo=ruby&logoColor=white
555
+ [💎appraisal2]: https://github.com/appraisal-rb/appraisal2
556
+ [💎appraisal2-img]: https://img.shields.io/badge/appraised_by-appraisal2-34495e.svg?plastic&logo=ruby&logoColor=white
557
+ [💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
558
+
559
+ <!-- kettle-jem:metadata:start -->
560
+ | Field | Value |
561
+ |---|---|
562
+ | Package | include_with_respect |
563
+ | Description | 🫡 Find out if your Module include/extend hooks are misbehaving! |
564
+ | Homepage | https://github.com/galtzo-floss/include_with_respect |
565
+ | Source | https://github.com/galtzo-floss/include_with_respect |
566
+ | License | `MIT` |
567
+ | Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
568
+ <!-- kettle-jem:metadata:end -->
@@ -16,9 +16,9 @@ module IncludeWithRespect
16
16
 
17
17
  included do
18
18
  # Rename standard include to include_without_respect
19
- define_singleton_method(:include_without_respect, base.method(:include))
19
+ define_singleton_method(:include_without_respect, Module.instance_method(:include).bind(base))
20
20
  # Rename standard extend to extend_without_respect
21
- define_singleton_method(:extend_without_respect, base.method(:extend))
21
+ define_singleton_method(:extend_without_respect, Module.instance_method(:extend).bind(base))
22
22
  end
23
23
 
24
24
  class_methods do
@@ -2,7 +2,7 @@
2
2
 
3
3
  module IncludeWithRespect
4
4
  class Configuration
5
- VALID_LEVELS = %i[warning error skip silent]
5
+ VALID_LEVELS = [:warning, :error, :skip, :silent]
6
6
  attr_reader :level
7
7
 
8
8
  def initialize(**options)
@@ -21,4 +21,4 @@ module IncludeWithRespect
21
21
  raise ::IncludeWithRespect::Error, "Unexpected configuration value(s) for level: #{unexpected}"
22
22
  end
23
23
  end
24
- end
24
+ end