Skip to content

Commit 91375af

Browse files
authored
Add ostruct dependency to fix warning on Ruby 3.3.5+ (#542)
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
1 parent 892d5bf commit 91375af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sshkit.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Gem::Specification.new do |gem|
2424
gem.add_runtime_dependency('net-ssh', '>= 2.8.0')
2525
gem.add_runtime_dependency('net-scp', '>= 1.1.2')
2626
gem.add_runtime_dependency('net-sftp', '>= 2.1.2')
27+
gem.add_runtime_dependency('ostruct') if RUBY_VERSION >= "2.5"
2728

2829
gem.add_development_dependency('danger')
2930
gem.add_development_dependency('minitest', '>= 5.0.0')

0 commit comments

Comments
 (0)