em-ssh 0.6.2 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/lib/em-ssh/server-version.rb +7 -6
- data/lib/em-ssh/shell.rb +1 -1
- data/lib/em-ssh/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
0.6.5
|
2
|
+
- [#26](https://github.com/simulacre/em-ssh/issues/26) - Remove echo binary
|
3
|
+
|
4
|
+
0.6.4
|
5
|
+
- [#24](https://github.com/simulacre/em-ssh/issues/24) - Don't zap Em::Ssh::Shell callbacks when sharing them with Net::Ssh::Connection::Channel
|
6
|
+
|
7
|
+
0.6.3
|
8
|
+
- [#25](https://github.com/simulacre/em-ssh/issues/25) - Failed negotiations are properly caught
|
9
|
+
|
1
10
|
0.6.2
|
2
11
|
- [#24](https://github.com/simulacre/em-ssh/pull/24) - Fix callbacks defined on EM::Ssh::Shell don't work [@mandre](https://github.com/mandre)
|
3
12
|
|
@@ -23,13 +23,14 @@ module EventMachine
|
|
23
23
|
if @version[-1] == "\n"
|
24
24
|
@version.chomp!
|
25
25
|
log.debug("server version: #{@version}")
|
26
|
-
|
27
|
-
|
26
|
+
if !@version.match(/^SSH-(1\.99|2\.0)-/)
|
27
|
+
connection.fire(:error, SshError.new("incompatible SSH version `#{@version}'"))
|
28
|
+
else
|
29
|
+
log.debug("local version: #{Net::SSH::Transport::ServerVersion::PROTO_VERSION}")
|
30
|
+
connection.send_data("#{Net::SSH::Transport::ServerVersion::PROTO_VERSION}\r\n")
|
31
|
+
cb.cancel
|
32
|
+
connection.fire(:version_negotiated)
|
28
33
|
end
|
29
|
-
log.debug("local version: #{Net::SSH::Transport::ServerVersion::PROTO_VERSION}")
|
30
|
-
connection.send_data("#{Net::SSH::Transport::ServerVersion::PROTO_VERSION}\r\n")
|
31
|
-
cb.cancel
|
32
|
-
connection.fire(:version_negotiated)
|
33
34
|
end # @header[-1] == "\n"
|
34
35
|
end # |data|
|
35
36
|
end
|
data/lib/em-ssh/shell.rb
CHANGED
@@ -184,7 +184,7 @@ module EventMachine
|
|
184
184
|
@shell = shell
|
185
185
|
shell.extend(EventMachine::Ssh::Connection::Channel::Interactive)
|
186
186
|
# Share callbacks with shell
|
187
|
-
|
187
|
+
shell.callbacks = callbacks
|
188
188
|
shell.line_terminator = @line_terminator if @line_terminator
|
189
189
|
shell.on(:data) { |data| debug("#{shell.dump_buffer}") }
|
190
190
|
set_open_status(self)
|
data/lib/em-ssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: 1.3.6
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.8.
|
125
|
+
rubygems_version: 1.8.25
|
126
126
|
signing_key:
|
127
127
|
specification_version: 3
|
128
128
|
summary: An EventMachine compatible net-ssh
|