Skip to content

Commit

Permalink
Install newer net-telnet if Ruby is v2.3.0 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmaro authored and mizzy committed Dec 16, 2023
1 parent b3f1efd commit 1495ed4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specinfra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "net-scp"
spec.add_runtime_dependency "net-ssh", ">= 2.7"
# TODO: remove the lock when you want to remove ruby < 2.3 support
spec.add_runtime_dependency "net-telnet", "0.1.1"
spec.add_runtime_dependency "net-telnet", *(Specinfra.ruby_is_older_than?(2, 3, 0) ? ["0.1.1"] : [])
spec.add_runtime_dependency "sfl" if Specinfra.ruby_is_older_than?(1, 9, 0)

spec.add_development_dependency "rake", "~> 10.1.1"
Expand Down

0 comments on commit 1495ed4

Please sign in to comment.