public
Description: Pure Ruby implementation of the SCP protocol
Homepage: http://rubyforge.org/projects/net-ssh
Clone URL: git://github.com/jamis/net-scp.git
Search Repo:
shuffle things around a bit to add Hoe support
jamis (author)
Fri Mar 14 11:56:28 -0700 2008
commit  314dde6822cbd8b6f625efcf5895c6a131dabe09
tree    122f7a784fa7eecea9344c97146c31ad1615fafc
parent  4b7faf7cadf5b8d2809e034b62aa69acb00ad53d
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
 
23
24
25
0
@@ -1,9 +1,25 @@
0
+require 'test/unit'
0
+require 'mocha'
0
+
0
+begin
0
+ gem 'net-ssh', ">= 2.0.0"
0
+ require 'net/ssh'
0
+rescue LoadError
0
+ $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../net-ssh/lib"
0
+
0
+ begin
0
+ require 'net/ssh'
0
+ require 'net/ssh/version'
0
+ raise LoadError, "wrong version" unless Net::SSH::Version::STRING >= '1.99.0'
0
+ rescue LoadError => e
0
+ abort "could not load net/ssh v2 (#{e.inspect})"
0
+ end
0
+end
0
+
0
 $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"
0
 
0
 require 'net/scp'
0
 require 'net/ssh/test'
0
-require 'test/unit'
0
-require 'mocha'
0
 
0
 class Net::SSH::Test::Channel
0
   def gets_ok
...
1
2
3
4
...
 
1
2
3
0
@@ -1,4 +1,3 @@
0
-$LOAD_PATH.unshift File.dirname(__FILE__)
0
 require 'common'
0
 
0
 class TestDownload < Net::SCP::TestCase
...
1
2
3
4
...
 
1
2
3
0
@@ -1,4 +1,3 @@
0
-$LOAD_PATH.unshift File.dirname(__FILE__)
0
 require 'common'
0
 
0
 class TestSCP < Test::Unit::TestCase
...
1
2
3
4
...
 
1
2
3
0
@@ -1,4 +1,3 @@
0
-$LOAD_PATH.unshift File.dirname(__FILE__)
0
 require 'common'
0
 
0
 class TestUpload < Net::SCP::TestCase

Comments

    No one has commented yet.