Skip to content

Commit 974477c

Browse files
y-yagiono-max
authored andcommitted
Add base64 gem to the dependency
Since Ruby 3.3.0, RubyGems and Bundler warn if users do require the gems that will become the bundled gems in the future version of Ruby. https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/ `debug` uses one of those gems, `base64`. https://github.com/ruby/debug/blob/c82c58044e3881e3c17852e398c3ef8e8aa72936/lib/debug/server_cdp.rb#L5 So if a user use `debug` gem with Chrome, a user will get the warning about that. ``` $ bundle exec rdbg --open=chrome main.rb /home/y-yagi/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/debug-1.9.1/lib/debug/server_cdp.rb:5: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. Also contact author of debug-1.9.1 to add base64 into its gemspec. ``` This PR adds `base64` as the dependency to fix the warning.
1 parent 6fd6713 commit 974477c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

debug.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
2929

3030
spec.add_dependency "irb", "~> 1.10" # for irb:debug integration
3131
spec.add_dependency "reline", ">= 0.3.8"
32+
spec.add_dependency "base64"
3233
end

0 commit comments

Comments
 (0)