spyke-connection_lambda 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +142 -4
- data/LICENSE.md +11 -0
- data/README.md +490 -30
- data/lib/spyke/connection_lambda/version.rb +5 -1
- data/lib/spyke/connection_lambda.rb +26 -6
- data/sig/spyke/connection_lambda.rbs +9 -0
- data.tar.gz.sig +0 -0
- metadata +514 -252
- metadata.gz.sig +0 -0
- data/CODE_OF_CONDUCT.md +0 -84
- data/CONTRIBUTING.md +0 -45
- data/LICENSE.txt +0 -21
- data/SECURITY.md +0 -13
data/README.md
CHANGED
|
@@ -1,53 +1,513 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
+
# 🔗 Spyke::ConnectionLambda
|
|
4
4
|
|
|
5
|
-
[![
|
|
6
|
-
[![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
|
|
7
|
-
<span class="badge-buymeacoffee">
|
|
8
|
-
<a href="https://ko-fi.com/O5O86SNP4" target='_blank' title="Donate to my FLOSS or refugee efforts at ko-fi.com"><img src="https://img.shields.io/badge/buy%20me%20coffee-donate-yellow.svg" alt="Buy me coffee donation button" /></a>
|
|
9
|
-
</span>
|
|
10
|
-
<span class="badge-patreon">
|
|
11
|
-
<a href="https://patreon.com/galtzo" title="Donate to my FLOSS or refugee efforts using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a>
|
|
12
|
-
</span>
|
|
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]
|
|
13
6
|
|
|
14
|
-
|
|
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.
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[🖇sponsor-img]
|
|
19
|
-
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
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.
|
|
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]
|
|
20
12
|
|
|
21
|
-
|
|
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 -->
|
|
22
16
|
|
|
23
|
-
|
|
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>
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
`spyke-connection_lambda` adds a configurable connection decorator to Spyke
|
|
20
|
+
models. The configured callable receives the connection returned by the
|
|
21
|
+
inherited `connection` method and may return a modified connection, which is
|
|
22
|
+
useful for tenant routing, instrumentation, or test-specific connection
|
|
23
|
+
selection.
|
|
26
24
|
|
|
27
|
-
## Installation
|
|
25
|
+
## ✨ Installation
|
|
28
26
|
|
|
29
27
|
Install the gem and add to the application's Gemfile by executing:
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
```console
|
|
30
|
+
bundle add spyke-connection_lambda
|
|
31
|
+
```
|
|
32
32
|
|
|
33
33
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
```console
|
|
36
|
+
gem install spyke-connection_lambda
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## ⚙️ Configuration
|
|
40
|
+
|
|
41
|
+
Include the module in the Spyke model or base class whose connection should be
|
|
42
|
+
decorated. Set `connection_lambda` to a `Proc`, lambda, or method name. The
|
|
43
|
+
callable receives the inherited connection; leaving it unset preserves the
|
|
44
|
+
original Spyke behavior.
|
|
45
|
+
|
|
46
|
+
```ruby
|
|
47
|
+
class Account < Spyke::Base
|
|
48
|
+
include Spyke::ConnectionLambda
|
|
49
|
+
|
|
50
|
+
self.connection_lambda = ->(connection) { [:reader, connection] }
|
|
51
|
+
end
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 🔧 Basic Usage
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
class Account < Spyke::Base
|
|
58
|
+
include Spyke::ConnectionLambda
|
|
59
|
+
|
|
60
|
+
def self.decorate_connection(connection)
|
|
61
|
+
connection.with(tenant: Current.tenant)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
self.connection_lambda = :decorate_connection
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
Account.connection
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 🦷 FLOSS Funding
|
|
71
|
+
|
|
72
|
+
While galtzo-floss tools are free software and will always be, the project would benefit immensely from some funding.
|
|
73
|
+
Raising a monthly budget of... "dollars" would make the project more sustainable.
|
|
74
|
+
|
|
75
|
+
We welcome both individual and corporate sponsors! We also offer a
|
|
76
|
+
wide array of funding channels to account for your preferences.
|
|
77
|
+
Currently, [Open Collective][🖇osc] is our preferred funding platform.
|
|
78
|
+
|
|
79
|
+
### Individual Support
|
|
80
|
+
|
|
81
|
+
You can support the development of galtzo-floss tools via
|
|
82
|
+
[GitHub Sponsors][🖇sponsor],
|
|
83
|
+
[Liberapay][⛳liberapay],
|
|
84
|
+
[Open Collective][🖇osc],
|
|
85
|
+
and [PayPal][🖇paypal].
|
|
86
|
+
|
|
87
|
+
### Open Collective for Individuals
|
|
88
|
+
|
|
89
|
+
Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/galtzo-floss#backer)]
|
|
90
|
+
|
|
91
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
92
|
+
|
|
93
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:START -->
|
|
94
|
+
No backers yet. Be the first!
|
|
95
|
+
<!-- OPENCOLLECTIVE-INDIVIDUALS:END -->
|
|
96
|
+
|
|
97
|
+
### Open Collective for Organizations
|
|
98
|
+
|
|
99
|
+
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)]
|
|
100
|
+
|
|
101
|
+
NOTE: [kettle-readme-backers][kettle-readme-backers] updates this list every day, automatically.
|
|
102
|
+
|
|
103
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:START -->
|
|
104
|
+
No sponsors yet. Be the first!
|
|
105
|
+
<!-- OPENCOLLECTIVE-ORGANIZATIONS:END -->
|
|
106
|
+
|
|
107
|
+
[kettle-readme-backers]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/bin/kettle-readme-backers
|
|
108
|
+
|
|
109
|
+
### Another way to support open-source
|
|
110
|
+
|
|
111
|
+
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).
|
|
112
|
+
|
|
113
|
+
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`.
|
|
114
|
+
|
|
115
|
+
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.
|
|
116
|
+
|
|
117
|
+
**[Floss-Funding.dev][🖇floss-funding.dev]: 👉️ No network calls. 👉️ No tracking. 👉️ No oversight. 👉️ Minimal crypto hashing. 💡 Easily disabled nags**
|
|
118
|
+
|
|
119
|
+
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.
|
|
120
|
+
|
|
121
|
+
[![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
122
|
+
|
|
123
|
+
## 🏢 Corporate Sponsorship
|
|
124
|
+
|
|
125
|
+
<!-- kettle-sponsors:cards:start -->
|
|
126
|
+
<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 => @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>
|
|
127
|
+
|
|
128
|
+
<sub>Create sponsorship badges for your project with [kettle-sponsors](https://github.com/kettle-dev/kettle-sponsors).</sub>
|
|
129
|
+
<!-- kettle-sponsors:cards:end -->
|
|
130
|
+
|
|
131
|
+
**If you're working in a company that's making significant use of galtzo-floss tools we'd
|
|
132
|
+
appreciate it if you suggest to your company to become a galtzo-floss sponsor.**
|
|
133
|
+
|
|
134
|
+
## 💡 Info you can shake a stick at
|
|
135
|
+
|
|
136
|
+
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
137
|
+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
138
|
+
| 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]|
|
|
139
|
+
| 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]|
|
|
140
|
+
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
141
|
+
| 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]|
|
|
142
|
+
| Works with MRI Ruby 2 | ![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]|
|
|
143
|
+
| 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] |
|
|
144
|
+
| 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] |
|
|
145
|
+
| 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] |
|
|
146
|
+
| 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] |
|
|
147
|
+
| 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] |
|
|
148
|
+
| 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] |
|
|
149
|
+
| `...` 💖 | [![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] |
|
|
150
|
+
|
|
151
|
+
### Compatibility
|
|
152
|
+
|
|
153
|
+
The gem's declared runtime compatibility floor is MRI Ruby 2.3.0+, with concordant releases of JRuby and TruffleRuby.
|
|
154
|
+
CI workflows and Appraisals are generated for MRI Ruby 2.4+.
|
|
155
|
+
The current MRI CI lane runs on Linux and macOS.
|
|
156
|
+
The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
|
|
157
|
+
When it is higher than the runtime floor, older runtime-compatible Rubies are
|
|
158
|
+
not covered by the generated CI or Appraisal matrix.
|
|
159
|
+
|
|
160
|
+
<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>
|
|
161
|
+
|
|
162
|
+
The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
163
|
+
|
|
164
|
+
<details markdown="1">
|
|
165
|
+
<summary>How kettle-dev manages complexity in tests</summary>
|
|
166
|
+
|
|
167
|
+
| Gem | Source | Role | Total downloads |
|
|
168
|
+
|-----|--------|------|---------------------|
|
|
169
|
+
| [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [](https://clickgems.clickhouse.com/dashboard/appraisal2) |
|
|
170
|
+
| [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
|
|
171
|
+
| [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
|
|
172
|
+
| [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
|
|
173
|
+
| [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
|
|
174
|
+
| [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [](https://clickgems.clickhouse.com/dashboard/kettle-test) |
|
|
175
|
+
| [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
|
|
176
|
+
| [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
|
|
177
|
+
|
|
178
|
+
</details>
|
|
179
|
+
|
|
180
|
+
### Federated DVCS
|
|
181
|
+
|
|
182
|
+
<details markdown="1">
|
|
183
|
+
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
184
|
+
|
|
185
|
+
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
186
|
+
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
187
|
+
| 🧪 [galtzo-floss/spyke-connection_lambda on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
188
|
+
| 🧊 [galtzo-floss/spyke-connection_lambda on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
189
|
+
| 🐙 [galtzo-floss/spyke-connection_lambda on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
190
|
+
|
|
191
|
+
</details>
|
|
36
192
|
|
|
37
|
-
|
|
193
|
+
<details markdown="1">
|
|
194
|
+
<summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
|
|
38
195
|
|
|
39
|
-
|
|
196
|
+
I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
|
|
40
197
|
|
|
41
|
-
|
|
198
|
+
</details>
|
|
42
199
|
|
|
43
|
-
|
|
200
|
+
### Enterprise Support
|
|
44
201
|
|
|
45
|
-
|
|
202
|
+
For enterprise support from the maintainer, use [Upwork][👨🏼🏫expsup-upwork] or [CodeMentor][👨🏼🏫expsup-codementor].
|
|
46
203
|
|
|
47
|
-
|
|
204
|
+
Other support channels:
|
|
205
|
+
|
|
206
|
+
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
207
|
+
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
208
|
+
|
|
209
|
+
## 🔐 Security
|
|
210
|
+
|
|
211
|
+
See [SECURITY.md][🔐security].
|
|
212
|
+
|
|
213
|
+
## 🤝 Contributing
|
|
214
|
+
|
|
215
|
+
If you need some ideas of where to help, you could work on adding more code coverage,
|
|
216
|
+
check [issues][🤝gh-issues] or [PRs][🤝gh-pulls], or use the gem and think about how it could be better.
|
|
217
|
+
|
|
218
|
+
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
|
219
|
+
|
|
220
|
+
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
|
221
|
+
|
|
222
|
+
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.
|
|
223
|
+
|
|
224
|
+
### 🚀 Release Instructions
|
|
225
|
+
|
|
226
|
+
See [CONTRIBUTING.md][🤝contributing].
|
|
227
|
+
|
|
228
|
+
### Code Coverage
|
|
229
|
+
|
|
230
|
+
<details markdown="1">
|
|
231
|
+
<summary>Coverage service badges</summary>
|
|
232
|
+
|
|
233
|
+
[![Coverage Graph][🏀codecov-g]][🏀codecov]
|
|
234
|
+
|
|
235
|
+
[![Coveralls Test Coverage][🏀coveralls-img]][🏀coveralls]
|
|
236
|
+
|
|
237
|
+
[![QLTY Test Coverage][🏀qlty-covi]][🏀qlty-cov]
|
|
238
|
+
|
|
239
|
+
</details>
|
|
240
|
+
|
|
241
|
+
### 🪇 Code of Conduct
|
|
242
|
+
|
|
243
|
+
Everyone interacting with this project's codebases, issue trackers,
|
|
244
|
+
chat rooms and mailing lists agrees to follow the [![Contributor Covenant 3.0][🪇conduct-img]][🪇conduct].
|
|
245
|
+
|
|
246
|
+
## 🌈 Contributors
|
|
247
|
+
|
|
248
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
|
249
|
+
|
|
250
|
+
Made with [contributors-img][🖐contrib-rocks].
|
|
251
|
+
|
|
252
|
+
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/graphs/main][🚎contributors-gl]
|
|
253
|
+
|
|
254
|
+
## 📌 Versioning
|
|
255
|
+
|
|
256
|
+
This library follows [![Semantic Versioning 2.0.0][📌semver-img]][📌semver] for its public API where practical.
|
|
257
|
+
For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
|
|
258
|
+
|
|
259
|
+
For example:
|
|
260
|
+
|
|
261
|
+
```ruby
|
|
262
|
+
spec.add_dependency("spyke-connection_lambda", "~> 1.0")
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
<details markdown="1">
|
|
266
|
+
<summary>📌 Is "Platform Support" part of the public API? More details inside.</summary>
|
|
267
|
+
|
|
268
|
+
Dropping support for a platform can be a breaking change for affected users.
|
|
269
|
+
If a release changes supported platforms, it should be called out clearly in the changelog and versioned with that impact in mind.
|
|
270
|
+
|
|
271
|
+
To get a better understanding of how SemVer is intended to work over a project's lifetime,
|
|
272
|
+
read this article from the creator of SemVer:
|
|
273
|
+
|
|
274
|
+
- ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
|
|
275
|
+
|
|
276
|
+
</details>
|
|
277
|
+
|
|
278
|
+
See [CHANGELOG.md][📌changelog] for a list of releases.
|
|
279
|
+
|
|
280
|
+
## 📄 License
|
|
281
|
+
|
|
282
|
+
The gem is available as open source under the terms of
|
|
283
|
+
the [MIT](https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/MIT.md) [![License: MIT][📄license-img]][📄license-ref].
|
|
284
|
+
|
|
285
|
+
### © Copyright
|
|
286
|
+
|
|
287
|
+
See [LICENSE.md][📄license] for the official copyright notice.
|
|
288
|
+
|
|
289
|
+
<details markdown="1">
|
|
290
|
+
<summary>Copyright holders</summary>
|
|
291
|
+
|
|
292
|
+
- Copyright (c) 2024, 2026 Peter H. Boling
|
|
293
|
+
- Copyright (c) 2025 Annibelle Boling
|
|
294
|
+
|
|
295
|
+
</details>
|
|
296
|
+
|
|
297
|
+
### Please give the project a star ⭐ ♥.
|
|
298
|
+
|
|
299
|
+
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.
|
|
300
|
+
|
|
301
|
+
If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
|
|
302
|
+
|
|
303
|
+
[![Sponsor galtzo-floss/spyke-connection_lambda 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]
|
|
304
|
+
|
|
305
|
+
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."
|
|
306
|
+
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.
|
|
307
|
+
|
|
308
|
+
[🖇cloudroom]: https://go.cloudroom.dev/u9f53f181a
|
|
309
|
+
|
|
310
|
+
Thanks for RTFM. ☺️
|
|
311
|
+
|
|
312
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay&color=a51611&style=flat
|
|
313
|
+
[⛳liberapay-bottom-img]: https://img.shields.io/liberapay/goal/pboling.svg?style=for-the-badge&logo=liberapay&color=a51611
|
|
314
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
|
315
|
+
[🖇osc-all-img]: https://img.shields.io/opencollective/all/galtzo-floss
|
|
316
|
+
[🖇osc-sponsors-img]: https://img.shields.io/opencollective/sponsors/galtzo-floss
|
|
317
|
+
[🖇osc-backers-img]: https://img.shields.io/opencollective/backers/galtzo-floss
|
|
318
|
+
[🖇osc-backers]: https://opencollective.com/galtzo-floss#backer
|
|
319
|
+
[🖇osc-backers-i]: https://opencollective.com/galtzo-floss/backers/badge.svg?style=flat
|
|
320
|
+
[🖇osc-sponsors]: https://opencollective.com/galtzo-floss#sponsor
|
|
321
|
+
[🖇osc-sponsors-i]: https://opencollective.com/galtzo-floss/sponsors/badge.svg?style=flat
|
|
322
|
+
[🖇osc-all-bottom-img]: https://img.shields.io/opencollective/all/galtzo-floss?style=for-the-badge
|
|
323
|
+
[🖇osc-sponsors-bottom-img]: https://img.shields.io/opencollective/sponsors/galtzo-floss?style=for-the-badge
|
|
324
|
+
[🖇osc-backers-bottom-img]: https://img.shields.io/opencollective/backers/galtzo-floss?style=for-the-badge
|
|
325
|
+
[🖇osc]: https://opencollective.com/galtzo-floss
|
|
326
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
|
327
|
+
[🖇sponsor-bottom-img]: https://img.shields.io/badge/Sponsor_Me!-pboling-blue?style=for-the-badge&logo=github
|
|
328
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
|
329
|
+
[🖇kofi-img]: https://img.shields.io/badge/ko--fi-%E2%9C%93-a51611.svg?style=flat
|
|
330
|
+
[🖇kofi]: https://ko-fi.com/pboling
|
|
331
|
+
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-%E2%9C%93-a51611.svg?style=flat
|
|
332
|
+
[🖇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
|
|
333
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
|
334
|
+
[🖇paypal-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=flat&logo=paypal
|
|
335
|
+
[🖇paypal-bottom-img]: https://img.shields.io/badge/donate-paypal-a51611.svg?style=for-the-badge&logo=paypal&color=0A0A0A
|
|
336
|
+
[🖇paypal]: https://www.paypal.com/paypalme/peterboling
|
|
337
|
+
[🖇floss-funding.dev]: https://floss-funding.dev
|
|
338
|
+
[🖇floss-funding-gem]: https://github.com/galtzo-floss/floss_funding
|
|
339
|
+
[✉️discord-invite]: https://discord.gg/3qme4XHNKN
|
|
340
|
+
[✉️discord-invite-img-ftb]: https://img.shields.io/discord/1373797679469170758?style=for-the-badge&logo=discord
|
|
341
|
+
[✉️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
|
|
342
|
+
[✉️ruby-friends]: https://app.daily.dev/squads/rubyfriends
|
|
343
|
+
[✉️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
|
|
344
|
+
[✉️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
|
|
345
|
+
[✉️ruby-forum]: https://www.rubyforum.org/tag/galtzo-floss
|
|
48
346
|
|
|
49
|
-
|
|
347
|
+
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
|
348
|
+
[⛳️gem-namespace]: https://github.com/galtzo-floss/spyke-connection_lambda
|
|
349
|
+
[⛳️namespace-img]: https://img.shields.io/badge/namespace-Spyke::ConnectionLambda-3C2D2D.svg?style=square&logo=ruby&logoColor=white
|
|
350
|
+
[⛳️gem-name]: https://clickgems.clickhouse.com/dashboard/spyke-connection_lambda
|
|
351
|
+
[⛳️name-img]: https://img.shields.io/badge/name-spyke--connection__lambda-3C2D2D.svg?style=square&logo=rubygems&logoColor=red
|
|
352
|
+
[⛳️tag-img]: https://img.shields.io/github/tag/galtzo-floss/spyke-connection_lambda.svg
|
|
353
|
+
[⛳️tag]: https://github.com/galtzo-floss/spyke-connection_lambda/releases
|
|
354
|
+
[🚂maint-blog]: http://www.railsbling.com/tags/spyke-connection_lambda
|
|
355
|
+
[🚂maint-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
|
|
356
|
+
[🚂maint-contact]: http://www.railsbling.com/contact
|
|
357
|
+
[🚂maint-contact-img]: https://img.shields.io/badge/Contact-Maintainer-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|
|
358
|
+
[💖🖇linkedin]: http://www.linkedin.com/in/peterboling
|
|
359
|
+
[💖🖇linkedin-img]: https://img.shields.io/badge/LinkedIn-Profile-0B66C2?style=flat&logo=newjapanprowrestling
|
|
360
|
+
[💖✌️wellfound]: https://wellfound.com/u/peter-boling
|
|
361
|
+
[💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
|
|
362
|
+
[💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
|
363
|
+
[💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
|
|
364
|
+
[💖🐘ruby-mast]: https://ruby.social/@galtzo
|
|
365
|
+
[💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https://ruby.social&style=flat&logo=mastodon&label=Ruby%20@galtzo
|
|
366
|
+
[💖🦋bluesky]: https://bsky.app/profile/galtzo.com
|
|
367
|
+
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
|
|
368
|
+
[💖🌳linktree]: https://linktr.ee/galtzo
|
|
369
|
+
[💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
|
|
370
|
+
[💖💁🏼♂️devto]: https://dev.to/galtzo
|
|
371
|
+
[💖💁🏼♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
|
|
372
|
+
[💖💁🏼♂️aboutme]: https://about.me/peter.boling
|
|
373
|
+
[💖💁🏼♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
|
|
374
|
+
[💖🧊berg]: https://codeberg.org/pboling
|
|
375
|
+
[💖🐙hub]: https://github.org/pboling
|
|
376
|
+
[💖🛖hut]: https://sr.ht/~galtzo/
|
|
377
|
+
[💖🧪lab]: https://gitlab.com/pboling
|
|
378
|
+
[👨🏼🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
|
|
379
|
+
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
|
380
|
+
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
|
381
|
+
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
|
382
|
+
[💁🏼♂️peterboling]: http://www.peterboling.com
|
|
383
|
+
[🚂railsbling]: http://www.railsbling.com
|
|
384
|
+
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
|
385
|
+
[📜src-gl]: https://gitlab.com/galtzo-floss/spyke-connection_lambda
|
|
386
|
+
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
|
387
|
+
[📜src-cb]: https://codeberg.org/galtzo-floss/spyke-connection_lambda
|
|
388
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
|
|
389
|
+
[📜src-gh]: https://github.com/galtzo-floss/spyke-connection_lambda
|
|
390
|
+
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
391
|
+
[📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
392
|
+
[📜gl-wiki]: https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/wikis/home
|
|
393
|
+
[📜gh-wiki]: https://github.com/galtzo-floss/spyke-connection_lambda/wiki
|
|
394
|
+
[📜gl-wiki-img]: https://img.shields.io/badge/wiki-gitlab-943CD2.svg?style=for-the-badge&logo=gitlab&logoColor=white
|
|
395
|
+
[📜gh-wiki-img]: https://img.shields.io/badge/wiki-github-943CD2.svg?style=for-the-badge&logo=github&logoColor=white
|
|
396
|
+
[👽dl-rank]: https://clickgems.clickhouse.com/dashboard/spyke-connection_lambda
|
|
397
|
+
[👽dl-ranki]: https://img.shields.io/gem/dt/spyke-connection_lambda.svg
|
|
398
|
+
[👽version]: https://clickgems.clickhouse.com/dashboard/spyke-connection_lambda
|
|
399
|
+
[👽versioni]: https://img.shields.io/gem/v/spyke-connection_lambda.svg
|
|
400
|
+
[🏀qlty-mnt]: https://qlty.sh/gh/galtzo-floss/projects/spyke-connection_lambda
|
|
401
|
+
[🏀qlty-mnti]: https://qlty.sh/gh/galtzo-floss/projects/spyke-connection_lambda/maintainability.svg
|
|
402
|
+
[🏀qlty-cov]: https://qlty.sh/gh/galtzo-floss/projects/spyke-connection_lambda/metrics/code?sort=coverageRating
|
|
403
|
+
[🏀qlty-covi]: https://qlty.sh/gh/galtzo-floss/projects/spyke-connection_lambda/coverage.svg
|
|
404
|
+
[🏀codecov]: https://codecov.io/gh/galtzo-floss/spyke-connection_lambda
|
|
405
|
+
[🏀codecovi]: https://codecov.io/gh/galtzo-floss/spyke-connection_lambda/graph/badge.svg
|
|
406
|
+
[🏀coveralls]: https://coveralls.io/github/galtzo-floss/spyke-connection_lambda?branch=main
|
|
407
|
+
[🏀coveralls-img]: https://coveralls.io/repos/github/galtzo-floss/spyke-connection_lambda/badge.svg?branch=main
|
|
408
|
+
[🚎ruby-2.4-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-2.4.yml
|
|
409
|
+
[🚎ruby-2.5-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-2.5.yml
|
|
410
|
+
[🚎ruby-2.6-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-2.6.yml
|
|
411
|
+
[🚎ruby-2.7-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-2.7.yml
|
|
412
|
+
[🚎ruby-3.0-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-3.0.yml
|
|
413
|
+
[🚎ruby-3.1-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-3.1.yml
|
|
414
|
+
[🚎ruby-3.2-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-3.2.yml
|
|
415
|
+
[🚎ruby-3.3-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-3.3.yml
|
|
416
|
+
[🚎ruby-3.4-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/ruby-3.4.yml
|
|
417
|
+
[🚎jruby-10.0-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/jruby-10.0.yml
|
|
418
|
+
[🚎truby-33.0-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/truffleruby-33.0.yml
|
|
419
|
+
[🚎2-cov-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/coverage.yml
|
|
420
|
+
[🚎2-cov-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/coverage.yml/badge.svg
|
|
421
|
+
[🚎3-hd-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/heads.yml
|
|
422
|
+
[🚎3-hd-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/heads.yml/badge.svg
|
|
423
|
+
[🚎5-st-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/style.yml
|
|
424
|
+
[🚎5-st-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/style.yml/badge.svg
|
|
425
|
+
[🚎9-t-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/truffle.yml
|
|
426
|
+
[🚎9-t-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/truffle.yml/badge.svg
|
|
427
|
+
[🚎10-j-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/jruby.yml
|
|
428
|
+
[🚎10-j-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/jruby.yml/badge.svg
|
|
429
|
+
[🚎11-c-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/current.yml
|
|
430
|
+
[🚎11-c-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/current.yml/badge.svg
|
|
431
|
+
[🚎12-crh-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/dep-heads.yml
|
|
432
|
+
[🚎12-crh-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/dep-heads.yml/badge.svg
|
|
433
|
+
[🚎13-🔒️-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/locked_deps.yml
|
|
434
|
+
[🚎13-🔒️-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/locked_deps.yml/badge.svg
|
|
435
|
+
[🚎14-🔓️-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/unlocked_deps.yml
|
|
436
|
+
[🚎14-🔓️-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/unlocked_deps.yml/badge.svg
|
|
437
|
+
[🚎15-🪪-wf]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/license-eye.yml
|
|
438
|
+
[🚎15-🪪-wfi]: https://github.com/galtzo-floss/spyke-connection_lambda/actions/workflows/license-eye.yml/badge.svg
|
|
439
|
+
[💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3_(%F0%9F%9A%ABCI)-AABBCC?style=for-the-badge&logo=ruby&logoColor=white
|
|
440
|
+
[💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
441
|
+
[💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
442
|
+
[💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
443
|
+
[💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
|
444
|
+
[💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
445
|
+
[💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
446
|
+
[💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
447
|
+
[💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
448
|
+
[💎ruby-3.4i]: https://img.shields.io/badge/Ruby-3.4-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
|
449
|
+
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
|
450
|
+
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
|
451
|
+
[💎truby-33.0i]: https://img.shields.io/badge/Truffle_Ruby-33.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
|
452
|
+
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
|
453
|
+
[💎jruby-10.0i]: https://img.shields.io/badge/JRuby-10.0-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
|
454
|
+
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
|
455
|
+
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
|
456
|
+
[🤝gh-issues]: https://github.com/galtzo-floss/spyke-connection_lambda/issues
|
|
457
|
+
[🤝gh-pulls]: https://github.com/galtzo-floss/spyke-connection_lambda/pulls
|
|
458
|
+
[🤝gl-issues]: https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/issues
|
|
459
|
+
[🤝gl-pulls]: https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/merge_requests
|
|
460
|
+
[🤝cb-issues]: https://codeberg.org/galtzo-floss/spyke-connection_lambda/issues
|
|
461
|
+
[🤝cb-pulls]: https://codeberg.org/galtzo-floss/spyke-connection_lambda/pulls
|
|
462
|
+
[🤝cb-donate]: https://donate.codeberg.org/
|
|
463
|
+
[🤝contributing]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/CONTRIBUTING.md
|
|
464
|
+
[🏀codecov-g]: https://codecov.io/gh/galtzo-floss/spyke-connection_lambda/graph/badge.svg
|
|
465
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
|
466
|
+
[🖐contributors]: https://github.com/galtzo-floss/spyke-connection_lambda/graphs/contributors
|
|
467
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/spyke-connection_lambda
|
|
468
|
+
[🚎contributors-gl]: https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/graphs/main
|
|
469
|
+
[🪇conduct]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/CODE_OF_CONDUCT.md
|
|
470
|
+
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-3.0-259D6C.svg
|
|
471
|
+
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
|
472
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
|
473
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
|
|
474
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
|
475
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
|
476
|
+
[📌changelog]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/CHANGELOG.md
|
|
477
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
|
478
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-34495e.svg?style=flat
|
|
479
|
+
[📌gitmoji]: https://gitmoji.dev
|
|
480
|
+
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
481
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
482
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.029-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
483
|
+
[🔐security]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/SECURITY.md
|
|
484
|
+
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
485
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
486
|
+
[📄license]: LICENSE.md
|
|
487
|
+
[📄license-ref]: https://github.com/galtzo-floss/spyke-connection_lambda/blob/main/MIT.md
|
|
488
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-259D6C.svg
|
|
489
|
+
[📄license-compat]: https://www.apache.org/legal/resolved.html#category-a
|
|
490
|
+
[📄license-compat-img]: https://img.shields.io/badge/Apache_Compatible:_Category_A-%E2%9C%93-259D6C.svg?style=flat&logo=Apache
|
|
50
491
|
|
|
51
|
-
|
|
492
|
+
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
|
493
|
+
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-259D6C.svg?style=flat
|
|
494
|
+
[🚎yard-current]: http://rubydoc.info/gems/spyke-connection_lambda
|
|
495
|
+
[🚎yard-head]: https://spyke-connection-lambda.galtzo.com
|
|
496
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
|
497
|
+
[💎SHA_checksums]: https://gitlab.com/galtzo-floss/spyke-connection_lambda/-/tree/main/checksums
|
|
498
|
+
[💎rlts]: https://github.com/rubocop-lts/rubocop-lts
|
|
499
|
+
[💎rlts-img]: https://img.shields.io/badge/code_style_&_linting-rubocop--lts-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
500
|
+
[💎appraisal2]: https://github.com/appraisal-rb/appraisal2
|
|
501
|
+
[💎appraisal2-img]: https://img.shields.io/badge/appraised_by-appraisal2-34495e.svg?plastic&logo=ruby&logoColor=white
|
|
502
|
+
[💎d-in-dvcs]: https://railsbling.com/posts/dvcs/put_the_d_in_dvcs/
|
|
52
503
|
|
|
53
|
-
|
|
504
|
+
<!-- kettle-jem:metadata:start -->
|
|
505
|
+
| Field | Value |
|
|
506
|
+
|---|---|
|
|
507
|
+
| Package | spyke-connection_lambda |
|
|
508
|
+
| Description | 🔗 Dynamic Spyke API connection plugin for the Enterprise Cloud |
|
|
509
|
+
| Homepage | https://github.com/galtzo-floss/spyke-connection_lambda |
|
|
510
|
+
| Source | https://github.com/galtzo-floss/spyke-connection_lambda |
|
|
511
|
+
| License | `MIT` |
|
|
512
|
+
| 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 |
|
|
513
|
+
<!-- kettle-jem:metadata:end -->
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Spyke
|
|
4
4
|
module ConnectionLambda
|
|
5
|
+
# Version namespace for this gem.
|
|
5
6
|
module Version
|
|
6
|
-
|
|
7
|
+
# Current gem version.
|
|
8
|
+
VERSION = "1.0.1"
|
|
7
9
|
end
|
|
10
|
+
# Current gem version exposed at the traditional constant location.
|
|
11
|
+
VERSION = Version::VERSION # Traditional Constant Location
|
|
8
12
|
end
|
|
9
13
|
end
|
|
@@ -2,18 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
# External Libraries
|
|
4
4
|
require "version_gem"
|
|
5
|
-
require "active_support/
|
|
5
|
+
require "active_support/core_ext/class/attribute"
|
|
6
|
+
require_relative "connection_lambda/version"
|
|
6
7
|
|
|
7
8
|
# This Library
|
|
8
|
-
require_relative "connection_lambda/version"
|
|
9
9
|
|
|
10
10
|
module Spyke
|
|
11
|
+
# Decorates a Spyke model's class-level +connection+ with a configurable callable.
|
|
12
|
+
# Works with both +include+ and +prepend+, on every supported ActiveSupport.
|
|
11
13
|
module ConnectionLambda
|
|
12
|
-
|
|
14
|
+
class << self
|
|
15
|
+
# +include+: class methods sit above the including class, like ActiveSupport::Concern.
|
|
16
|
+
def included(base)
|
|
17
|
+
super
|
|
18
|
+
define_connection_lambda(base)
|
|
19
|
+
base.extend(ClassMethods)
|
|
20
|
+
end
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
#
|
|
16
|
-
|
|
22
|
+
# +prepend+: class methods sit in front of the class, so they wrap a +connection+
|
|
23
|
+
# defined directly on it (matching ActiveSupport::Concern on ActiveSupport >= 6.1).
|
|
24
|
+
def prepended(base)
|
|
25
|
+
super
|
|
26
|
+
define_connection_lambda(base)
|
|
27
|
+
# Module#prepend (Ruby >= 2.0), not Array#prepend (Ruby >= 2.5).
|
|
28
|
+
base.singleton_class.prepend(ClassMethods) # rubocop:disable Lint/LtsRuby/UnavailableMethod
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
private
|
|
32
|
+
|
|
33
|
+
def define_connection_lambda(base)
|
|
34
|
+
# Can be set to Proc.new {} or lambda {}
|
|
35
|
+
base.class_attribute(:connection_lambda, instance_accessor: false)
|
|
36
|
+
end
|
|
17
37
|
end
|
|
18
38
|
|
|
19
39
|
module ClassMethods
|
data.tar.gz.sig
CHANGED
|
Binary file
|