From: "vo.x (Vit Ondruch) via ruby-core" <ruby-core@...>
Date: 2024-11-01T09:39:55+00:00
Subject: [ruby-core:119673] [Ruby master Feature#20859] Make Base64 to core class

Issue #20859 has been updated by vo.x (Vit Ondruch).


Just FTR, some usage of base64 was already removed, but I think that other projects already added the base64 dependency (or are about to add it [1]).


[1]: https://github.com/cucumber/cucumber-ruby/pull/1762

----------------------------------------
Feature #20859: Make Base64 to core class
https://bugs.ruby-lang.org/issues/20859#change-110332

* Author: hsbt (Hiroshi SHIBATA)
* Status: Assigned
* Assignee: hsbt (Hiroshi SHIBATA)
----------------------------------------
>From https://bugs.ruby-lang.org/issues/20857#note-12

I also heard that `base64` gem has some issue for eco-system like https://github.com/ddnexus/pagy/pull/618. My fist intention is simply added `base64` gem into gem dependency by `Gem::Specification#add_dependency`. But some people rewrite `Base64.encode64` to `Array#pack`.

It means gemification of `base64` is miss-direciton by me. I withdraw that and propose to make `Base64` into core class.

https://github.com/ruby/ruby/pull/11977

It resolve dependency issues of `base64` as the default gems.

TODO:
* To release new version of `base64` gem that skip to load if `Base64` is available.
* make `require "base64"` same as `require "enumlator"`




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/