Skip to content

Commit

Permalink
Remove unused base64 requires to fix Ruby 3.3 warning
Browse files Browse the repository at this point in the history
The previous PR net-ssh#932 refactored the code to no longer use the Base64
module, but forgot to remove the actual `require "base64"` statements.
This follow up commit removes those requires to fix the following
warning on Ruby 3.3:

> net/ssh/known_hosts.rb:3: 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 net-ssh-7.2.2.rc1 to add base64 into its gemspec.
  • Loading branch information
mattbrictson committed Jan 7, 2024
1 parent 2a66440 commit 6b7d21b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions lib/net/ssh/authentication/ed25519.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

require 'ed25519'

require 'base64'

require 'net/ssh/transport/cipher_factory'
require 'net/ssh/authentication/pub_key_fingerprint'
require 'bcrypt_pbkdf' unless RUBY_PLATFORM == "java"
Expand Down
1 change: 0 additions & 1 deletion lib/net/ssh/known_hosts.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'strscan'
require 'openssl'
require 'base64'
require 'delegate'
require 'net/ssh/buffer'
require 'net/ssh/authentication/ed25519_loader'
Expand Down

0 comments on commit 6b7d21b

Please sign in to comment.