From 045521d911cd1c355d0ae44471979818103d1e25 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 22 Jul 2016 16:40:51 +0300 Subject: ruby2.3 and newer do not ship with net::telnet closes #504 --- oxidized.gemspec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'oxidized.gemspec') diff --git a/oxidized.gemspec b/oxidized.gemspec index 9ff795c..bb9366d 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -23,6 +23,11 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'slop', '~> 3.5' s.add_runtime_dependency 'net-ssh', '>= 3.0.0', '<3.1' s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4' + + if defined?(RUBY_VERSION) && RUBY_VERSION > '2.3' + s.add_runtime_dependency 'net-telnet' + end + s.add_development_dependency 'pry', '~> 0' s.add_development_dependency 'bundler', '~> 1.10' s.add_development_dependency 'rake', '~> 10.0' -- cgit v1.2.1