Skip to content

[🐛 Bug]: [rb] Either declare or remove dependency on base64 #13447

Closed
@Earlopain

Description

@Earlopain

What happened?

Ruby 3.3 shows a warning if the base64 gem is required without it being declared in the gemspec, Ruby 3.4 will throw an error.
See https://github.com/ruby/ruby/blob/master/doc/NEWS/NEWS-3.3.0.md#stdlib-updates

Many gems have opted to inline the base64 implementation, however this gem makes use of the urlsafe variants which are a bit more complex and not just a wrapper over pack/unpack. You would need to inline the entirety of https://github.com/ruby/base64/blob/9669a7d3b0e3b9a739969404daf58f912c58c6b3/lib/base64.rb, similar to newrelic/newrelic-ruby-agent#2378

How can we reproduce the issue?

Use `selenium-webdriver` on Ruby 3.3

Relevant log output

base64 is not part of the default gems since Ruby 3.4.0. Add it to your Gemfile.

Operating System

Irrelevant

Selenium version

Ruby master

What are the browser(s) and version(s) where you see this issue?

Irrelevant

What are the browser driver(s) and version(s) where you see this issue?

Irrelevant

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-rbRuby BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions