net-scp 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGES.txt +4 -0
- data/README.rdoc +6 -3
- data/lib/net/scp.rb +5 -2
- data/lib/net/scp/version.rb +1 -1
- data/net-scp.gemspec +2 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= Net::SCP
|
2
2
|
|
3
|
+
<em><b>Please note: this project is in maintenance mode. It is not under active development but pull requests are very much welcome. Just be sure to include tests! -- delano</b></em>
|
4
|
+
|
5
|
+
|
3
6
|
* Docs: http://net-ssh.github.com/net-scp
|
4
7
|
* Issues: https://github.com/net-ssh/net-scp/issues
|
5
8
|
* Codes: https://github.com/net-ssh/net-scp
|
@@ -28,18 +31,18 @@ In a nutshell:
|
|
28
31
|
# upload a file to a remote server
|
29
32
|
Net::SCP.upload!("remote.host.com", "username",
|
30
33
|
"/local/path", "/remote/path",
|
31
|
-
:password => "password")
|
34
|
+
:ssh => { :password => "password" })
|
32
35
|
|
33
36
|
# download a file from a remote server
|
34
37
|
Net::SCP.download!("remote.host.com", "username",
|
35
38
|
"/remote/path", "/local/path",
|
36
|
-
:password => password)
|
39
|
+
:ssh => { :password => "password" })
|
37
40
|
|
38
41
|
# download a file to an in-memory buffer
|
39
42
|
data = Net::SCP::download!("remote.host.com", "username", "/remote/path")
|
40
43
|
|
41
44
|
# use a persistent connection to transfer files
|
42
|
-
Net::SCP.start("remote.host.com", "username", :password => "password") do |scp|
|
45
|
+
Net::SCP.start("remote.host.com", "username", :ssh => { :password => "password" }) do |scp|
|
43
46
|
# upload a file to a remote server
|
44
47
|
scp.upload! "/local/path", "/remote/path"
|
45
48
|
|
data/lib/net/scp.rb
CHANGED
@@ -53,7 +53,7 @@ module Net
|
|
53
53
|
# == Progress Reporting
|
54
54
|
#
|
55
55
|
# By default, uploading and downloading proceed silently, without any
|
56
|
-
#
|
56
|
+
# outward indication of their progress. For long running uploads or downloads
|
57
57
|
# (and especially in interactive environments) it is desirable to report
|
58
58
|
# to the user the progress of the current operation.
|
59
59
|
#
|
@@ -408,7 +408,10 @@ module Net
|
|
408
408
|
end
|
409
409
|
|
410
410
|
# Imported from ruby 1.9.2 shellwords.rb
|
411
|
-
def shellescape(
|
411
|
+
def shellescape(path)
|
412
|
+
# Convert path to a string if it isn't already one.
|
413
|
+
str = path.to_s
|
414
|
+
|
412
415
|
# ruby 1.8.7+ implements String#shellescape
|
413
416
|
return str.shellescape if str.respond_to? :shellescape
|
414
417
|
|
data/lib/net/scp/version.rb
CHANGED
data/net-scp.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "net-scp"
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jamis Buck", "Delano Mandelbaum"]
|
12
12
|
s.cert_chain = ["gem-public_cert.pem"]
|
13
|
-
s.date = "2013-
|
13
|
+
s.date = "2013-07-06"
|
14
14
|
s.description = "A pure Ruby implementation of the SCP client protocol"
|
15
15
|
s.email = "net-ssh@solutious.com"
|
16
16
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-scp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
MVhNUThCTTJKejBYb1BhblBlMzU0K2xXd2pwa1JLYkZvdy9aYlFIY0NMQ3Ey
|
39
39
|
NCtONmI2ZwpkZ0tmTkR6d2lEcHFDQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
40
40
|
LS0tLS0K
|
41
|
-
date: 2013-
|
41
|
+
date: 2013-07-06 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: net-ssh
|
metadata.gz.sig
CHANGED
Binary file
|