net-ssh-simple 1.6.18 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +54 -46
- data/coverage/index.html +279 -231
- data/doc/Net.html +1 -1
- data/doc/Net/SSH.html +1 -1
- data/doc/Net/SSH/Simple.html +4 -15
- data/doc/Net/SSH/Simple/Error.html +19 -19
- data/doc/Net/SSH/Simple/Result.html +69 -69
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +10 -10
- data/doc/top-level-namespace.html +1 -1
- data/lib/net/ssh/simple.rb +12 -4
- data/lib/net/ssh/simple/version.rb +1 -1
- data/net-ssh-simple.gemspec +2 -2
- data/spec/net-ssh-simple.rb +1 -1
- metadata +10 -9
data/doc/method_list.html
CHANGED
@@ -106,14 +106,14 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
<li class="r2 ">
|
109
|
-
<span class='object_link'><a href="Net/SSH/Simple.html#initialize-instance_method" title="Net::SSH::Simple#initialize (method)">#initialize</a></span>
|
110
|
-
<small>Net::SSH::Simple</small>
|
109
|
+
<span class='object_link'><a href="Net/SSH/Simple/Error.html#initialize-instance_method" title="Net::SSH::Simple::Error#initialize (method)">#initialize</a></span>
|
110
|
+
<small>Net::SSH::Simple::Error</small>
|
111
111
|
</li>
|
112
112
|
|
113
113
|
|
114
114
|
<li class="r1 ">
|
115
|
-
<span class='object_link'><a href="Net/SSH/Simple
|
116
|
-
<small>Net::SSH::Simple
|
115
|
+
<span class='object_link'><a href="Net/SSH/Simple.html#initialize-instance_method" title="Net::SSH::Simple#initialize (method)">#initialize</a></span>
|
116
|
+
<small>Net::SSH::Simple</small>
|
117
117
|
</li>
|
118
118
|
|
119
119
|
|
@@ -142,25 +142,25 @@
|
|
142
142
|
|
143
143
|
|
144
144
|
<li class="r2 ">
|
145
|
-
<span class='object_link'><a href="Net/SSH/Simple.html#result-instance_method" title="Net::SSH::Simple#result (method)">#result</a></span>
|
146
|
-
<small>Net::SSH::Simple</small>
|
145
|
+
<span class='object_link'><a href="Net/SSH/Simple/Error.html#result-instance_method" title="Net::SSH::Simple::Error#result (method)">#result</a></span>
|
146
|
+
<small>Net::SSH::Simple::Error</small>
|
147
147
|
</li>
|
148
148
|
|
149
149
|
|
150
150
|
<li class="r1 ">
|
151
|
-
<span class='object_link'><a href="Net/SSH/Simple
|
152
|
-
<small>Net::SSH::Simple
|
151
|
+
<span class='object_link'><a href="Net/SSH/Simple.html#result-instance_method" title="Net::SSH::Simple#result (method)">#result</a></span>
|
152
|
+
<small>Net::SSH::Simple</small>
|
153
153
|
</li>
|
154
154
|
|
155
155
|
|
156
156
|
<li class="r2 ">
|
157
|
-
<span class='object_link'><a href="Net/SSH/Simple.html#scp_get-
|
157
|
+
<span class='object_link'><a href="Net/SSH/Simple.html#scp_get-instance_method" title="Net::SSH::Simple#scp_get (method)">#scp_get</a></span>
|
158
158
|
<small>Net::SSH::Simple</small>
|
159
159
|
</li>
|
160
160
|
|
161
161
|
|
162
162
|
<li class="r1 ">
|
163
|
-
<span class='object_link'><a href="Net/SSH/Simple.html#scp_get-
|
163
|
+
<span class='object_link'><a href="Net/SSH/Simple.html#scp_get-class_method" title="Net::SSH::Simple.scp_get (method)">scp_get</a></span>
|
164
164
|
<small>Net::SSH::Simple</small>
|
165
165
|
</li>
|
166
166
|
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on
|
106
|
+
Generated on Mon Apr 3 12:14:11 2017 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.7.6 (ruby-2.4.0).
|
109
109
|
</div>
|
data/lib/net/ssh/simple.rb
CHANGED
@@ -599,11 +599,19 @@ module Net
|
|
599
599
|
end
|
600
600
|
|
601
601
|
# set lower default timeout on 32bit ruby
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
602
|
+
is_64bit_platform = true
|
603
|
+
begin
|
604
|
+
Socket.tcp('127.0.0.1', 1, connect_timeout: 2**32).close
|
605
|
+
rescue Errno::EINVAL
|
606
|
+
is_64bit_platform = false
|
607
|
+
rescue
|
606
608
|
end
|
609
|
+
MAX_TIMEOUT = is_64bit_platform ? 2**32 : 2**16
|
610
|
+
|
611
|
+
# if MAX_TIMEOUT == 2**16 and $SUPPRESS_32BIT_WARNING.nil?
|
612
|
+
# warn "WARNING: 32bit platform detected; Net::SSH::Simple timeout defaults to 65536s (~18 hours)."
|
613
|
+
# warn "To suppress this warning set $SUPPRESS_32BIT_WARNING=1 before you require 'net/ssh/simple'."
|
614
|
+
# end
|
607
615
|
|
608
616
|
private
|
609
617
|
EXTRA_OPTS = [:operation_timeout, :close_timeout, :keepalive_interval, :scp_src, :scp_dst]
|
data/net-ssh-simple.gemspec
CHANGED
@@ -13,10 +13,10 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.required_ruby_version = '>= 1.9.2'
|
15
15
|
|
16
|
-
s.add_dependency "net-ssh", "= 4.0
|
16
|
+
s.add_dependency "net-ssh", "= 4.1.0"
|
17
17
|
s.add_dependency "net-scp", "= 1.2.1"
|
18
18
|
s.add_dependency "blockenspiel", "= 0.5.0"
|
19
|
-
s.add_dependency "hashie", "
|
19
|
+
s.add_dependency "hashie", "~> 3.5.5"
|
20
20
|
|
21
21
|
s.add_development_dependency "rake", "~> 10.4.2"
|
22
22
|
s.add_development_dependency "rspec", "= 2.14.1"
|
data/spec/net-ssh-simple.rb
CHANGED
@@ -118,7 +118,7 @@ describe Net::SSH::Simple do
|
|
118
118
|
Net::SSH::Simple.ssh('localhost', 'true', {:port => 0})
|
119
119
|
rescue => e
|
120
120
|
raised = true
|
121
|
-
e.to_s.should match
|
121
|
+
e.to_s.should match /connect\(2\)/
|
122
122
|
e.result.timed_out.should == nil
|
123
123
|
end
|
124
124
|
raised.should == true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-ssh-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: 4.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-scp
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: hashie
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.5.
|
61
|
+
version: 3.5.5
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.5.
|
68
|
+
version: 3.5.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,5 +200,6 @@ rubygems_version: 2.6.8
|
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: SSH without the headache
|
203
|
-
test_files:
|
203
|
+
test_files:
|
204
|
+
- spec/net-ssh-simple.rb
|
204
205
|
has_rdoc:
|