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.
@@ -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/Error.html#initialize-instance_method" title="Net::SSH::Simple::Error#initialize (method)">#initialize</a></span>
116
- <small>Net::SSH::Simple::Error</small>
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/Error.html#result-instance_method" title="Net::SSH::Simple::Error#result (method)">#result</a></span>
152
- <small>Net::SSH::Simple::Error</small>
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-class_method" title="Net::SSH::Simple.scp_get (method)">scp_get</a></span>
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-instance_method" title="Net::SSH::Simple#scp_get (method)">#scp_get</a></span>
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 Fri Feb 17 14:13:14 2017 by
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>
@@ -599,11 +599,19 @@ module Net
599
599
  end
600
600
 
601
601
  # set lower default timeout on 32bit ruby
602
- MAX_TIMEOUT = ([''].pack('p').size == 8) ? 2**32 : 2**16
603
- if MAX_TIMEOUT == 2**16 and $SUPPRESS_32BIT_WARNING.nil?
604
- warn "WARNING: 32bit platform detected; Net::SSH::Simple timeout defaults to 65536s (~18 hours)."
605
- warn "To suppress this warning set $SUPPRESS_32BIT_WARNING=1 before you require 'net/ssh/simple'."
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]
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  module SSH
3
3
  class Simple
4
- VERSION = "1.6.18"
4
+ VERSION = "1.7.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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.1"
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", "= 3.5.3"
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"
@@ -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 /^Connection refused - connect\(2\).*/
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.6.18
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-02-17 00:00:00.000000000 Z
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.1
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.1
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.3
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.3
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: