summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Alay-Eddine <maxime@cyberwatch.fr>2019-11-13 09:11:50 +0100
committerMaxime Alay-Eddine <maxime@cyberwatch.fr>2019-11-13 09:11:50 +0100
commitc747a2f961e82470e23f69df421b448c31184eed (patch)
tree36852d211aecf097c7df6226ff22d8d0c682a030
parent012207bfef0f70009b7d4e864508524337d148ef (diff)
downloadnet-ssh-c747a2f961e82470e23f69df421b448c31184eed.tar.gz
Remove ruby_compat to comply with the new Ruby >= 2.3 requirement
-rw-r--r--Manifest1
-rw-r--r--lib/net/ssh/buffer.rb1
-rw-r--r--lib/net/ssh/buffered_io.rb1
-rw-r--r--lib/net/ssh/connection/event_loop.rb1
-rw-r--r--lib/net/ssh/connection/session.rb1
-rw-r--r--lib/net/ssh/proxy/command.rb1
-rw-r--r--lib/net/ssh/proxy/socks5.rb1
-rw-r--r--lib/net/ssh/ruby_compat.rb13
-rw-r--r--lib/net/ssh/transport/packet_stream.rb1
9 files changed, 0 insertions, 21 deletions
diff --git a/Manifest b/Manifest
index 403d2c1..4b8323c 100644
--- a/Manifest
+++ b/Manifest
@@ -33,7 +33,6 @@ lib/net/ssh/proxy/errors.rb
lib/net/ssh/proxy/http.rb
lib/net/ssh/proxy/socks4.rb
lib/net/ssh/proxy/socks5.rb
-lib/net/ssh/ruby_compat.rb
lib/net/ssh/service/forward.rb
lib/net/ssh/test.rb
lib/net/ssh/test/channel.rb
diff --git a/lib/net/ssh/buffer.rb b/lib/net/ssh/buffer.rb
index 10c0337..0fe4e56 100644
--- a/lib/net/ssh/buffer.rb
+++ b/lib/net/ssh/buffer.rb
@@ -1,4 +1,3 @@
-require 'net/ssh/ruby_compat'
require 'net/ssh/transport/openssl'
require 'net/ssh/authentication/certificate'
diff --git a/lib/net/ssh/buffered_io.rb b/lib/net/ssh/buffered_io.rb
index a4864cc..54a4889 100644
--- a/lib/net/ssh/buffered_io.rb
+++ b/lib/net/ssh/buffered_io.rb
@@ -1,6 +1,5 @@
require 'net/ssh/buffer'
require 'net/ssh/loggable'
-require 'net/ssh/ruby_compat'
module Net
module SSH
diff --git a/lib/net/ssh/connection/event_loop.rb b/lib/net/ssh/connection/event_loop.rb
index f7d174f..cd9d3f1 100644
--- a/lib/net/ssh/connection/event_loop.rb
+++ b/lib/net/ssh/connection/event_loop.rb
@@ -1,5 +1,4 @@
require 'net/ssh/loggable'
-require 'net/ssh/ruby_compat'
module Net
module SSH
diff --git a/lib/net/ssh/connection/session.rb b/lib/net/ssh/connection/session.rb
index 1a0a8bb..61abd76 100644
--- a/lib/net/ssh/connection/session.rb
+++ b/lib/net/ssh/connection/session.rb
@@ -1,5 +1,4 @@
require 'net/ssh/loggable'
-require 'net/ssh/ruby_compat'
require 'net/ssh/connection/channel'
require 'net/ssh/connection/constants'
require 'net/ssh/service/forward'
diff --git a/lib/net/ssh/proxy/command.rb b/lib/net/ssh/proxy/command.rb
index 02cf472..1bb2423 100644
--- a/lib/net/ssh/proxy/command.rb
+++ b/lib/net/ssh/proxy/command.rb
@@ -1,7 +1,6 @@
require 'socket'
require 'rubygems'
require 'net/ssh/proxy/errors'
-require 'net/ssh/ruby_compat'
module Net
module SSH
diff --git a/lib/net/ssh/proxy/socks5.rb b/lib/net/ssh/proxy/socks5.rb
index ebd9bd9..08f2a3c 100644
--- a/lib/net/ssh/proxy/socks5.rb
+++ b/lib/net/ssh/proxy/socks5.rb
@@ -1,5 +1,4 @@
require 'socket'
-require 'net/ssh/ruby_compat'
require 'net/ssh/proxy/errors'
module Net
diff --git a/lib/net/ssh/ruby_compat.rb b/lib/net/ssh/ruby_compat.rb
deleted file mode 100644
index a073070..0000000
--- a/lib/net/ssh/ruby_compat.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-require 'thread'
-
-class String
- if RUBY_VERSION < "1.9"
- def getbyte(index)
- self[index]
- end
-
- def setbyte(index, c)
- self[index] = c
- end
- end
-end
diff --git a/lib/net/ssh/transport/packet_stream.rb b/lib/net/ssh/transport/packet_stream.rb
index 65b55f2..dfdde08 100644
--- a/lib/net/ssh/transport/packet_stream.rb
+++ b/lib/net/ssh/transport/packet_stream.rb
@@ -1,7 +1,6 @@
require 'net/ssh/buffered_io'
require 'net/ssh/errors'
require 'net/ssh/packet'
-require 'net/ssh/ruby_compat'
require 'net/ssh/transport/cipher_factory'
require 'net/ssh/transport/hmac'
require 'net/ssh/transport/state'