Skip to content

Correr el job de release en Ruby 3.4 - #34

Merged
tlarrain merged 1 commit into
mainfrom
fix/release-ruby-3-4-securerandom
Aug 27, 2026
Merged

Correr el job de release en Ruby 3.4#34
tlarrain merged 1 commit into
mainfrom
fix/release-ruby-3-4-securerandom

Conversation

@tlarrain

Copy link
Copy Markdown
Contributor

Contexto

El workflow de release falla al publicar la gem: bundle exec rake release explota con un conflicto de activación de securerandom.

¿Qué hay de nuevo?

  • ruby-version pasa de 3.2.2 a 3.4 en release.yml

Tests

  • Se valida corriendo el workflow de release

Consideraciones

  • rubygems/release-gem precarga un patch vía RUBYOPT que activa el securerandom default de Ruby antes de Bundler.setup. Ruby 3.2 trae 0.2.2 y 3.3 trae 0.3.1; el lockfile pide 0.4.1, que es el que trae 3.4.
  • El job solo buildea y publica la gem, así que no necesita correr en la Ruby mínima soportada. ci.yml sigue cubriendo 3.2, 3.3 y 3.4.

Created with Claude Code /fast-track command

rubygems/release-gem enables attestations by default, which preloads a
patch via RUBYOPT that requires rubygems/commands/push_command before
Bundler.setup runs. That activates Ruby's default securerandom, and
Bundler then aborts because Gemfile.lock pins 0.4.1 (activesupport 8.0,
pulled in through money-rails, requires securerandom >= 0.3).

Ruby 3.2 ships securerandom 0.2.2 and 3.3 ships 0.3.1, so both conflict;
3.4 ships 0.4.1 and matches the lockfile. The release job only builds and
pushes the gem, so it does not need to run on the minimum supported Ruby
version. CI still covers 3.2, 3.3 and 3.4.
@tlarrain tlarrain self-assigned this Aug 27, 2026
@tlarrain
tlarrain requested a review from oerlandsen August 27, 2026 16:56
@tlarrain
tlarrain marked this pull request as ready for review August 27, 2026 16:56

@oerlandsen oerlandsen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tlarrain
tlarrain merged commit 0a4cf94 into main Aug 27, 2026
4 checks passed
@tlarrain
tlarrain deleted the fix/release-ruby-3-4-securerandom branch August 27, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants