summaryrefslogtreecommitdiff
path: root/oxidized.gemspec
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-07-22 16:40:51 +0300
committerSaku Ytti <saku@ytti.fi>2016-07-22 16:40:51 +0300
commit045521d911cd1c355d0ae44471979818103d1e25 (patch)
treeaee604bb5437da47a89d42a69d7cb58b0827e9a0 /oxidized.gemspec
parent2e4f50bc401ddb42b1ff850b04812ca611fa8fcb (diff)
ruby2.3 and newer do not ship with net::telnet
closes #504
Diffstat (limited to 'oxidized.gemspec')
-rw-r--r--oxidized.gemspec5
1 files changed, 5 insertions, 0 deletions
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'