Skip to content

fix: Removed dependency on base64 gem#85

Merged
dazuma merged 1 commit intocloudevents:mainfrom
dazuma:pr/default-gems
Sep 27, 2025
Merged

fix: Removed dependency on base64 gem#85
dazuma merged 1 commit intocloudevents:mainfrom
dazuma:pr/default-gems

Conversation

@dazuma
Copy link
Member

@dazuma dazuma commented Sep 26, 2025

Replaces usage of the base64 gem with appropriate pack/unpack expressions. Removes base64, as well as a few other unnecessary standard library gems, from the Gemfile.

Note that our use of Array#pack uses the m0 code, which eliminates newlines from the base64 encoded value. This is a behavioral change from the original code, which includes the newlines. We're making this change because the application to JSON-encoded cloudevents, while not specifying one or the other, would probably prefer to omit the newlines.

closes #82

Signed-off-by: Daniel Azuma <dazuma@gmail.com>
@dazuma dazuma merged commit edaeb64 into cloudevents:main Sep 27, 2025
22 of 23 checks passed
@dazuma dazuma deleted the pr/default-gems branch September 27, 2025 04:42
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.

bug: Ruby 3.4 removed base64 from standard library

1 participant

Comments