net-scp 1.1.1 → 1.1.2

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.
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,8 @@
1
1
 
2
+ === 1.1.2 / 6 Jul 2013
3
+
4
+ * Explicit convert to string in shellescape [jwils]
5
+
2
6
  === 1.1.1 / 13 May 2013
3
7
 
4
8
  * Allow passing a shell to use when executing scp. [Arthur Schreiber]
@@ -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
 
@@ -53,7 +53,7 @@ module Net
53
53
  # == Progress Reporting
54
54
  #
55
55
  # By default, uploading and downloading proceed silently, without any
56
- # outword indication of their progress. For long running uploads or downloads
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(str)
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
 
@@ -6,7 +6,7 @@ module Net; class SCP
6
6
  class Version < Net::SSH::Version
7
7
  MAJOR = 1
8
8
  MINOR = 1
9
- TINY = 1
9
+ TINY = 2
10
10
 
11
11
  # The current version, as a Version instance
12
12
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "net-scp"
8
- s.version = "1.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-05-13"
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.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-05-13 00:00:00.000000000 Z
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