summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDelano Mandelbaum <delano.mandelbaum@gmail.com>2013-03-03 10:01:51 -0800
committerDelano Mandelbaum <delano.mandelbaum@gmail.com>2013-03-03 10:01:51 -0800
commit46bfb67c509df6effdb0425bd40444449c6e572e (patch)
tree2daea82456c904510abce778c25117a5077ace77
parent0de7bfdc21d17e2a53e994a94b05307445e16a27 (diff)
parente6b864bfaebb88ea3e7eee6b1ada1ec8572b6294 (diff)
downloadnet-ssh-46bfb67c509df6effdb0425bd40444449c6e572e.tar.gz
Merge pull request #86 from jansegre/master
This should fix #85
-rw-r--r--lib/net/ssh/authentication/pageant.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/net/ssh/authentication/pageant.rb b/lib/net/ssh/authentication/pageant.rb
index 0c6a4f4..bbeb6a3 100644
--- a/lib/net/ssh/authentication/pageant.rb
+++ b/lib/net/ssh/authentication/pageant.rb
@@ -2,9 +2,7 @@ require 'dl/import'
if RUBY_VERSION < "1.9"
require 'dl/struct'
-end
-
-if RUBY_VERSION =~ /^1.9/
+else
require 'dl/types'
require 'dl'
end
@@ -34,9 +32,7 @@ module Net; module SSH; module Authentication
dlload 'user32'
dlload 'kernel32'
- end
-
- if RUBY_VERSION =~ /^1.9/
+ else
extend DL::Importer
dlload 'user32','kernel32'
include DL::Win32Types