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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cbfca972e9cc5bd85bd596ce1be966402e2d6d30
4
- data.tar.gz: 33451e0d0cd8d4d9c77f8c2aecc70f28d67100a2
2
+ SHA256:
3
+ metadata.gz: 6d38d9c9b08f1022ca8a79b6dd2806d80ec7dea76b483f67389ad928e248f5d1
4
+ data.tar.gz: 73c914705f8b5fc73fa103916cd26a244133ca266a4439af92f277db24935472
5
5
  SHA512:
6
- metadata.gz: 660a95fd1181762c52dc1929637ce5791f11c101f327dfce376bce9b412ac539b4448d345438c70773c842abdc031acf3b5e5b179864ac98050d0931e4962271
7
- data.tar.gz: c6b069bde4616271d17cc86f48dae3abcc69d098b9a63880dd31559b1da04c8780d64f5b4f1ca3e2525b32d184eca50b1abecf1f973c20a6f463942d65e9bbbc
6
+ metadata.gz: b0a0836414ab27a961f1bfac885a5b9b6b36398ab04fb7b8173c9359d0b6a76e819bb5e683504a567b51f73e23fbd93dbdcf6173b2c7649506cee423058defa2
7
+ data.tar.gz: aa10cbd5f3e52db8c424ca61ce26cca59c3dd2b9777aa25aac54c6ac915b2a40c7e83797da207f20a36cb98d1d4559512fd437bd5cd8d7161e0bdb7b2fa5c4ac
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- Y�_�:�OgWS�h�`VO�����D����#�, �4��-�x���sQ�O'H��Q5�H)$�Ys@���)84������y����靭{K�ݳ]Z�&z4%��T,Y- 1<��=wWA<����b|o?���fW� ���%=��<�q�NABŏ"�M� M�yՈ�/ �݁�g����?�2��m2u�`mw�X�]�+��s���;�� ������qu�}������H D��?�Ϛ�Rؗ�"b`�
1
+ X���B�(�����q��"1P+e���_���Y�-r ��+�"���L��tql&\�IC��0���'l�5B��Fp.(-h��k|B��P{2}0���6"٘P��X�5L^^�
@@ -1,3 +1,8 @@
1
+ === 3.0.0
2
+
3
+ * NetSHH 6.* support
4
+
5
+
1
6
  === 2.0.0
2
7
 
3
8
  * NetSSH 5.* support
@@ -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 signiture[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):
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, when install the gem, do so with high security:
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
@@ -39,7 +39,6 @@ if false
39
39
  Jeweler::Tasks.new do |s|
40
40
  s.version = version
41
41
  s.name = name
42
- s.rubyforge_project = s.name
43
42
  s.summary = "A pure Ruby implementation of the SCP client protocol"
44
43
  s.description = s.summary
45
44
  s.email = "net-ssh@solutious.com"
@@ -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
@@ -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 = 2
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 = nil
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)
@@ -1,21 +1,20 @@
1
1
  -----BEGIN CERTIFICATE-----
2
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
3
- c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
4
- b20wHhcNMTgwNjA0MTA0OTQwWhcNMTkwNjA0MTA0OTQwWjBBMQ8wDQYDVQQDDAZu
5
- ZXRzc2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
6
- FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGJ4TbZ9H+qZ08
7
- pQfJhPJTHaDCyQvCsKTFrL5O9z3tllQ7B/zksMMM+qFBpNYu9HCcg4yBATacE/PB
8
- qVVyUrpr6lbH/XwoN5ljXm+bdCfmnjZvTCL2FTE6o+bcnaF0IsJyC0Q2B1fbWdXN
9
- 6Off1ZWoUk6We2BIM1bn6QJLxBpGyYhvOPXsYoqSuzDf2SJDDsWFZ8kV5ON13Ohm
10
- JbBzn0oD8HF8FuYOewwsC0C1q4w7E5GtvHcQ5juweS7+RKsyDcVcVrLuNzoGRttS
11
- KP4yMn+TzaXijyjRg7gECfJr3TGASaA4bQsILFGG5dAWcwO4OMr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jddzoZiWwc59KA/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-----
@@ -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", "< 6.0.0"])
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", "< 6.0.0"])
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", "< 6.0.0"])
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: 2.0.0
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
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
16
- c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
17
- b20wHhcNMTgwNjA0MTA0OTQwWhcNMTkwNjA0MTA0OTQwWjBBMQ8wDQYDVQQDDAZu
18
- ZXRzc2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
19
- FgNjb20wggEiMA0GCSqGSIb3D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WrsLUtI
32
+ Nkqln1AUK+VU/Y+SS6RfI4irHlQ=
34
33
  -----END CERTIFICATE-----
35
- date: 2019-03-20 00:00:00.000000000 Z
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: 6.0.0
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: 6.0.0
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
- rubyforge_project:
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