Own-and-Ship / oas_agent

The Own & Ship Ruby agent
2 stars 0 forks source link

Depend on base64 for newer rubies #46

Closed caius closed 2 months ago

caius commented 2 months ago

What?

Why?

Ruby is moving certain libraries out of the stdlib into bundled gems, and therefore needs a dependency on them in our dependencies, rather than just magically being available. Ruby 3.3.0 is emitting a warning for us requiring base64 now without having it in the dependencies first.

Naturally the base64 gem doesn't work on Rubies older than 2.4.0, so we can't just depend on it in the gemspec and be done with it. Instead lets depend on it for Ruby 3.3 or newer.