evented-ssh 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b74dc6a3af01c7c24fe72960ce9a64928f850d9
4
- data.tar.gz: dccac2ad2cfbbcdfbbd9639deb6df27b210656f1
3
+ metadata.gz: 64c4bd2cc63e3056e2d7ced16fa107c00645deec
4
+ data.tar.gz: 1bbe4fb36e3d5427db5c7d9a47aa32936fd8d01e
5
5
  SHA512:
6
- metadata.gz: 0f2bb02a4a7c4731b883d4155c66175bc3c77485294b6d06993be6d14110faf917b3a2fe5502f3a49f3dde209aa1127bbc744e98fb1b5647c35b6a693295def1
7
- data.tar.gz: 3c22dced0445134e2f2e2001ce71827094ce2b7fb2fce52df74dc994f3bd046eed1cc0c43c652972be3d7d11c1ba3519533e69993c777705b09fab09ccb44c7f
6
+ metadata.gz: 166a5327ea54dc8658f7818616030d18c4ce21095ac98981ec90c5a895fac38c4b9ffafc2c109dde7a52c4ddb14d6d2b92b269c0f58d2fa301699ced557bd98f
7
+ data.tar.gz: 73ec1c03df4fb5d5c157551646783e80d915db5ed83ba6ad5dafe91f1105dfa57c36639b3540df2d1c1d1d67d634cd21a15ca20e40c6febf5f77aa8c527d6169
data/lib/evented-ssh.rb CHANGED
@@ -68,7 +68,7 @@ module ESSH
68
68
  end
69
69
  else
70
70
  transport.close
71
- raise AuthenticationFailed, "Authentication failed for user #{user}@#{host}"
71
+ raise ::Net::SSH::AuthenticationFailed, "Authentication failed for user #{user}@#{host}"
72
72
  end
73
73
  rescue => e
74
74
  transport.socket.__send__(:reject, e) if transport
@@ -7,6 +7,11 @@ module Net; module SSH; module Connection
7
7
  def initialize(connection, *args, &block)
8
8
  original_initialize(connection, *args, &block)
9
9
  @defer = connection.transport.reactor.defer
10
+
11
+ # Cleanup channel when it closes
12
+ @defer.promise.finally {
13
+ process
14
+ }
10
15
  end
11
16
 
12
17
  attr_reader :defer
@@ -307,7 +307,7 @@ module ESSH; module Transport
307
307
  wait.reject(reject_reason)
308
308
  end
309
309
  @awaiting.clear
310
- @algorithms.reject(reject_reason)
310
+ @algorithms&.reject(reject_reason)
311
311
  end
312
312
  rescue => e
313
313
  error { e }
@@ -1,3 +1,3 @@
1
1
  module ESSH
2
- VERSION='0.0.1'
2
+ VERSION='0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evented-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2017-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh