diff options
author | Saku Ytti <saku@ytti.fi> | 2013-05-01 15:16:54 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2013-05-01 15:16:54 +0300 |
commit | 0a9ff589905b4637dc2c824d761dfbfec6cb00db (patch) | |
tree | 2e96205f963a7859795a9a60dd3966c8b1efd3f2 | |
parent | d0de575afa263a9f6f729d0d1a7fa77fdd15600d (diff) |
Net::ReadTimeout is ruby 2.0.0 specific
use TimeoutError for compatibility
-rw-r--r--[-rwxr-xr-x] | bin/oxidized | 0 | ||||
-rw-r--r-- | lib/oxidized/input/telnet.rb | 2 | ||||
-rw-r--r-- | oxidized.gemspec | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/bin/oxidized b/bin/oxidized index aee703f..aee703f 100755..100644 --- a/bin/oxidized +++ b/bin/oxidized diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index f1222d8..c4c8bab 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -96,7 +96,7 @@ class Net::Telnet rest = '' until(prompt === line and not IO::select([@sock], nil, nil, waittime)) unless IO::select([@sock], nil, nil, time_out) - raise Net::ReadTimeout, "timed out while waiting for more data" + raise TimeoutError, "timed out while waiting for more data" end begin c = @sock.readpartial(1024 * 1024) diff --git a/oxidized.gemspec b/oxidized.gemspec index 805d723..5a1dce9 100644 --- a/oxidized.gemspec +++ b/oxidized.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'oxidized' - s.version = '0.0.7' + s.version = '0.0.11' s.platform = Gem::Platform::RUBY s.authors = [ 'Saku Ytti' ] s.email = %w( saku@ytti.fi ) |