if ci_badges.map(&:color).detect { it != "green"} βοΈ let me know on Discord or RubyForum, as I may have missed the notification.
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.
π£ How will this project approach the September 2025 hostile takeover of RubyGems? ποΈ
I've summarized my thoughts in this blog post.
Kettle::Sponsors renders, verifies, and publishes responsive corporate sponsor badges (cards and Shields.io-style small pills) for kettle-jem and kettle-family managed project READMEs.
Generated from a sample sponsor configuration using kettle-sponsors (SVGs hosted in docs/images/):
Responsive sponsor cards (hybrid desktop/phone layout, embedded logos, contribution kinds, and optional kind-specific animations; switches automatically to docs/images/phone/ below 600px):
Small badge parade (single-line Shields.io-style offline SVGs for the top of a README):
Key features:
- Embedded sponsor logos (offline or remote fetch) β Base64-embeds local files (
.svg,.png,.jpg,.webp) ordata:URIs directly inside each SVG so logos render reliably inside GitHub README<img>tags, with opt-in cached remote HTTP(S) fetching (fetch_logos: true/--fetch-logos). - Financial & in-kind sponsorship kinds β Supports
financial(default),compute,time(Engineer time), andserviceswith crisp inline vector iconography. - Hybrid responsive cards β Desktop badges display a left logo tile plus inline icon and label (
Financial Β· since 2026-01); compact mobile (phone/) badges switch to a top-right icon-only pill and truncate long descriptions at 40 characters. - Shields.io-style small badges β Renders offline SVG pills matching all five canonical Shields.io styles (
flat,flat-square,plastic,for-the-badge,social) for top-of-README badge parades. - Configurable theme, colors & subsetted fonts β Customize background, border, text, muted, description, logo tile backdrop, kind accents, metallic coin palette (
gold/silver), CSS font stack (defaulting topboling/pboling's stack), and optionalpyftsubset-subsetted embedded@font-facefonts. - Kind-specific CSS animations β Optional
hoveroralwaysanimations (financial3D metallic coins,computeECG heartbeat pulse,timeglowing keyboard,servicesinterlocking gears), honoringprefers-reduced-motion. - Central hosting by default, local opt-in β Serves from
https://logos.galtzo.com/assets/images/sponsorsby default, or renders locally intodocs/assets/images/sponsorsforbadge: localsponsors. - Checksum-gated & date-windowed β Tracks active sponsors and theme settings via
.checksum, supports inclusivesince/untilwindows, publishes deterministically to central registries (kettle-sponsors publish), verifies URLs on demand (--verify), and integrates as akettle-jemplugin.
| Tokens to Remember | |
|---|---|
| Works with JRuby | |
| Works with Truffle Ruby | |
| Works with MRI Ruby 4 | |
| Works with MRI Ruby 3 | |
| Support & Community | |
| Source | |
| Documentation | |
| Compliance | |
| Style | |
| Maintainer ποΈ | |
... π |
The gem's declared runtime compatibility floor is MRI Ruby 3.2.0+, with concordant releases of JRuby and TruffleRuby.
CI workflows and Appraisals are generated for MRI Ruby 3.2.0+.
The current MRI CI lane runs on Linux and macOS.
The test floor is configured by ruby.test_minimum in .kettle-jem.yml.
When it is higher than the runtime floor, older runtime-compatible Rubies are
not covered by the generated CI or Appraisal matrix.
The amazing test matrix is powered by the kettle-dev stack.
How kettle-dev manages complexity in tests
| Gem | Source | Role | Total downloads |
|---|---|---|---|
| appraisal2 | GitHub | multi-dependency Appraisal matrix generation | |
| appraisal2-rubocop | GitHub | RuboCop Appraisal generator integration | |
| kettle-dev | GitHub | development, release, and CI workflow tooling | |
| kettle-jem | GitHub | Appraisals & CI workflow templates | |
| kettle-soup-cover | GitHub | SimpleCov coverage policy and reporting | |
| kettle-test | GitHub | standard test runner and coverage harness | |
| rubocop-lts | GitHub | Ruby-version-aware linting | |
| turbo_tests2 | GitHub | parallel test execution |
Find this repo on federated forges (Coming soon!)
| Federated DVCS Repository | Status | Issues | PRs | Wiki | CI |
|---|---|---|---|---|---|
| π§ͺ kettle-dev/kettle-sponsors on GitLab | The Truth | π | π | π | π Tiny Matrix |
| π§ kettle-dev/kettle-sponsors on CodeBerg | An Ethical Mirror (Donate) | π | π | β | βοΈ No Matrix |
| π kettle-dev/kettle-sponsors on GitHub | Another Mirror | π | π | π | π― Full Matrix |
For enterprise support from the maintainer, use Upwork or CodeMentor.
Other support channels:
Install the gem and add to the application's Gemfile by executing:
bundle add kettle-sponsorsIf bundler is not being used to manage dependencies, install the gem by executing:
gem install kettle-sponsorsAdd kettle-sponsors to the plugins: list in .structuredmerge/kettle-jem.yml:
plugins:
- kettle-sponsorsDuring bundled templating, kettle-jem calls Kettle::Sponsors.register_kettle_jem_plugin(registrar), registering an after_phase(:remaining_files) hook. For any sponsor configured with badge: local, the plugin renders its desktop, phone, and shield SVGs into docs/assets/images/sponsors using any configured readme.sponsor_theme and records the generated files with kettle-jem. Central badges (badge: central, the default) require no local files because they are referenced by URL.
Define sponsors under readme.corporate_sponsors (and optional theme settings under readme.sponsor_theme) in .structuredmerge/kettle-jem.yml:
readme:
sponsor_theme:
animate: always
coin_metal: gold
corporate_sponsors:
- name: Acme Corp
target_href: https://acme.example
logo: docs/images/logos/acme-corp.svg
since: 2026-01-15
description: Cloud infrastructure
kind: financial
badge: local
- name: Northwind Labs
target_href: https://northwind.example
logo: docs/images/logos/northwind-labs.svg
since: 2026-06-01
description: Automated build pipelines and CI runners for open source
kind: compute
badge: local
- name: Cedar & Pine
logo: docs/images/logos/cedar-pine.svg
since: 2026-03-01
description: Core maintainer hours
kind: time
badge: local
- name: Beacon OSS
target_href: https://beacon.example
logo: docs/images/logos/beacon-oss.svg
kind: services
badge: local| Field | Required | Default | Description |
|---|---|---|---|
name |
Yes | β | Sponsor display name (non-empty). Normalized to a lowercase hyphenated slug; duplicate slugs raise Kettle::Sponsors::Error. |
target_href (alias: url) |
No | "" |
Destination link URL (http:// or https://). When omitted, markup renders <picture> / <img> without an <a> wrapper. |
logo (aliases: image_src, img_src) |
No | nil |
Local image path (.svg, .png, .jpg, .webp), data:image/... URI, or http(s):// URL (fetched only when fetch_logos: true). Embedded as a data: URI inside the SVG. |
kind |
No | "financial" |
Sponsorship type: "financial" (Financial), "compute" (Compute), "time" (Engineer time), or "services" (Services). Controls the icon, label, accent color, and animation motif. |
since |
No | nil |
First active date (inclusive, ISO 8601 YYYY-MM-DD). Displayed as since YYYY-MM (falls back to sponsor when omitted). |
until |
No | nil |
Last active date (inclusive, ISO 8601 YYYY-MM-DD). Expired sponsors are excluded from markup, checksums, and verification, and their rendered SVGs are pruned. |
description |
No | "" |
Short tagline rendered on the third line (truncated to 40 characters + β¦ on :phone) and appended to the alt attribute. |
label |
No | kind short label | Optional custom left-side label for Shields.io-style small badges (defaults to sponsor, compute, eng time, or services). |
color |
No | kind accent | Optional per-sponsor right-side color override for Shields.io-style small badges. |
logo_background |
No | theme logo_background |
Optional per-sponsor logo tile backdrop color (e.g., "#ffffff" or "transparent"). |
badge |
No | "central" |
Hosting mode: "central" serves SVGs from Kettle::Sponsors::CENTRAL_BASE; "local" renders SVGs into Kettle::Sponsors::LOCAL_DIR. |
Configure global visual defaults under readme.sponsor_theme (or top-level sponsor_theme: / theme: in standalone registries):
readme:
sponsor_theme:
background: "#14211f"
border: "#25403c"
text: "#f4efe4"
muted: "#8fa6a1"
description: "#c8d6d3"
logo_background: "#ffffff"
coin_metal: silver
label_color: "#555555"
font: "system-ui,-apple-system,'Segoe UI',Roboto,sans-serif"
font_file: assets/fonts/Inter-Regular.ttf
animate: hover
shield_style: flat
fetch_logos: false
logo_cache: tmp/sponsor-logos
accents:
financial: "#3fb950"
compute: "#58a6ff"
time: "#d2a8ff"
services: "#f0883e"Example custom theme (sm-urb-design dark-teal palette with coin_metal: silver):
| Option | Default | Description |
|---|---|---|
background |
"#0d1117" |
Card background fill color. |
border |
"#30363d" |
Card border stroke color. |
text |
"#f0f6fc" |
Sponsor display name text color. |
muted |
"#8b949e" |
Subtitle / metadata (kind Β· since) text color. |
description |
"#c9d1d9" |
Description line text color. |
logo_background |
"#ffffff" |
Rounded tile backdrop behind sponsor logos so dark wordmarks stay legible on dark cards; set to "transparent" or "none" to disable. |
accents |
{financial: "#3fb950", compute: "#58a6ff", time: "#d2a8ff", services: "#f0883e"} |
Per-kind icon, animation, and default Shields right-side accent colors. |
coin_metal |
"gold" |
Metallic 3D coin palette for financial animations: "gold" or "silver". |
label_color |
"#555555" |
Left-side label fill color for Shields.io-style small badges. |
color |
nil |
Global right-side color override for Shields.io-style small badges (defaults to each sponsor's kind accent). |
font |
"system-ui,-apple-system,'Segoe UI',Roboto,sans-serif" |
CSS font-family stack (matches pboling/pboling's SVG font stack). |
font_file |
nil |
Optional path to a .ttf, .otf, .woff, or .woff2 file. When set, FontSubsetter invokes pyftsubset (from fonttools, if on PATH) to subset the font to only the unique characters used in each SVG and embeds @font-face as a base64 data: URI (falling back to embedding the full source font if pyftsubset is unavailable). |
font_family |
sanitized font_file basename |
Custom @font-face family name when font_file is set. |
animate |
"none" |
Kind-specific animation mode: "none", "hover" (triggers on svg:hover β works for inline SVGs / <object> web embeds), or "always" (runs continuously β works inside GitHub README <img> tags, where browsers disable :hover). All animations honor prefers-reduced-motion: reduce. |
shield_style |
"flat" |
Small badge style matching Shields.io: "flat", "flat-square", "plastic", "for-the-badge", or "social". |
fetch_logos |
false |
Offline by default (local files and data: URIs only). Set true (or pass --fetch-logos) to download and embed remote http(s):// logos. |
logo_cache |
nil |
Optional directory used to cache downloaded remote logos across runs. |
Kettle::Sponsors::Config.load(path) accepts both kettle-jem configs and standalone registry YAML files, looking up the sponsor array in the following order:
sponsorsβ standalone central registry format (written bykettle-sponsors publish)readme.corporate_sponsorsβ standard.structuredmerge/kettle-jem.ymlformatsponsorships.corporateβ alternate nested formatcorporate_sponsorsβ top-level shorthand
Kettle::Sponsors::Config.load_theme(path) reads readme.sponsor_theme, sponsor_theme, or theme. If path does not exist, Config.load returns [] and Config.load_theme returns default Theme.new.
| Constant | Default Value | Purpose |
|---|---|---|
Kettle::Sponsors::CONFIG_PATH |
".structuredmerge/kettle-jem.yml" |
Default config path for the CLI and kettle-jem plugin. |
Kettle::Sponsors::LOCAL_DIR |
"docs/assets/images/sponsors" |
Default output directory for locally rendered desktop, phone/, and shield/ SVGs plus .checksum. |
Kettle::Sponsors::CENTRAL_BASE |
"https://logos.galtzo.com/assets/images/sponsors" |
Base URL for centrally hosted desktop, phone/, and shield/ SVGs. |
Kettle::Sponsors::Checksum::FILENAME |
".checksum" |
File written inside the output directory storing the active-sponsor and theme SHA-256 digest. |
The kettle-sponsors executable manages rendering, freshness checks, URL verification, and central registry publishing.
Render desktop (<out>/<slug>.svg), mobile (<out>/phone/<slug>.svg), and Shields-style small (<out>/shield/<slug>.svg) SVGs for all active sponsors in the config file:
bundle exec kettle-sponsorsCustomize options from the CLI (overriding any values in the config file):
bundle exec kettle-sponsors --config sponsors.yml --out docs/assets/images/sponsors --fetch-logos --animate always --shield-style for-the-badge --forceStale SVGs from removed or expired sponsors are deleted automatically so the output directory stays in sync with active sponsors.
Verify whether rendered badges match the current active sponsors and theme (useful in CI):
bundle exec kettle-sponsors --checkExits 0 (sponsors unchanged) when current, or 1 (sponsors changed) when stale or missing.
Perform an opt-in HTTP HEAD check against the desktop and phone SVG URLs for every active central sponsor:
bundle exec kettle-sponsors --verifyPrints ok <url> or MISSING <url> for each badge URL. Exits 0 if all are reachable, or 1 if any are missing or unreachable.
Merge sponsors from a project or family config into a central registry YAML file (such as the input registry for logos.galtzo.com):
bundle exec kettle-sponsors publish --from .structuredmerge/kettle-jem.yml --registry path/to/sponsors.ymlEntries are merged by slug (incoming wins), registry-only entries are preserved, output is sorted by slug, and nil/blank fields plus default badge: central / kind: financial are omitted. Repeated runs with no changes are a no-op (registry unchanged).
Usage: kettle-sponsors [options]
--config PATH kettle-jem.yml or registry (default .structuredmerge/kettle-jem.yml)
--out DIR output directory (default docs/assets/images/sponsors)
--check exit 1 if badges are stale, 0 if current
--verify HEAD-check central badge URLs (network)
--from PATH publish: source config with sponsors
--registry PATH publish: registry file to merge into
--force render even when unchanged
--fetch-logos fetch remote http(s) logo URLs and embed them
--animate MODE animation mode: none, hover, always
--shield-style STYLE small badge style: flat, flat-square, plastic, for-the-badge, social
--font STACK CSS font-family stack
--font-file PATH font file to subset via pyftsubset and embed
--coin-metal METAL financial coin style: gold, silver
- Exit
0: Success (rendered, up to date, all verified URLs reachable, or registry published). - Exit
1: Badges are stale (--check) or one or more central URLs failed verification (--verify). - Exit
2: Configuration error (Kettle::Sponsors::Error) or invalid CLI options.
require "kettle/sponsors"
loaded = Kettle::Sponsors::Config.load_all(".structuredmerge/kettle-jem.yml")
sponsors = loaded[:sponsors]
theme = loaded[:theme]
# Responsive <a href><picture>...</picture></a> card grid for active sponsors
cards_html = Kettle::Sponsors::Markup.badges(sponsors, width: "25%", today: Date.today)
# Single-line Shields.io-style badge parade for top-of-README
parade_html = Kettle::Sponsors::Markup.shields(sponsors, today: Date.today)Kettle::Sponsors::BadgeRenderer.svg uses a hybrid layout: :desktop shows the inline kind icon + label on the metadata line and optional right-side animation motif, while :phone switches to a compact card with a top-right icon-only corner pill and 40-character description truncation:
| Sponsor | :desktop (inline icon & label + motif) |
:phone (compact + icon corner pill) |
|---|---|---|
Acme Corp (financial) |
||
Northwind Labs (compute) |
||
Cedar & Pine (time) |
||
Beacon OSS (services) |
Kettle::Sponsors::ShieldRenderer.svg (or BadgeRenderer.svg(sponsor, variant: :shield)) renders all five canonical Shields.io styles offline with embedded logos:
theme = Kettle::Sponsors::Theme.new(
background: "#14211f",
border: "#25403c",
text: "#f4efe4",
coin_metal: "silver",
animate: "hover",
shield_style: "for-the-badge",
fetch_logos: false
)
# Render individual SVG strings (:desktop, :phone, or :shield)
desktop_svg = Kettle::Sponsors::BadgeRenderer.svg(sponsors.first, variant: :desktop, theme: theme, base_dir: Dir.pwd)
phone_svg = Kettle::Sponsors::BadgeRenderer.svg(sponsors.first, variant: :phone, theme: theme, base_dir: Dir.pwd)
shield_svg = Kettle::Sponsors::ShieldRenderer.svg(sponsors.first, style: "flat-square", theme: theme, base_dir: Dir.pwd)
# Render active sponsors to disk (desktop, phone/, and shield/; empty array if unchanged)
written = Kettle::Sponsors::Renderer.render(sponsors, out: Kettle::Sponsors::LOCAL_DIR, theme: theme, base_dir: Dir.pwd)
# Check if output directory is out of date
stale = Kettle::Sponsors::Renderer.stale?(sponsors, out: Kettle::Sponsors::LOCAL_DIR, theme: theme)# Merge sponsors into a central registry file (returns true if the file changed)
changed = Kettle::Sponsors::Registry.publish(
from: ".structuredmerge/kettle-jem.yml",
registry: "sponsors.yml"
)
# HEAD-check active central badge URLs (returns Hash{String => Boolean})
results = Kettle::Sponsors::Verifier.verify(sponsors)While kettle-dev tools are free software and will always be, the project would benefit immensely from some funding. Raising a monthly budget of... "dollars" would make the project more sustainable.
We welcome both individual and corporate sponsors! We also offer a wide array of funding channels to account for your preferences. Currently, Open Collective is our preferred funding platform.
If you're working in a company that's making significant use of kettle-dev tools we'd appreciate it if you suggest to your company to become a kettle-dev sponsor.
You can support the development of kettle-dev tools via GitHub Sponsors, Liberapay, Open Collective, and PayPal.
Support us with a monthly donation and help us continue our activities. [Become a backer]
NOTE: kettle-readme-backers updates this list every day, automatically.
No backers yet. Be the first!
Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]
NOTE: kettle-readme-backers updates this list every day, automatically.
No sponsors yet. Be the first!
Iβm driven by a passion to foster a thriving open-source community β a space where people can tackle complex problems, no matter how small. Revitalizing libraries that have fallen into disrepair, and building new libraries focused on solving real-world challenges, are my passions. I was recently affected by layoffs, and the tech jobs market is unwelcoming. Iβm reaching out here because your support would significantly aid my efforts to provide for my family, and my farm (11 π chickens, 2 πΆ dogs, 3 π° rabbits, 8 πβ cats).
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.
Iβm developing a new library, floss_funding, 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.
Floss-Funding.dev: ποΈ No network calls. ποΈ No tracking. ποΈ No oversight. ποΈ Minimal crypto hashing. π‘ Easily disabled nags
See SECURITY.md.
If you need some ideas of where to help, you could work on adding more code coverage, check issues or PRs, or use the gem and think about how it could be better.
We so if you make changes, remember to update it.
See CONTRIBUTING.md for more detailed instructions.
See CONTRIBUTING.md.
Everyone interacting with this project's codebases, issue trackers,
chat rooms and mailing lists agrees to follow the .
Made with contributors-img.
Also see GitLab Contributors: https://gitlab.com/kettle-dev/kettle-sponsors/-/graphs/main
This library follows for its public API where practical.
For most applications, prefer the Pessimistic Version Constraint with two digits of precision.
For example:
spec.add_dependency("kettle-sponsors", "~> 0.0")π Is "Platform Support" part of the public API? More details inside.
Dropping support for a platform can be a breaking change for affected users. If a release changes supported platforms, it should be called out clearly in the changelog and versioned with that impact in mind.
To get a better understanding of how SemVer is intended to work over a project's lifetime, read this article from the creator of SemVer:
See CHANGELOG.md for a list of releases.
The gem is available as open source under the terms of
the MIT .
See LICENSE.md for the official copyright notice.
Copyright holders
- Copyright (c) 2026 Peter H. Boling
Maintainers have teeth and need to pay their dentists. After getting laid off in an RIF in March, and encountering difficulty finding a new one, I began spending most of my time building open source tools. I'm hoping to be able to pay for my kids' health insurance this month, so if you value the work I am doing, I need your support. Please consider sponsoring me or the project.
To join the community or get help, use the RubyForum or Discord.
To say "thanks!" βοΈ Join the community or ποΈ send money.
Many parts of this project are actively managed by a kettle-jem smart template utilizing StructuredMerge.org merge contracts.
Thanks for RTFM.
| Field | Value |
|---|---|
| Package | kettle-sponsors |
| Description | π Renders, verifies, and publishes sponsor badges (central or locally hosted SVGs) for kettle-jem and kettle-family managed project READMEs. |
| Homepage | https://github.com/kettle-dev/kettle-sponsors |
| Source | https://github.com/kettle-dev/kettle-sponsors |
| License | MIT |
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/kettle-dev, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
