feat: replace Base64 usage with `String#pack` by jgarber623 · Pull Request #228 · GoogleCloudPlatform/functions-framework-ruby · GitHub
Skip to content

feat: replace Base64 usage with String#pack#228

Open
jgarber623 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
jgarber623:replace-base64
Open

feat: replace Base64 usage with String#pack#228
jgarber623 wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
jgarber623:replace-base64

Conversation

@jgarber623

Copy link
Copy Markdown

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

jgarber623 commented Aug 6, 2025

Copy link
Copy Markdown
Author

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