Skip to content

[SEC-452] fix(client): compatibilidad con http.rb 6 - #30

Merged
VicenteSotoArmijo merged 1 commit into
mainfrom
fix/http6-compatibility
Aug 20, 2026
Merged

[SEC-452] fix(client): compatibilidad con http.rb 6#30
VicenteSotoArmijo merged 1 commit into
mainfrom
fix/http6-compatibility

Conversation

@VicenteSotoArmijo

@VicenteSotoArmijo VicenteSotoArmijo commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Contexto

http.rb 6 dejó los métodos de verbo como keyword-only, y make_request le pasa las opciones como hash posicional, así que toda llamada del SDK revienta con ArgumentError. Es lo que bloquea el bump de http en fintoc-rails.

¿Qué hay de nuevo?

  • make_request splatea las opciones: send(method, url, **parameters)
  • Lock de desarrollo a http 6.0.4 y webmock 3.26.2, para que CI corra contra la versión que rompía

El splat funciona igual en http.rb 5, así que el gemspec queda sin pin.

Tests

  • Suite verde con http 6.0.4 y con 5.3.1 (272 ejemplos cada una)

Safety Checks

  • Versión y CHANGELOG actualizados (si corresponde)

Consideraciones

Toca Gemfile.lock igual que #28, conviene mergear ese primero y rebasear. #29 queda sin sentido: http 6 no usa llhttp-ffi, así que ffi-compiler desaparece del lock.

Rollback

¿Es seguro hacer rollback?
Sí.

http.rb 6 made the verb methods keyword-only, so passing the options
hash positionally raises ArgumentError on every request the SDK makes.
Splatting it keeps working on http.rb 5, so consumers can stay on
either major.

The dev lock moves to http 6.0.4 and webmock 3.26.2 (the release that
added http.rb 6 support to its adapter) so CI runs against the version
that used to break.
@fin-hermes fin-hermes Bot added the size/S label Aug 19, 2026
@VicenteSotoArmijo
VicenteSotoArmijo marked this pull request as ready for review August 19, 2026 20:40
@VicenteSotoArmijo
VicenteSotoArmijo merged commit cf86803 into main Aug 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants