net-scp 2.0.0 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -1
- data/CHANGES.txt +5 -0
- data/README.rdoc +6 -2
- data/Rakefile +0 -1
- data/lib/net/scp.rb +1 -1
- data/lib/net/scp/version.rb +2 -2
- data/net-scp-public_cert.pem +18 -19
- data/net-scp.gemspec +6 -3
- metadata +25 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6d38d9c9b08f1022ca8a79b6dd2806d80ec7dea76b483f67389ad928e248f5d1
|
4
|
+
data.tar.gz: 73c914705f8b5fc73fa103916cd26a244133ca266a4439af92f277db24935472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a0836414ab27a961f1bfac885a5b9b6b36398ab04fb7b8173c9359d0b6a76e819bb5e683504a567b51f73e23fbd93dbdcf6173b2c7649506cee423058defa2
|
7
|
+
data.tar.gz: aa10cbd5f3e52db8c424ca61ce26cca59c3dd2b9777aa25aac54c6ac915b2a40c7e83797da207f20a36cb98d1d4559512fd437bd5cd8d7161e0bdb7b2fa5c4ac
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
�X���B�(�����q��"1P+e���_���Y�-r ��+�"���L��tql&\�IC��0���'�l�5B��Fp.(-h��k|B��P�{2�}�0���6"٘P��X�5�L^^�
|
data/CHANGES.txt
CHANGED
data/README.rdoc
CHANGED
@@ -32,6 +32,10 @@ In a nutshell:
|
|
32
32
|
Net::SCP.upload!("remote.host.com", "username",
|
33
33
|
"/local/path", "/remote/path",
|
34
34
|
:ssh => { :password => "password" })
|
35
|
+
|
36
|
+
# upload recursively
|
37
|
+
Net::SCP.upload!("remote.host", "username", "/path/to/local", "/path/to/remote",
|
38
|
+
:ssh => { :password => "foo" }, :recursive => true)
|
35
39
|
|
36
40
|
# download a file from a remote server
|
37
41
|
Net::SCP.download!("remote.host.com", "username",
|
@@ -74,14 +78,14 @@ If you wish to run the tests, you'll also need:
|
|
74
78
|
|
75
79
|
* gem install net-scp (might need sudo privileges)
|
76
80
|
|
77
|
-
However, in order to be sure the code you're installing hasn't been tampered with, it's recommended that you verify the
|
81
|
+
However, in order to be sure the code you're installing hasn't been tampered with, it's recommended that you verify the signature[http://docs.seattlerb.org/rubygems/Gem/Security.html]. To do this, you need to add my public key as a trusted certificate (you only need to do this once):
|
78
82
|
|
79
83
|
# Add the public key as a trusted certificate
|
80
84
|
# (You only need to do this once)
|
81
85
|
$ curl -O https://raw.githubusercontent.com/net-ssh/net-ssh/master/net-ssh-public_cert.pem
|
82
86
|
$ gem cert --add net-ssh-public_cert.pem
|
83
87
|
|
84
|
-
Then
|
88
|
+
Then- when installing the gem - do so with high security:
|
85
89
|
|
86
90
|
$ gem install net-scp -P HighSecurity
|
87
91
|
|
data/Rakefile
CHANGED
data/lib/net/scp.rb
CHANGED
@@ -317,7 +317,7 @@ module Net
|
|
317
317
|
#
|
318
318
|
# data = download!("/remote/path")
|
319
319
|
def download!(remote, local=nil, options={}, &progress)
|
320
|
-
destination = local ? local : StringIO.new
|
320
|
+
destination = local ? local : StringIO.new.tap { |io| io.set_encoding('BINARY') }
|
321
321
|
download(remote, destination, options, &progress).wait
|
322
322
|
local ? true : destination.string
|
323
323
|
end
|
data/lib/net/scp/version.rb
CHANGED
@@ -46,7 +46,7 @@ module Net
|
|
46
46
|
end
|
47
47
|
|
48
48
|
# The major component of this version of the Net::SSH library
|
49
|
-
MAJOR =
|
49
|
+
MAJOR = 3
|
50
50
|
|
51
51
|
# The minor component of this version of the Net::SSH library
|
52
52
|
MINOR = 0
|
@@ -56,7 +56,7 @@ module Net
|
|
56
56
|
|
57
57
|
# The prerelease component of this version of the Net::SSH library
|
58
58
|
# nil allowed
|
59
|
-
PRE =
|
59
|
+
PRE = "rc1"
|
60
60
|
|
61
61
|
# The current version of the Net::SSH library as a Version instance
|
62
62
|
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
data/net-scp-public_cert.pem
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
7UnoE3CP9Tk5GHVUina5gPyzl0VI4s4pYCPehQ==
|
2
|
+
MIIDQDCCAiigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpuZXRz
|
3
|
+
c2gvREM9c29sdXRpb3VzL0RDPWNvbTAeFw0yMDAyMDMxMTEwMjJaFw0yMTAyMDIx
|
4
|
+
MTEwMjJaMCUxIzAhBgNVBAMMGm5ldHNzaC9EQz1zb2x1dGlvdXMvREM9Y29tMIIB
|
5
|
+
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxieE22fR/qmdPKUHyYTyUx2g
|
6
|
+
wskLwrCkxay+Tvc97ZZUOwf85LDDDPqhQaTWLvRwnIOMgQE2nBPzwalVclK6a+pW
|
7
|
+
x/18KDeZY15vm3Qn5p42b0wi9hUxOqPm3J2hdCLCcgtENgdX21nVzejn39WVqFJO
|
8
|
+
lntgSDNW5+kCS8QaRsmIbzj17GKKkrsw39kiQw7FhWfJFeTjddzoZiWwc59KA/Bx
|
9
|
+
fBbmDnsMLAtAtauMOxORrbx3EOY7sHku/kSrMg3FXFay7jc6BkbbUij+MjJ/k82l
|
10
|
+
4o8o0YO4BAnya90xgEmgOG0LCCxRhuXQFnMDuDjK2XnUe0h4/6NCn94C+z9GsQID
|
11
|
+
AQABo3sweTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUBfKiwO2e
|
12
|
+
M4NEiRrVG793qEPLYyMwHwYDVR0RBBgwFoEUbmV0c3NoQHNvbHV0aW91cy5jb20w
|
13
|
+
HwYDVR0SBBgwFoEUbmV0c3NoQHNvbHV0aW91cy5jb20wDQYJKoZIhvcNAQELBQAD
|
14
|
+
ggEBAEX1hTqm214do6XA9kKqZ9Y5vAEoylc486EO+2tqB0IPd2fDfoR3cHaF+wce
|
15
|
+
nirOmEJ+H9Q4Ehx+/bycte/zhADTXXdIVzrcee47yZ3FXPkWIuItB+UdIWDyle6a
|
16
|
+
d6WBpOQfuEU4f10hGew2qTMjmnr9s1XDO2kBcfwaIW3jTTQbqmH70wy+t+5i+sQb
|
17
|
+
3EsE1xwDi47Td8kbeJ/RsvVIpXdq6aXILzlRMV86Qd1N4gRm3M52TehJa9RJseTw
|
18
|
+
pG2//qKBn/ef0vtnP/2TUc+8Y79K7nCh/TIS0nuFZPH9anXsyVZxp7IByWrsLUtI
|
19
|
+
Nkqln1AUK+VU/Y+SS6RfI4irHlQ=
|
21
20
|
-----END CERTIFICATE-----
|
data/net-scp.gemspec
CHANGED
@@ -17,6 +17,9 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.homepage = "https://github.com/net-ssh/net-scp"
|
18
18
|
spec.license = "MIT"
|
19
19
|
spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version=
|
20
|
+
spec.metadata = {
|
21
|
+
"changelog_uri" => "https://github.com/net-ssh/net-scp/blob/master/CHANGES.txt"
|
22
|
+
}
|
20
23
|
|
21
24
|
spec.extra_rdoc_files = [
|
22
25
|
"LICENSE.txt",
|
@@ -30,16 +33,16 @@ Gem::Specification.new do |spec|
|
|
30
33
|
spec.specification_version = 3
|
31
34
|
|
32
35
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
33
|
-
spec.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5", "<
|
36
|
+
spec.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5", "< 7.0.0"])
|
34
37
|
spec.add_development_dependency(%q<test-unit>, [">= 0"])
|
35
38
|
spec.add_development_dependency(%q<mocha>, [">= 0"])
|
36
39
|
else
|
37
|
-
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "<
|
40
|
+
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 7.0.0"])
|
38
41
|
spec.add_dependency(%q<test-unit>, [">= 0"])
|
39
42
|
spec.add_dependency(%q<mocha>, [">= 0"])
|
40
43
|
end
|
41
44
|
else
|
42
|
-
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "<
|
45
|
+
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 7.0.0"])
|
43
46
|
spec.add_dependency(%q<test-unit>, [">= 0"])
|
44
47
|
spec.add_dependency(%q<mocha>, [">= 0"])
|
45
48
|
end
|
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:
|
4
|
+
version: 3.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -12,27 +12,26 @@ bindir: bin
|
|
12
12
|
cert_chain:
|
13
13
|
- |
|
14
14
|
-----BEGIN CERTIFICATE-----
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
7UnoE3CP9Tk5GHVUina5gPyzl0VI4s4pYCPehQ==
|
15
|
+
MIIDQDCCAiigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBp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V86Qd1N4gRm3M52TehJa9RJseTw
|
31
|
+
pG2//qKBn/ef0vtnP/2TUc+8Y79K7nCh/TIS0nuFZPH9anXsyVZxp7IByWrsLUtI
|
32
|
+
Nkqln1AUK+VU/Y+SS6RfI4irHlQ=
|
34
33
|
-----END CERTIFICATE-----
|
35
|
-
date:
|
34
|
+
date: 2020-02-03 00:00:00.000000000 Z
|
36
35
|
dependencies:
|
37
36
|
- !ruby/object:Gem::Dependency
|
38
37
|
name: net-ssh
|
@@ -43,7 +42,7 @@ dependencies:
|
|
43
42
|
version: 2.6.5
|
44
43
|
- - "<"
|
45
44
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
45
|
+
version: 7.0.0
|
47
46
|
type: :runtime
|
48
47
|
prerelease: false
|
49
48
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -53,7 +52,7 @@ dependencies:
|
|
53
52
|
version: 2.6.5
|
54
53
|
- - "<"
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
55
|
+
version: 7.0.0
|
57
56
|
- !ruby/object:Gem::Dependency
|
58
57
|
name: test-unit
|
59
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,7 +111,8 @@ files:
|
|
112
111
|
homepage: https://github.com/net-ssh/net-scp
|
113
112
|
licenses:
|
114
113
|
- MIT
|
115
|
-
metadata:
|
114
|
+
metadata:
|
115
|
+
changelog_uri: https://github.com/net-ssh/net-scp/blob/master/CHANGES.txt
|
116
116
|
post_install_message:
|
117
117
|
rdoc_options: []
|
118
118
|
require_paths:
|
@@ -128,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
|
132
|
-
rubygems_version: 2.6.8
|
131
|
+
rubygems_version: 3.0.3
|
133
132
|
signing_key:
|
134
133
|
specification_version: 3
|
135
134
|
summary: A pure Ruby implementation of the SCP client protocol.
|
metadata.gz.sig
CHANGED
Binary file
|