Skip to content

feat: replace Base64 usage with String#pack #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jgarber623
Copy link

The change here replaces the singular use of Base64.strict_encode64 with that method’s body, ["…"].pack("m0"), pulled straight from the Base64 gem’s source.

Thanks for considering this change!

The change here replaces the singular use of `Base64.strict_encode64`
with that method’s body, `["…"].pack("m0")`, pulled straight from the
Base64 gem’s source (linked below).

See-also: https://github.com/ruby/base64/blob/v0.3.0/lib/base64.rb#L282-L284
@jgarber623
Copy link
Author

jgarber623 commented Aug 6, 2025

The Ruby 3.4 unit test failure is owing to this issue in the cloud_events gem: cloudevents/sdk-ruby#82

Also possibly the reason for the Ruby 3.4 conformance test, but the log output isn't as exact.

The log output in the Setup Ruby step for the failed Ruby 3.4 conformance test is interesting:

Failed to save: Unable to reserve cache with key setup-ruby-bundler-cache-v6-ubuntu-24.04-x64-ruby-3.4.5-wd-/home/runner/work/functions-framework-ruby/functions-framework-ruby-with--without--only--Gemfile.lock-da12b3adf03b0bc7d4177a204435193118abb648111c67cda5485bb8b9b003df, another job may be creating this cache.

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