net-ssh-simple 1.6.2 → 1.6.3

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.
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sat Jan 26 17:33:13 2013 by
106
+ Generated on Sun Dec 8 10:29:15 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.3 (ruby-1.9.3).
109
109
  </div>
@@ -321,18 +321,6 @@ module Net
321
321
  r
322
322
  end
323
323
 
324
- # @deprecated Use scp_put instead.
325
- def self.scp_ul(*args, &block)
326
- warn "[DEPRECATION] Net::SSH::Simple.scp_ul is deprecated. Please use .scp_put instead (usage is identical, the method was only renamed)."
327
- self.scp_put(*args, &block)
328
- end
329
-
330
- # @deprecated Use scp_get instead.
331
- def self.scp_dl(*args, &block)
332
- warn "[DEPRECATION] Net::SSH::Simple.scp_dl is deprecated. Please use .scp_get instead (usage is identical, the method was only renamed)."
333
- self.scp_get(*args, &block)
334
- end
335
-
336
324
  #
337
325
  # SCP upload to a remote host.
338
326
  # The underlying Net::SSH::Simple instance will re-use
@@ -368,18 +356,6 @@ module Net
368
356
  scp(:download, host, src, dst, opts, &block)
369
357
  end
370
358
 
371
- # @deprecated Use scp_put instead.
372
- def scp_ul(host, src, dst, opts={}, &block)
373
- warn "[DEPRECATION] Net::SSH::Simple#scp_ul is deprecated. Please use #scp_put instead (usage is identical, the method was only renamed)."
374
- scp_put(host, src, dst, opts, &block)
375
- end
376
-
377
- # @deprecated Use scp_get instead.
378
- def scp_dl(host, src, dst, opts={}, &block)
379
- warn "[DEPRECATION] Net::SSH::Simple#scp_dl is deprecated. Please use #scp_get instead (usage is identical, the method was only renamed)."
380
- scp_get(host, src, dst, opts, &block)
381
- end
382
-
383
359
  #
384
360
  # Perform SSH operation on a remote host and capture the result.
385
361
  # The underlying Net::SSH::Simple instance will re-use
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  module SSH
3
3
  class Simple
4
- VERSION = "1.6.2"
4
+ VERSION = "1.6.3"
5
5
  end
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.required_ruby_version = '>= 1.9.2'
15
15
 
16
- s.add_dependency "net-ssh", "~> 2.6.3"
16
+ s.add_dependency "net-ssh", "~> 2.7.0"
17
17
  s.add_dependency "net-scp", "~> 1.1.0"
18
18
  s.add_dependency "blockenspiel", "~> 0.4.3"
19
19
  s.add_dependency "hashie", ">= 1.1.0"
@@ -87,23 +87,6 @@ describe Net::SSH::Simple do
87
87
  raised.should == true
88
88
  end
89
89
 
90
- it "enforces operation timeout on scp_ul [DEPRECATED]" do
91
- raised = false
92
- begin
93
- r = Net::SSH::Simple.scp_ul('localhost', '/tmp/ssh_test_in0',
94
- '/tmp/ssh_test_out0', {:operation_timeout=>1}) \
95
- do |sent,total|
96
- sleep 5
97
- end
98
- rescue => e
99
- raised = true
100
- e.to_s.should match /^execution expired @ .*/
101
- e.result.op == :ssh
102
- e.result.timed_out.should == true
103
- end
104
- raised.should == true
105
- end
106
-
107
90
  it "enforces operation timeout on scp_get" do
108
91
  raised = false
109
92
  begin
@@ -121,23 +104,6 @@ describe Net::SSH::Simple do
121
104
  raised.should == true
122
105
  end
123
106
 
124
- it "enforces operation timeout on scp_dl [DEPRECATED]" do
125
- raised = false
126
- begin
127
- r = Net::SSH::Simple.scp_dl('localhost', '/tmp/ssh_test_in0',
128
- '/tmp/ssh_test_out0', {:operation_timeout=>1}) \
129
- do |sent,total|
130
- sleep 5
131
- end
132
- rescue => e
133
- raised = true
134
- e.to_s.should match /^execution expired @ .*/
135
- e.result.op == :ssh
136
- e.result.timed_out.should == true
137
- end
138
- raised.should == true
139
- end
140
-
141
107
  it "interprets timeout=0 as no timeout" do
142
108
  Net::SSH::Simple.ssh('localhost', 'sleep 2', {:timeout => 0})
143
109
  end
@@ -197,16 +163,6 @@ describe Net::SSH::Simple do
197
163
  Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
198
164
  end
199
165
 
200
- it "uploads via scp_ul [DEPRECATED]" do
201
- mockback = mock(:progress_callback)
202
- mockback.should_receive(:ping).at_least(:once)
203
- r = Net::SSH::Simple.scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
204
- mockback.ping
205
- end
206
- r.success.should == true
207
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
208
- end
209
-
210
166
  it "downloads via scp_get" do
211
167
  mockback = mock(:progress_callback)
212
168
  mockback.should_receive(:ping).at_least(:once)
@@ -217,15 +173,6 @@ describe Net::SSH::Simple do
217
173
  Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
218
174
  end
219
175
 
220
- it "downloads via scp_dl [DEPRECATED]" do
221
- mockback = mock(:progress_callback)
222
- mockback.should_receive(:ping).at_least(:once)
223
- r = Net::SSH::Simple.scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
224
- mockback.ping
225
- end
226
- r.success.should == true
227
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
228
- end
229
176
  end
230
177
 
231
178
  describe "instance" do
@@ -281,17 +228,6 @@ describe Net::SSH::Simple do
281
228
  Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
282
229
  end
283
230
 
284
- it "uploads via scp_ul [DEPRECATED]" do
285
- mockback = mock(:progress_callback)
286
- mockback.should_receive(:ping).at_least(:once)
287
- r = @s.scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
288
- mockback.ping
289
- end
290
- r.success.should == true
291
- r.op.should == :scp
292
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
293
- end
294
-
295
231
  it "downloads via scp_get" do
296
232
  mockback = mock(:progress_callback)
297
233
  mockback.should_receive(:ping).at_least(:once)
@@ -303,17 +239,6 @@ describe Net::SSH::Simple do
303
239
  Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
304
240
  end
305
241
 
306
- it "downloads via scp_dl [DEPRECATED]" do
307
- mockback = mock(:progress_callback)
308
- mockback.should_receive(:ping).at_least(:once)
309
- r = @s.scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
310
- mockback.ping
311
- end
312
- r.success.should == true
313
- r.op.should == :scp
314
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
315
- end
316
-
317
242
  it "supports async" do
318
243
  a = @s.async do
319
244
  ssh('localhost', 'sleep 1; echo hello')
@@ -376,18 +301,6 @@ describe Net::SSH::Simple do
376
301
  end
377
302
  end
378
303
 
379
- it "uploads via scp_ul [DEPRECATED]" do
380
- Net::SSH::Simple.sync do
381
- mockback = mock(:progress_callback)
382
- mockback.should_receive(:ping).at_least(:once)
383
- r = scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
384
- mockback.ping
385
- end
386
- r.success.should == true
387
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
388
- end
389
- end
390
-
391
304
  it "downloads via scp_get" do
392
305
  Net::SSH::Simple.sync do
393
306
  mockback = mock(:progress_callback)
@@ -400,17 +313,6 @@ describe Net::SSH::Simple do
400
313
  end
401
314
  end
402
315
 
403
- it "downloads via scp_dl [DEPRECATED]" do
404
- Net::SSH::Simple.sync do
405
- mockback = mock(:progress_callback)
406
- mockback.should_receive(:ping).at_least(:once)
407
- r = scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0') do |sent,total|
408
- mockback.ping
409
- end
410
- r.success.should == true
411
- Digest::MD5.file('/tmp/ssh_test_in0').should == Digest::MD5.file('/tmp/ssh_test_out0')
412
- end
413
- end
414
316
  end
415
317
 
416
318
  describe "asynchronous block syntax" do
@@ -539,20 +441,6 @@ describe Net::SSH::Simple do
539
441
  r.opts[:timeout].should == 7
540
442
  r.opts[:rekey_packet_limit].should == 42
541
443
 
542
- # also test deprecated scp_dl and scp_ul
543
- r = s.scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
544
- {:rekey_packet_limit => 42})
545
- r.op.should == :scp
546
- r.opts[:timeout].should == 7
547
- r.opts[:rekey_packet_limit].should == 42
548
-
549
- r = s.scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
550
- {:rekey_packet_limit => 42})
551
- r.op.should == :scp
552
- r.opts[:timeout].should == 7
553
- r.opts[:rekey_packet_limit].should == 42
554
- # /deprecated
555
-
556
444
  s.close
557
445
  end
558
446
 
@@ -576,20 +464,6 @@ describe Net::SSH::Simple do
576
464
  r.opts[:rekey_packet_limit].should == 42
577
465
  r.opts[:operation_timeout].should == 11
578
466
 
579
- # also test deprecated scp_dl and scp_ul
580
- r = scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
581
- {:rekey_packet_limit => 42})
582
- r.opts[:timeout].should == 7
583
- r.opts[:rekey_packet_limit].should == 42
584
- r.opts[:operation_timeout].should == 11
585
-
586
- r = scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
587
- {:rekey_packet_limit => 42})
588
- r.opts[:timeout].should == 7
589
- r.opts[:rekey_packet_limit].should == 42
590
- r.opts[:operation_timeout].should == 11
591
- # /deprecated methods
592
-
593
467
  :happy
594
468
  end
595
469
  t.value.should == :happy
@@ -611,17 +485,6 @@ describe Net::SSH::Simple do
611
485
  r.opts[:timeout].should == 7
612
486
  r.opts[:rekey_packet_limit].should == 42
613
487
 
614
- # also test deprecated scp_dl and scp_ul
615
- r = scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
616
- {:rekey_packet_limit => 42})
617
- r.opts[:timeout].should == 7
618
- r.opts[:rekey_packet_limit].should == 42
619
-
620
- r = scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
621
- {:rekey_packet_limit => 42})
622
- r.opts[:timeout].should == 7
623
- r.opts[:rekey_packet_limit].should == 42
624
- # /deprecated methods
625
488
  end
626
489
  end
627
490
 
@@ -641,18 +504,6 @@ describe Net::SSH::Simple do
641
504
  r.opts[:timeout].should == 7
642
505
  r.opts[:rekey_packet_limit].should == 42
643
506
 
644
- # also test deprecated scp_dl and scp_ul
645
- r = scp_ul('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
646
- {:rekey_packet_limit => 42})
647
- r.opts[:timeout].should == 7
648
- r.opts[:rekey_packet_limit].should == 42
649
-
650
- r = scp_dl('localhost', '/tmp/ssh_test_in0', '/tmp/ssh_test_out0',
651
- {:rekey_packet_limit => 42})
652
- r.opts[:timeout].should == 7
653
- r.opts[:rekey_packet_limit].should == 42
654
- # /deprecated methods
655
-
656
507
  :happy
657
508
  end
658
509
  t.value.should == :happy
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
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-02-11 00:00:00.000000000 Z
12
+ date: 2013-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.6.3
21
+ version: 2.7.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.6.3
29
+ version: 2.7.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: net-scp
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  segments:
239
239
  - 0
240
- hash: -3467061191469711006
240
+ hash: -341128292040629506
241
241
  requirements: []
242
242
  rubyforge_project:
243
243
  rubygems_version: 1.8.23