Skip to content
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

Do not use base64 #51

Merged
merged 2 commits into from
Sep 19, 2023
Merged

Do not use base64 #51

merged 2 commits into from
Sep 19, 2023

Conversation

mame
Copy link
Contributor

@mame mame commented Sep 15, 2023

Ruby 3.4.0 will bundle base64 as a gem. This means websocket.gemspec need to explicitly depend on the gem by gem 'base64'.

Currently, this gem only uses Base64.encode64. So, how about use Array#pack instead of the base64 gem?

If you prefer to add gem 'base64' to gemspec, let me know. I will be happy to change this PR.

... because it will require an explicit dependency since Ruby 3.4.0.
@imanel
Copy link
Owner

imanel commented Sep 19, 2023

Hi @mame. Could you fix failing Rubocop rule (looks like you need to change double -> single quotes)? I will gladly merge it afterwards.

@mame
Copy link
Contributor Author

mame commented Sep 19, 2023

@imanel Thank you! I have force-pushed.

@imanel imanel merged commit 7402538 into imanel:master Sep 19, 2023
11 checks passed
@imanel
Copy link
Owner

imanel commented Sep 19, 2023

Merged, thanks for your contribution!

@imanel
Copy link
Owner

imanel commented Sep 19, 2023

And released as part of 1.2.10

@mame mame deleted the manual-base64 branch June 21, 2024 07:42
mame added a commit to mame/websocket-ruby that referenced this pull request Jun 21, 2024
@mame
Copy link
Contributor Author

mame commented Jun 21, 2024

Sorry, I forgot to remove require 'base64'. I guess it won't work with ruby 3.4 if it remains. I have created #54.

imanel pushed a commit that referenced this pull request Jun 21, 2024
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.

2 participants