Skip to content

Commit

Permalink
Add ostruct dependency to fix warning on Ruby 3.3.5+ (#542)
Browse files Browse the repository at this point in the history
Fixes the following warning on Ruby 3.3.5+ and Ruby 3.4:

> sshkit-1.23.0/lib/sshkit.rb:29: warning: ostruct was loaded from the
standard library, but will no longer be part of the default gems
starting from Ruby 3.5.0.
You can add ostruct to your Gemfile or gemspec to silence this warning.

Closes #541
  • Loading branch information
mattbrictson authored Sep 5, 2024
1 parent 892d5bf commit 91375af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sshkit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('net-ssh', '>= 2.8.0')
gem.add_runtime_dependency('net-scp', '>= 1.1.2')
gem.add_runtime_dependency('net-sftp', '>= 2.1.2')
gem.add_runtime_dependency('ostruct') if RUBY_VERSION >= "2.5"

gem.add_development_dependency('danger')
gem.add_development_dependency('minitest', '>= 5.0.0')
Expand Down

0 comments on commit 91375af

Please sign in to comment.