Skip to content

Gallery: the visualci-gallery Ruby gem (sc-9299) - #195

Merged
ndbroadbent merged 2 commits into
mainfrom
sc-9299-gallery-ruby
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
sc-9299-gallery-ruby

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Stacked on #193.

  • Contract (first commit): widths and heights are whole numbers from 1 to 1000000, so the density maths stays exact in every language. Options are checked in a fixed order, pinned by option-errors/several-in-order.
  • Gem (clients/gallery/ruby): fetches the manifest with redirects, timeouts and retries, and raises when it can't. Renders the contract's markup byte for byte, and checks every golden fixture and message.
  • Rails: an engine with visualci_gallery, with the JS and CSS in the asset pipeline (Sprockets precompile, or Propshaft).
  • Release: release-gallery-gem.yml publishes on a gallery-ruby-v* tag through RubyGems trusted publishing (sc-9327). CI runs its tests.

Tests: 42 runs pass. gem build includes the assets.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@ndbroadbent
ndbroadbent force-pushed the sc-9306-gallery-astro branch from 59ccad9 to 6856e05 Compare December 4, 2026 08:43
@ndbroadbent
ndbroadbent force-pushed the sc-9299-gallery-ruby branch 2 times, most recently from 2114fc2 to 13641be Compare December 4, 2026 08:48
@ndbroadbent
ndbroadbent force-pushed the sc-9306-gallery-astro branch 2 times, most recently from cb8282d to e57ccc5 Compare December 4, 2026 11:43
@ndbroadbent
ndbroadbent force-pushed the sc-9306-gallery-astro branch 2 times, most recently from 6cb58e8 to 53b5338 Compare December 4, 2026 12:48
@ndbroadbent
ndbroadbent changed the base branch from sc-9306-gallery-astro to main December 4, 2026 12:57
@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #730 · 515 unchanged · no changes

This PR vs base: 65 changed, 81 added since #563, across 4 builds

docspring/visualci · journeys · build #727 · 50 unchanged · no changes

This PR vs base: 5 changed, 8 added since #544, across 7 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

…ixed order

A width or height above 1000000 is refused (errors/too-wide.json): the density maths then stays exact
in every language's numbers, where larger values rounded differently in JS, Python, Ruby and Rust.
The spec names the order options are checked in, and option-errors/several-in-order.json pins it.
Renders the gallery contract's markup in Ruby, byte for byte, with a Rails helper and the JS library's
ES5 build and stylesheet for the asset pipeline. CI runs the golden fixtures and builds the gem; a
release workflow publishes it with RubyGems trusted publishing.
@ndbroadbent
ndbroadbent merged commit e6eb634 into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the sc-9299-gallery-ruby branch December 4, 2026 14:33
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