feature #1383: make net/ssh replacement compatible with ruby 1.8.7

This commit is contained in:
Javi Fontan committed 2012-10-22 11:34:47 +02:00
1 parent c184bb86e6
commit a88165f4f8
1 file changed
+9
+9
View File
@@ -29,6 +29,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
require 'openssl'
if RUBY_VERSION < "1.9"
class String
def getbyte(index)
self[index]
end
end
end
module OpenSSL
module SSHUtils