Skip to content

Fix broken README badges#6

Merged
Metalzoid merged 1 commit intomainfrom
fix/readme-badges
May 3, 2026
Merged

Fix broken README badges#6
Metalzoid merged 1 commit intomainfrom
fix/readme-badges

Conversation

@Metalzoid
Copy link
Copy Markdown
Owner

Summary

Three of the five header badges in the README were rendering error messages instead of values:

Badge Old URL Symptom
Gem version badge.fury.io/rb/modal_stack.svg Empty SVG (service flaky)
Ruby img.shields.io/gem/ruby-version/modal_stack "404: badge not found" (endpoint absent)
Rails img.shields.io/gem/dv/modal_stack/railties "version should be 'stable' or valid semver" — gem/dv requires gem/dv/{gem}/{version}/{dep}; railties was being parsed as the version

Replacements

  • gem/v/modal_stack from shields.io (renders v0.2.0).
  • A gem/dt/modal_stack downloads badge added for free.
  • Static ruby >= 3.2 badge, sourced from the gemspec's required_ruby_version.
  • Static rails 7.2 | 8.0 | 8.1 badge — supersedes the broken gem/dv constraint badge with the actually-supported Rails range from the CI matrix.

No version bump (README-only).

Test plan

  • All four replacement URLs return non-error SVGs (curl verified).
  • Live render shows: CI passing · gem v0.2.0 · downloads · ruby >= 3.2 · rails 7.2 | 8.0 | 8.1 · MIT.

🤖 Generated with Claude Code

Three of the five header badges were rendering errors instead of values:

- `badge.fury.io/rb/modal_stack.svg` → empty SVG (service flaky).
  Replaced with shields.io `gem/v` which renders "v0.2.0" correctly.
- `img.shields.io/gem/ruby-version/modal_stack` → "404 badge not found"
  (endpoint does not exist on shields.io). Replaced with a static
  badge derived from the gemspec's `required_ruby_version >= 3.2.0`.
- `img.shields.io/gem/dv/modal_stack/railties` → "version should be
  stable or valid semver". The `gem/dv` endpoint requires the format
  `gem/dv/{gem}/{version}/{dep}`; `railties` was being read as the
  version. Replaced with a static "rails 7.2 | 8.0 | 8.1" badge.

Also added a `gem/dt` downloads badge for free.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Metalzoid Metalzoid merged commit 185956f into main May 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant