net-ssh 4.0.0.beta4 → 4.0.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -3
- data/CHANGES.txt +5 -0
- data/README.rdoc +3 -1
- data/lib/net/ssh.rb +2 -0
- data/lib/net/ssh/authentication/ed25519.rb +3 -3
- data/lib/net/ssh/transport/packet_stream.rb +5 -2
- data/lib/net/ssh/version.rb +1 -1
- metadata +25 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b4a7aacc4f382c72615319abb6514a3440a8294
|
4
|
+
data.tar.gz: 2be9a22f174b022b0361dbe559e24ed77645b2ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03c4e8fbedf00e24c79ab2adc62f1783e84b83f3b645224d883af15d09c9538eb7c5d20b296a5a216800bd92a40a0fcde55b3e4dd20cbe6b13c8e6b626ce166d
|
7
|
+
data.tar.gz: 546ecc7fe50cc365dda91c76136e6c1ed5d5f9e3d8a8cc8b97346e0e6a261d7fa5c04da01832e5de8694a24c9a6bb87282ebd140feb63357bb0973c9e5d39919
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
�2.)�[Oɋ�@�8��o0v�5/HcX�J-���Z�
|
2
|
+
x<��BcAf� �0ڐz#���Q�@m�9p�G颓.��ܛ��B���h��6�o�
|
3
|
+
��R�z���ɔ��G�������?sP+J��L�6�F`�7{0%p�I%=�)�H(���x��b��Iϟ��^��T]?d% �o]�]��}�E�`>0k6�Z��2�ž/�jh�a�2��D�E�����˽4#�a�Y�ܤ��ۡg8N����E1b`tؠ��9o�:��=
|
data/CHANGES.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
=== 4.0.0.rc1
|
2
|
+
|
3
|
+
* Allow :password to be nil for capistrano v2 compatibility [Will Bryant, #357]
|
4
|
+
* In next_packet if prefer consuming buffer before filling it again if we have enough data [Miklós Fazekas, #454]
|
5
|
+
|
1
6
|
=== 4.0.0.beta4
|
2
7
|
|
3
8
|
* Added exitstatus method to exec's return [Miklós Fazekas, #452]
|
data/README.rdoc
CHANGED
@@ -105,11 +105,13 @@ Then, when install the gem, do so with high security:
|
|
105
105
|
|
106
106
|
If you don't add the public key, you'll see an error like "Couldn't verify data signature". If you're still having trouble let me know and I'll give you a hand.
|
107
107
|
|
108
|
+
For ed25519 public key auth support your bundle file should contain ```rbnacl-libsodium```, ```rbnacl```, ```bcrypt_pbkdf``` dependencies.
|
109
|
+
|
108
110
|
== RUBY SUPPORT
|
109
111
|
|
110
112
|
* Ruby 1.8.x is supported up until the net-ssh 2.5.1 release.
|
111
113
|
* Ruby 1.9.x is supported up until the net-ssh 2.9.x release.
|
112
|
-
* Current net-ssh releases require Ruby 2.0 or later.
|
114
|
+
* Current net-ssh releases require Ruby 2.0 or later.
|
113
115
|
|
114
116
|
== RUNNING TESTS
|
115
117
|
|
data/lib/net/ssh.rb
CHANGED
@@ -209,6 +209,8 @@ module Net
|
|
209
209
|
|
210
210
|
assign_defaults(options)
|
211
211
|
|
212
|
+
options.delete(:password) if options.key?(:password) && options[:password].nil?
|
213
|
+
|
212
214
|
if options.values.include? nil
|
213
215
|
nil_options = options.keys.select { |k| options[k].nil? }
|
214
216
|
raise ArgumentError, "Value(s) have been set to nil: #{nil_options.join(', ')}"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
gem 'rbnacl-libsodium', '>= 1.0.10'
|
2
2
|
gem 'rbnacl', '>= 3.2.0', '< 4.0'
|
3
|
-
gem 'bcrypt_pbkdf', '~> 1.0.0
|
3
|
+
gem 'bcrypt_pbkdf', '~> 1.0.0' unless RUBY_PLATFORM == "java"
|
4
4
|
|
5
5
|
require 'rbnacl/libsodium'
|
6
6
|
require 'rbnacl'
|
@@ -84,7 +84,7 @@ module ED25519
|
|
84
84
|
len = buffer.read_long
|
85
85
|
|
86
86
|
keylen, blocksize, ivlen = CipherFactory.get_lengths(ciphername, iv_len: true)
|
87
|
-
raise ArgumentError.new("Private key len:#{len} is not a multiple of #{blocksize}") if
|
87
|
+
raise ArgumentError.new("Private key len:#{len} is not a multiple of #{blocksize}") if
|
88
88
|
((len < blocksize) || ((blocksize > 0) && (len % blocksize) != 0))
|
89
89
|
|
90
90
|
if kdfname == 'bcrypt'
|
@@ -134,4 +134,4 @@ module ED25519
|
|
134
134
|
end
|
135
135
|
end
|
136
136
|
end
|
137
|
-
end; end; end
|
137
|
+
end; end; end
|
@@ -69,13 +69,13 @@ module Net; module SSH; module Transport
|
|
69
69
|
PROXY_COMMAND_HOST_IP
|
70
70
|
end
|
71
71
|
end
|
72
|
-
|
72
|
+
|
73
73
|
# Returns true if the IO is available for reading, and false otherwise.
|
74
74
|
def available_for_read?
|
75
75
|
result = Net::SSH::Compat.io_select([self], nil, nil, 0)
|
76
76
|
result && result.first.any?
|
77
77
|
end
|
78
|
-
|
78
|
+
|
79
79
|
# Returns the next full packet. If the mode parameter is :nonblock (the
|
80
80
|
# default), then this will return immediately, whether a packet is
|
81
81
|
# available or not, and will return nil if there is no packet ready to be
|
@@ -84,6 +84,9 @@ module Net; module SSH; module Transport
|
|
84
84
|
def next_packet(mode=:nonblock)
|
85
85
|
case mode
|
86
86
|
when :nonblock then
|
87
|
+
packet = poll_next_packet
|
88
|
+
return packet if packet
|
89
|
+
|
87
90
|
if available_for_read?
|
88
91
|
if fill <= 0
|
89
92
|
result = poll_next_packet
|
data/lib/net/ssh/version.rb
CHANGED
@@ -55,7 +55,7 @@ module Net; module SSH
|
|
55
55
|
|
56
56
|
# The prerelease component of this version of the Net::SSH library
|
57
57
|
# nil allowed
|
58
|
-
PRE = "
|
58
|
+
PRE = "rc1"
|
59
59
|
|
60
60
|
# The current version of the Net::SSH library as a Version instance
|
61
61
|
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -31,118 +31,118 @@ cert_chain:
|
|
31
31
|
s/ZUKye79ELwFYKJOhjW5g725OL3hy+llhEleytwKRwgXFQBPTC4f5UkdxZVVWGH
|
32
32
|
e2C9M1m/2odPZo8h
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-11-
|
34
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rbnacl-libsodium
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.0.10
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 1.0.10
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: rbnacl
|
52
52
|
requirement: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 3.4.0
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ~>
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 3.4.0
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: bcrypt_pbkdf
|
66
66
|
requirement: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ~>
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 1.0.0
|
71
71
|
type: :development
|
72
72
|
prerelease: false
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 1.0.0
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: bundler
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ~>
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '1.11'
|
85
85
|
type: :development
|
86
86
|
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - ~>
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '1.11'
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: rake
|
94
94
|
requirement: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - ~>
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '11.1'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ~>
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '11.1'
|
106
106
|
- !ruby/object:Gem::Dependency
|
107
107
|
name: minitest
|
108
108
|
requirement: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - ~>
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '5.0'
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
115
|
version_requirements: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - ~>
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '5.0'
|
120
120
|
- !ruby/object:Gem::Dependency
|
121
121
|
name: rubocop
|
122
122
|
requirement: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - ~>
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: 0.39.0
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
129
|
version_requirements: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - ~>
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: 0.39.0
|
134
134
|
- !ruby/object:Gem::Dependency
|
135
135
|
name: mocha
|
136
136
|
requirement: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- -
|
138
|
+
- - '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: 1.1.0
|
141
141
|
type: :development
|
142
142
|
prerelease: false
|
143
143
|
version_requirements: !ruby/object:Gem::Requirement
|
144
144
|
requirements:
|
145
|
-
- -
|
145
|
+
- - '>='
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: 1.1.0
|
148
148
|
description: 'Net::SSH: a pure-Ruby implementation of the SSH2 client protocol. It
|
@@ -156,10 +156,10 @@ extra_rdoc_files:
|
|
156
156
|
- LICENSE.txt
|
157
157
|
- README.rdoc
|
158
158
|
files:
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
159
|
+
- .gitignore
|
160
|
+
- .rubocop.yml
|
161
|
+
- .rubocop_todo.yml
|
162
|
+
- .travis.yml
|
163
163
|
- CHANGES.txt
|
164
164
|
- Gemfile
|
165
165
|
- Gemfile.norbnacl
|
@@ -267,17 +267,17 @@ require_paths:
|
|
267
267
|
- lib
|
268
268
|
required_ruby_version: !ruby/object:Gem::Requirement
|
269
269
|
requirements:
|
270
|
-
- -
|
270
|
+
- - '>='
|
271
271
|
- !ruby/object:Gem::Version
|
272
272
|
version: '2.0'
|
273
273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
274
|
requirements:
|
275
|
-
- -
|
275
|
+
- - '>'
|
276
276
|
- !ruby/object:Gem::Version
|
277
277
|
version: 1.3.1
|
278
278
|
requirements: []
|
279
279
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.6.8
|
281
281
|
signing_key:
|
282
282
|
specification_version: 4
|
283
283
|
summary: 'Net::SSH: a pure-Ruby implementation of the SSH2 client protocol.'
|
metadata.gz.sig
CHANGED
Binary file
|