sprockets
sprockets copied to clipboard
Drop base64 gem from dependency
This following warning is shown in test.
/Users/ryunosuke.sato/src/github.com/rails/sprockets/lib/sprockets/mime.rb:2: warning: base64 was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0.
You can add base64 to your Gemfile or gemspec to silence this warning.
Instead of adding base64 to dependency, the usage of Base64#strict_encode64 and Base64#encode64 have replaced with Array#pack.
Also, this PR fixes CI for Ruby 3.4-dev.
Note: Similar PRs are here
- https://github.com/httprb/http/pull/778
- https://github.com/rubocop/rubocop/pull/12313
- https://github.com/rack/rack/pull/2110
- https://github.com/elastic/elasticsearch-ruby/pull/2295
- https://github.com/socketry/protocol-http/pull/51
- https://github.com/lautis/uglifier/pull/195
This PR and https://github.com/lautis/uglifier/pull/195 will fix CI against ruby 3.4.0-dev.
@byroot Could you review this PR?
👋🏻 Hey, y'all, thanks for getting this update in. Would it be possible to cut a new point release to RubyGems with this fix?
I just released 4.2.2