net-sftp 2.1.2 → 2.1.3.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +5 -0
- data/.travis.yml +20 -0
- data/Gemfile +15 -0
- data/README.rdoc +4 -1
- data/Rakefile +28 -5
- data/lib/net/sftp/operations/download.rb +1 -0
- data/lib/net/sftp/operations/upload.rb +1 -1
- data/lib/net/sftp/session.rb +5 -4
- data/lib/net/sftp/version.rb +63 -13
- data/net-sftp-public_cert.pem +21 -0
- data/net-sftp.gemspec +34 -93
- metadata +50 -77
- metadata.gz.sig +0 -0
- data/gem-public_cert.pem +0 -20
- data/test/common.rb +0 -184
- data/test/protocol/01/test_attributes.rb +0 -97
- data/test/protocol/01/test_base.rb +0 -210
- data/test/protocol/01/test_name.rb +0 -27
- data/test/protocol/02/test_base.rb +0 -26
- data/test/protocol/03/test_base.rb +0 -27
- data/test/protocol/04/test_attributes.rb +0 -148
- data/test/protocol/04/test_base.rb +0 -74
- data/test/protocol/04/test_name.rb +0 -53
- data/test/protocol/05/test_base.rb +0 -62
- data/test/protocol/06/test_attributes.rb +0 -124
- data/test/protocol/06/test_base.rb +0 -51
- data/test/protocol/test_base.rb +0 -42
- data/test/test_all.rb +0 -7
- data/test/test_dir.rb +0 -47
- data/test/test_download.rb +0 -287
- data/test/test_file.rb +0 -159
- data/test/test_file_factory.rb +0 -48
- data/test/test_packet.rb +0 -9
- data/test/test_protocol.rb +0 -17
- data/test/test_request.rb +0 -71
- data/test/test_response.rb +0 -53
- data/test/test_session.rb +0 -741
- data/test/test_upload.rb +0 -233
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e9a48b2b29a27705ffe23d92e2a9644c399326319a62056258a0406d11afff4
|
4
|
+
data.tar.gz: 4658e8f758f33ae1fb9ac3025b03fd7c0d29fec7b4f0aa3b0e4c3b863b206886
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 349388ac2986916128f034700d03c205e23ecbf9e6e04a14f99b2942cf3862a59cc1795a9b837aaa79b6bb383d7ff26ff8594b55239fa50c691dc453b3b8ad0f
|
7
|
+
data.tar.gz: f7cfe5fb79f658ba817bf8b94d737a8b01147780ec167b51258384ba93c24bd94f0ee6c875f3f8c71f6637d61086c72e8e85413ff207c2e6c8bf76ce052258db
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
rvm:
|
4
|
+
- 2.0.0
|
5
|
+
- 2.1.0
|
6
|
+
- 2.2.0
|
7
|
+
- 2.3.0
|
8
|
+
- 2.4.0
|
9
|
+
- ruby-head
|
10
|
+
- jruby-head
|
11
|
+
- rbx-2
|
12
|
+
|
13
|
+
install: gem install net-ssh test-unit mocha
|
14
|
+
|
15
|
+
script: rake test
|
16
|
+
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- rvm: jruby-head
|
20
|
+
- rvm: rbx-2
|
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in mygem.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
# TODO: add to gemspec
|
7
|
+
gem "bundler", "~> 1.11"
|
8
|
+
gem "rake", "~> 12.0"
|
9
|
+
|
10
|
+
gem 'byebug', group: %i[development test] if !Gem.win_platform? && RUBY_ENGINE == "ruby"
|
11
|
+
|
12
|
+
if ENV["CI"]
|
13
|
+
gem 'codecov', require: false, group: :test
|
14
|
+
gem 'simplecov', require: false, group: :test
|
15
|
+
end
|
data/README.rdoc
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
= Net::SFTP
|
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-sftp
|
4
7
|
* Issues: https://github.com/net-ssh/net-sftp/issues
|
5
8
|
* Codes: https://github.com/net-ssh/net-sftp
|
@@ -69,7 +72,7 @@ If you wish to run the tests, you'll need:
|
|
69
72
|
|
70
73
|
* gem install net-sftp (might need sudo privileges)
|
71
74
|
|
72
|
-
However, in order to be sure the code you're installing hasn't been tampered with, it's recommended that you verify the
|
75
|
+
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.rubygems.org/read/chapter/21]. To do this, you need to add my public key as a trusted certificate (you only need to do this once):
|
73
76
|
|
74
77
|
# Add the public key as a trusted certificate
|
75
78
|
# (You only need to do this once)
|
data/Rakefile
CHANGED
@@ -2,15 +2,38 @@ require "rubygems"
|
|
2
2
|
require "rake"
|
3
3
|
require "rake/clean"
|
4
4
|
require "rdoc/task"
|
5
|
+
require "bundler/gem_tasks"
|
6
|
+
|
7
|
+
desc "When releasing make sure NET_SSH_BUILDGEM_SIGNED is set"
|
8
|
+
task :check_NET_SSH_BUILDGEM_SIGNED do
|
9
|
+
raise "NET_SSH_BUILDGEM_SIGNED should be set to release" unless ENV['NET_SSH_BUILDGEM_SIGNED']
|
10
|
+
end
|
11
|
+
|
12
|
+
Rake::Task[:release].enhance [:check_NET_SSH_BUILDGEM_SIGNED]
|
13
|
+
Rake::Task[:release].prerequisites.unshift(:check_NET_SSH_BUILDGEM_SIGNED)
|
5
14
|
|
6
15
|
task :default => ["build"]
|
7
16
|
CLEAN.include [ 'pkg', 'rdoc' ]
|
8
17
|
name = "net-sftp"
|
9
18
|
|
10
|
-
|
11
|
-
|
12
|
-
|
19
|
+
require_relative "lib/net/sftp/version"
|
20
|
+
version = Net::SFTP::Version::CURRENT
|
21
|
+
|
22
|
+
namespace :cert do
|
23
|
+
desc "Update public cert from private - only run if public is expired"
|
24
|
+
task :update_public_when_expired do
|
25
|
+
require 'openssl'
|
26
|
+
require 'time'
|
27
|
+
raw = File.read "net-sftp-public_cert.pem"
|
28
|
+
certificate = OpenSSL::X509::Certificate.new raw
|
29
|
+
raise Exception, "Not yet expired: #{certificate.not_after}" unless certificate.not_after < Time.now
|
30
|
+
sh "gem cert --build netssh@solutious.com --days 365*5 --private-key /mnt/gem/net-ssh-private_key.pem"
|
31
|
+
sh "mv gem-public_cert.pem net-sftp-public_cert.pem"
|
32
|
+
sh "gem cert --add net-sftp-public_cert.pem"
|
33
|
+
end
|
34
|
+
end
|
13
35
|
|
36
|
+
if false
|
14
37
|
begin
|
15
38
|
require "jeweler"
|
16
39
|
Jeweler::Tasks.new do |s|
|
@@ -37,6 +60,7 @@ begin
|
|
37
60
|
rescue LoadError
|
38
61
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
39
62
|
end
|
63
|
+
end
|
40
64
|
|
41
65
|
require 'rake/testtask'
|
42
66
|
Rake::TestTask.new do |t|
|
@@ -53,7 +77,6 @@ RDoc::Task.new do |rdoc|
|
|
53
77
|
rdoc.rdoc_files.include("bin/*.rb")
|
54
78
|
rdoc.rdoc_files.include("lib/**/*.rb")
|
55
79
|
extra_files.each { |file|
|
56
|
-
rdoc.rdoc_files.include(file) if File.
|
80
|
+
rdoc.rdoc_files.include(file) if File.exist?(file)
|
57
81
|
}
|
58
82
|
end
|
59
|
-
|
@@ -173,7 +173,7 @@ module Net; module SFTP; module Operations
|
|
173
173
|
process_next_entry
|
174
174
|
end
|
175
175
|
else
|
176
|
-
raise ArgumentError, "expected a file to upload" unless local.respond_to?(:read) || ::File.
|
176
|
+
raise ArgumentError, "expected a file to upload" unless local.respond_to?(:read) || ::File.exist?(local)
|
177
177
|
@stack = [[local]]
|
178
178
|
process_next_entry
|
179
179
|
end
|
data/lib/net/sftp/session.rb
CHANGED
@@ -75,8 +75,9 @@ module Net; module SFTP
|
|
75
75
|
#
|
76
76
|
# sftp = Net::SFTP::Session.new(ssh)
|
77
77
|
# sftp.loop { sftp.opening? }
|
78
|
-
def initialize(session, &block)
|
78
|
+
def initialize(session, version = nil, &block)
|
79
79
|
@session = session
|
80
|
+
@version = version
|
80
81
|
@input = Net::SSH::Buffer.new
|
81
82
|
self.logger = session.logger
|
82
83
|
@state = :closed
|
@@ -106,7 +107,7 @@ module Net; module SFTP
|
|
106
107
|
# Initiates a download from +remote+ to +local+, asynchronously. This
|
107
108
|
# method will return a new Net::SFTP::Operations::Download instance, and requires
|
108
109
|
# that the event loop be run in order for the download to progress. See
|
109
|
-
# Net::SFTP::Operations::Download for a full discussion of
|
110
|
+
# Net::SFTP::Operations::Download for a full discussion of how this method can be
|
110
111
|
# used.
|
111
112
|
#
|
112
113
|
# download = sftp.download("/remote/path", "/local/path")
|
@@ -876,7 +877,7 @@ module Net; module SFTP
|
|
876
877
|
channel.on_close(&method(:when_channel_closed))
|
877
878
|
channel.on_process(&method(:when_channel_polled))
|
878
879
|
|
879
|
-
send_packet(FXP_INIT, :long, HIGHEST_PROTOCOL_VERSION_SUPPORTED)
|
880
|
+
send_packet(FXP_INIT, :long, @version || HIGHEST_PROTOCOL_VERSION_SUPPORTED)
|
880
881
|
end
|
881
882
|
|
882
883
|
# Called when the SSH server closes the underlying channel.
|
@@ -949,4 +950,4 @@ module Net; module SFTP
|
|
949
950
|
end
|
950
951
|
end
|
951
952
|
|
952
|
-
end; end
|
953
|
+
end; end
|
data/lib/net/sftp/version.rb
CHANGED
@@ -1,18 +1,68 @@
|
|
1
|
-
|
1
|
+
module Net
|
2
|
+
module SFTP
|
3
|
+
# A class for describing the current version of a library. The version
|
4
|
+
# consists of three parts: the +major+ number, the +minor+ number, and the
|
5
|
+
# +tiny+ (or +patch+) number.
|
6
|
+
#
|
7
|
+
# Two Version instances may be compared, so that you can test that a version
|
8
|
+
# of a library is what you require:
|
9
|
+
#
|
10
|
+
# require 'net/sftp/version'
|
11
|
+
#
|
12
|
+
# if Net::SFTP::Version::CURRENT < Net::SFTP::Version[2,1,0]
|
13
|
+
# abort "your software is too old!"
|
14
|
+
# end
|
15
|
+
class Version
|
16
|
+
include Comparable
|
2
17
|
|
3
|
-
|
18
|
+
# A convenience method for instantiating a new Version instance with the
|
19
|
+
# given +major+, +minor+, and +tiny+ components.
|
20
|
+
def self.[](major, minor, tiny, pre = nil)
|
21
|
+
new(major, minor, tiny, pre)
|
22
|
+
end
|
4
23
|
|
5
|
-
|
6
|
-
class Version < Net::SSH::Version
|
7
|
-
MAJOR = 2
|
8
|
-
MINOR = 1
|
9
|
-
TINY = 2
|
24
|
+
attr_reader :major, :minor, :tiny
|
10
25
|
|
11
|
-
|
12
|
-
|
26
|
+
# Create a new Version object with the given components.
|
27
|
+
def initialize(major, minor, tiny, pre = nil)
|
28
|
+
@major, @minor, @tiny, @pre = major, minor, tiny, pre
|
29
|
+
end
|
13
30
|
|
14
|
-
|
15
|
-
|
16
|
-
|
31
|
+
# Compare this version to the given +version+ object.
|
32
|
+
def <=>(version)
|
33
|
+
to_i <=> version.to_i
|
34
|
+
end
|
35
|
+
|
36
|
+
# Converts this version object to a string, where each of the three
|
37
|
+
# version components are joined by the '.' character. E.g., 2.0.0.
|
38
|
+
def to_s
|
39
|
+
@to_s ||= [@major, @minor, @tiny, @pre].compact.join(".")
|
40
|
+
end
|
41
|
+
|
42
|
+
# Converts this version to a canonical integer that may be compared
|
43
|
+
# against other version objects.
|
44
|
+
def to_i
|
45
|
+
@to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny
|
46
|
+
end
|
47
|
+
|
48
|
+
# The major component of this version of the Net::SFTP library
|
49
|
+
MAJOR = 2
|
50
|
+
|
51
|
+
# The minor component of this version of the Net::SFTP library
|
52
|
+
MINOR = 1
|
17
53
|
|
18
|
-
|
54
|
+
# The tiny component of this version of the Net::SFTP library
|
55
|
+
TINY = 3
|
56
|
+
|
57
|
+
# The prerelease component of this version of the Net::SFTP library
|
58
|
+
# nil allowed
|
59
|
+
PRE = "rc2"
|
60
|
+
|
61
|
+
# The current version of the Net::SFTP library as a Version instance
|
62
|
+
CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact)
|
63
|
+
|
64
|
+
# The current version of the Net::SFTP library as a String
|
65
|
+
STRING = CURRENT.to_s
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
|
3
|
+
c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
|
4
|
+
b20wHhcNMTgwNjA2MTYwMzExWhcNMTkwNjA2MTYwMzExWjBBMQ8wDQYDVQQDDAZu
|
5
|
+
ZXRzc2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
|
6
|
+
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGJ4TbZ9H+qZ08
|
7
|
+
pQfJhPJTHaDCyQvCsKTFrL5O9z3tllQ7B/zksMMM+qFBpNYu9HCcg4yBATacE/PB
|
8
|
+
qVVyUrpr6lbH/XwoN5ljXm+bdCfmnjZvTCL2FTE6o+bcnaF0IsJyC0Q2B1fbWdXN
|
9
|
+
6Off1ZWoUk6We2BIM1bn6QJLxBpGyYhvOPXsYoqSuzDf2SJDDsWFZ8kV5ON13Ohm
|
10
|
+
JbBzn0oD8HF8FuYOewwsC0C1q4w7E5GtvHcQ5juweS7+RKsyDcVcVrLuNzoGRttS
|
11
|
+
KP4yMn+TzaXijyjRg7gECfJr3TGASaA4bQsILFGG5dAWcwO4OMrZedR7SHj/o0Kf
|
12
|
+
3gL7P0axAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
13
|
+
BBQF8qLA7Z4zg0SJGtUbv3eoQ8tjIzAfBgNVHREEGDAWgRRuZXRzc2hAc29sdXRp
|
14
|
+
b3VzLmNvbTAfBgNVHRIEGDAWgRRuZXRzc2hAc29sdXRpb3VzLmNvbTANBgkqhkiG
|
15
|
+
9w0BAQsFAAOCAQEAFjJgcmMGxYyaDbqZCYNO8gDpk5tGQOKKGPf80Tw7/cLsjJAr
|
16
|
+
kVxALHvP5JmLkOswFMwpyo0o2lpfc2u2QeltvWVLznJS/svXhNiIi4duf1oXaHrT
|
17
|
+
iG1JbI1h6oNGkXBnSVLRMNlgVYMDf5LOxQBolWmuxMYvdssDJK1qEGDVO7Ex79pB
|
18
|
+
u919R7oedV8+pXrIFXZro9dcYyOYAmRqlFh6bCjnFx/HkiUpTHAUMyLbbRpBngOC
|
19
|
+
YBtB7WnyXXwkUAo0FUibVzXXSxU+wXhrfpOCo2ZOlQOspdOcGZjirOZoxUKSvMtn
|
20
|
+
URWm7gw7y0UkzFg4iZOFuC84+4GZ08U3/gr9sg==
|
21
|
+
-----END CERTIFICATE-----
|
data/net-sftp.gemspec
CHANGED
@@ -1,106 +1,47 @@
|
|
1
|
-
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
require_relative 'lib/net/sftp/version'
|
5
2
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "net-sftp"
|
5
|
+
spec.version = Net::SFTP::Version::STRING
|
6
|
+
spec.authors = ["Jamis Buck", "Delano Mandelbaum", "Mikl\u{f3}s Fazekas"]
|
7
|
+
spec.email = ["net-ssh@solutious.com"]
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
9
|
+
if ENV['NET_SSH_BUILDGEM_SIGNED']
|
10
|
+
spec.cert_chain = ["net-sftp-public_cert.pem"]
|
11
|
+
spec.signing_key = "/mnt/gem/net-ssh-private_key.pem"
|
12
|
+
end
|
13
|
+
|
14
|
+
spec.summary = %q{A pure Ruby implementation of the SFTP client protocol.}
|
15
|
+
spec.description = %q{A pure Ruby implementation of the SFTP client protocol}
|
16
|
+
spec.homepage = "https://github.com/net-ssh/net-sftp"
|
17
|
+
spec.license = "MIT"
|
18
|
+
spec.required_rubygems_version = Gem::Requirement.new(">= 0") if spec.respond_to? :required_rubygems_version=
|
19
|
+
|
20
|
+
spec.extra_rdoc_files = [
|
17
21
|
"LICENSE.txt",
|
18
22
|
"README.rdoc"
|
19
23
|
]
|
20
|
-
s.files = [
|
21
|
-
"CHANGES.txt",
|
22
|
-
"LICENSE.txt",
|
23
|
-
"Manifest",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"gem-public_cert.pem",
|
27
|
-
"lib/net/sftp.rb",
|
28
|
-
"lib/net/sftp/constants.rb",
|
29
|
-
"lib/net/sftp/errors.rb",
|
30
|
-
"lib/net/sftp/operations/dir.rb",
|
31
|
-
"lib/net/sftp/operations/download.rb",
|
32
|
-
"lib/net/sftp/operations/file.rb",
|
33
|
-
"lib/net/sftp/operations/file_factory.rb",
|
34
|
-
"lib/net/sftp/operations/upload.rb",
|
35
|
-
"lib/net/sftp/packet.rb",
|
36
|
-
"lib/net/sftp/protocol.rb",
|
37
|
-
"lib/net/sftp/protocol/01/attributes.rb",
|
38
|
-
"lib/net/sftp/protocol/01/base.rb",
|
39
|
-
"lib/net/sftp/protocol/01/name.rb",
|
40
|
-
"lib/net/sftp/protocol/02/base.rb",
|
41
|
-
"lib/net/sftp/protocol/03/base.rb",
|
42
|
-
"lib/net/sftp/protocol/04/attributes.rb",
|
43
|
-
"lib/net/sftp/protocol/04/base.rb",
|
44
|
-
"lib/net/sftp/protocol/04/name.rb",
|
45
|
-
"lib/net/sftp/protocol/05/base.rb",
|
46
|
-
"lib/net/sftp/protocol/06/attributes.rb",
|
47
|
-
"lib/net/sftp/protocol/06/base.rb",
|
48
|
-
"lib/net/sftp/protocol/base.rb",
|
49
|
-
"lib/net/sftp/request.rb",
|
50
|
-
"lib/net/sftp/response.rb",
|
51
|
-
"lib/net/sftp/session.rb",
|
52
|
-
"lib/net/sftp/version.rb",
|
53
|
-
"net-sftp.gemspec",
|
54
|
-
"setup.rb",
|
55
|
-
"test/common.rb",
|
56
|
-
"test/protocol/01/test_attributes.rb",
|
57
|
-
"test/protocol/01/test_base.rb",
|
58
|
-
"test/protocol/01/test_name.rb",
|
59
|
-
"test/protocol/02/test_base.rb",
|
60
|
-
"test/protocol/03/test_base.rb",
|
61
|
-
"test/protocol/04/test_attributes.rb",
|
62
|
-
"test/protocol/04/test_base.rb",
|
63
|
-
"test/protocol/04/test_name.rb",
|
64
|
-
"test/protocol/05/test_base.rb",
|
65
|
-
"test/protocol/06/test_attributes.rb",
|
66
|
-
"test/protocol/06/test_base.rb",
|
67
|
-
"test/protocol/test_base.rb",
|
68
|
-
"test/test_all.rb",
|
69
|
-
"test/test_dir.rb",
|
70
|
-
"test/test_download.rb",
|
71
|
-
"test/test_file.rb",
|
72
|
-
"test/test_file_factory.rb",
|
73
|
-
"test/test_packet.rb",
|
74
|
-
"test/test_protocol.rb",
|
75
|
-
"test/test_request.rb",
|
76
|
-
"test/test_response.rb",
|
77
|
-
"test/test_session.rb",
|
78
|
-
"test/test_upload.rb"
|
79
|
-
]
|
80
|
-
s.homepage = "https://github.com/net-ssh/net-sftp"
|
81
|
-
s.licenses = ["MIT"]
|
82
|
-
s.require_paths = ["lib"]
|
83
|
-
s.rubyforge_project = "net-sftp"
|
84
|
-
s.rubygems_version = "1.8.25"
|
85
|
-
s.signing_key = "/mnt/gem/gem-private_key.pem"
|
86
|
-
s.summary = "A pure Ruby implementation of the SFTP client protocol"
|
87
24
|
|
88
|
-
|
89
|
-
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
if spec.respond_to? :specification_version then
|
31
|
+
spec.specification_version = 3
|
90
32
|
|
91
33
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
92
|
-
|
93
|
-
|
94
|
-
|
34
|
+
spec.add_runtime_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"])
|
35
|
+
spec.add_development_dependency(%q<test-unit>, [">= 0"])
|
36
|
+
spec.add_development_dependency(%q<mocha>, [">= 0"])
|
95
37
|
else
|
96
|
-
|
97
|
-
|
98
|
-
|
38
|
+
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"])
|
39
|
+
spec.add_dependency(%q<test-unit>, [">= 0"])
|
40
|
+
spec.add_dependency(%q<mocha>, [">= 0"])
|
99
41
|
end
|
100
42
|
else
|
101
|
-
|
102
|
-
|
103
|
-
|
43
|
+
spec.add_dependency(%q<net-ssh>, [">= 2.6.5", "< 5.0.0"])
|
44
|
+
spec.add_dependency(%q<test-unit>, [">= 0"])
|
45
|
+
spec.add_dependency(%q<mocha>, [">= 0"])
|
104
46
|
end
|
105
47
|
end
|
106
|
-
|
metadata
CHANGED
@@ -1,107 +1,104 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-sftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.3.rc2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jamis Buck
|
9
8
|
- Delano Mandelbaum
|
9
|
+
- Miklós Fazekas
|
10
10
|
autorequire:
|
11
|
-
bindir:
|
11
|
+
bindir: exe
|
12
12
|
cert_chain:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
R3dUNGtiQ3g2M3ViCjN2eXdFRWhzSlV6ZmQ5N0dDQUJtdFFmUlRsZFgvajdG
|
37
|
-
MXovNXdkOHAraGZkb3gxaWliZHM5WnRmYVpBM0t6S24Ka2NoV045QjZ6Zzly
|
38
|
-
MVhNUThCTTJKejBYb1BhblBlMzU0K2xXd2pwa1JLYkZvdy9aYlFIY0NMQ3Ey
|
39
|
-
NCtONmI2ZwpkZ0tmTkR6d2lEcHFDQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
|
40
|
-
LS0tLS0K
|
41
|
-
date: 2013-05-07 00:00:00.000000000 Z
|
13
|
+
- |
|
14
|
+
-----BEGIN CERTIFICATE-----
|
15
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZuZXRz
|
16
|
+
c2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZFgNj
|
17
|
+
b20wHhcNMTgwNjA2MTYwMzExWhcNMTkwNjA2MTYwMzExWjBBMQ8wDQYDVQQDDAZu
|
18
|
+
ZXRzc2gxGTAXBgoJkiaJk/IsZAEZFglzb2x1dGlvdXMxEzARBgoJkiaJk/IsZAEZ
|
19
|
+
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGJ4TbZ9H+qZ08
|
20
|
+
pQfJhPJTHaDCyQvCsKTFrL5O9z3tllQ7B/zksMMM+qFBpNYu9HCcg4yBATacE/PB
|
21
|
+
qVVyUrpr6lbH/XwoN5ljXm+bdCfmnjZvTCL2FTE6o+bcnaF0IsJyC0Q2B1fbWdXN
|
22
|
+
6Off1ZWoUk6We2BIM1bn6QJLxBpGyYhvOPXsYoqSuzDf2SJDDsWFZ8kV5ON13Ohm
|
23
|
+
JbBzn0oD8HF8FuYOewwsC0C1q4w7E5GtvHcQ5juweS7+RKsyDcVcVrLuNzoGRttS
|
24
|
+
KP4yMn+TzaXijyjRg7gECfJr3TGASaA4bQsILFGG5dAWcwO4OMrZedR7SHj/o0Kf
|
25
|
+
3gL7P0axAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
26
|
+
BBQF8qLA7Z4zg0SJGtUbv3eoQ8tjIzAfBgNVHREEGDAWgRRuZXRzc2hAc29sdXRp
|
27
|
+
b3VzLmNvbTAfBgNVHRIEGDAWgRRuZXRzc2hAc29sdXRpb3VzLmNvbTANBgkqhkiG
|
28
|
+
9w0BAQsFAAOCAQEAFjJgcmMGxYyaDbqZCYNO8gDpk5tGQOKKGPf80Tw7/cLsjJAr
|
29
|
+
kVxALHvP5JmLkOswFMwpyo0o2lpfc2u2QeltvWVLznJS/svXhNiIi4duf1oXaHrT
|
30
|
+
iG1JbI1h6oNGkXBnSVLRMNlgVYMDf5LOxQBolWmuxMYvdssDJK1qEGDVO7Ex79pB
|
31
|
+
u919R7oedV8+pXrIFXZro9dcYyOYAmRqlFh6bCjnFx/HkiUpTHAUMyLbbRpBngOC
|
32
|
+
YBtB7WnyXXwkUAo0FUibVzXXSxU+wXhrfpOCo2ZOlQOspdOcGZjirOZoxUKSvMtn
|
33
|
+
URWm7gw7y0UkzFg4iZOFuC84+4GZ08U3/gr9sg==
|
34
|
+
-----END CERTIFICATE-----
|
35
|
+
date: 2018-06-14 00:00:00.000000000 Z
|
42
36
|
dependencies:
|
43
37
|
- !ruby/object:Gem::Dependency
|
44
38
|
name: net-ssh
|
45
39
|
requirement: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
40
|
requirements:
|
48
|
-
- -
|
41
|
+
- - ">="
|
49
42
|
- !ruby/object:Gem::Version
|
50
43
|
version: 2.6.5
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 5.0.0
|
51
47
|
type: :runtime
|
52
48
|
prerelease: false
|
53
49
|
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
50
|
requirements:
|
56
|
-
- -
|
51
|
+
- - ">="
|
57
52
|
- !ruby/object:Gem::Version
|
58
53
|
version: 2.6.5
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 5.0.0
|
59
57
|
- !ruby/object:Gem::Dependency
|
60
58
|
name: test-unit
|
61
59
|
requirement: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
60
|
requirements:
|
64
|
-
- -
|
61
|
+
- - ">="
|
65
62
|
- !ruby/object:Gem::Version
|
66
63
|
version: '0'
|
67
64
|
type: :development
|
68
65
|
prerelease: false
|
69
66
|
version_requirements: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
67
|
requirements:
|
72
|
-
- -
|
68
|
+
- - ">="
|
73
69
|
- !ruby/object:Gem::Version
|
74
70
|
version: '0'
|
75
71
|
- !ruby/object:Gem::Dependency
|
76
72
|
name: mocha
|
77
73
|
requirement: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
74
|
requirements:
|
80
|
-
- -
|
75
|
+
- - ">="
|
81
76
|
- !ruby/object:Gem::Version
|
82
77
|
version: '0'
|
83
78
|
type: :development
|
84
79
|
prerelease: false
|
85
80
|
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
81
|
requirements:
|
88
|
-
- -
|
82
|
+
- - ">="
|
89
83
|
- !ruby/object:Gem::Version
|
90
84
|
version: '0'
|
91
85
|
description: A pure Ruby implementation of the SFTP client protocol
|
92
|
-
email:
|
86
|
+
email:
|
87
|
+
- net-ssh@solutious.com
|
93
88
|
executables: []
|
94
89
|
extensions: []
|
95
90
|
extra_rdoc_files:
|
96
91
|
- LICENSE.txt
|
97
92
|
- README.rdoc
|
98
93
|
files:
|
94
|
+
- ".gitignore"
|
95
|
+
- ".travis.yml"
|
99
96
|
- CHANGES.txt
|
97
|
+
- Gemfile
|
100
98
|
- LICENSE.txt
|
101
99
|
- Manifest
|
102
100
|
- README.rdoc
|
103
101
|
- Rakefile
|
104
|
-
- gem-public_cert.pem
|
105
102
|
- lib/net/sftp.rb
|
106
103
|
- lib/net/sftp/constants.rb
|
107
104
|
- lib/net/sftp/errors.rb
|
@@ -128,55 +125,31 @@ files:
|
|
128
125
|
- lib/net/sftp/response.rb
|
129
126
|
- lib/net/sftp/session.rb
|
130
127
|
- lib/net/sftp/version.rb
|
128
|
+
- net-sftp-public_cert.pem
|
131
129
|
- net-sftp.gemspec
|
132
130
|
- setup.rb
|
133
|
-
- test/common.rb
|
134
|
-
- test/protocol/01/test_attributes.rb
|
135
|
-
- test/protocol/01/test_base.rb
|
136
|
-
- test/protocol/01/test_name.rb
|
137
|
-
- test/protocol/02/test_base.rb
|
138
|
-
- test/protocol/03/test_base.rb
|
139
|
-
- test/protocol/04/test_attributes.rb
|
140
|
-
- test/protocol/04/test_base.rb
|
141
|
-
- test/protocol/04/test_name.rb
|
142
|
-
- test/protocol/05/test_base.rb
|
143
|
-
- test/protocol/06/test_attributes.rb
|
144
|
-
- test/protocol/06/test_base.rb
|
145
|
-
- test/protocol/test_base.rb
|
146
|
-
- test/test_all.rb
|
147
|
-
- test/test_dir.rb
|
148
|
-
- test/test_download.rb
|
149
|
-
- test/test_file.rb
|
150
|
-
- test/test_file_factory.rb
|
151
|
-
- test/test_packet.rb
|
152
|
-
- test/test_protocol.rb
|
153
|
-
- test/test_request.rb
|
154
|
-
- test/test_response.rb
|
155
|
-
- test/test_session.rb
|
156
|
-
- test/test_upload.rb
|
157
131
|
homepage: https://github.com/net-ssh/net-sftp
|
158
132
|
licenses:
|
159
133
|
- MIT
|
134
|
+
metadata: {}
|
160
135
|
post_install_message:
|
161
136
|
rdoc_options: []
|
162
137
|
require_paths:
|
163
138
|
- lib
|
164
139
|
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
140
|
requirements:
|
167
|
-
- -
|
141
|
+
- - ">="
|
168
142
|
- !ruby/object:Gem::Version
|
169
143
|
version: '0'
|
170
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
145
|
requirements:
|
173
|
-
- -
|
146
|
+
- - ">="
|
174
147
|
- !ruby/object:Gem::Version
|
175
148
|
version: '0'
|
176
149
|
requirements: []
|
177
|
-
rubyforge_project:
|
178
|
-
rubygems_version:
|
150
|
+
rubyforge_project:
|
151
|
+
rubygems_version: 2.7.6
|
179
152
|
signing_key:
|
180
153
|
specification_version: 3
|
181
|
-
summary: A pure Ruby implementation of the SFTP client protocol
|
154
|
+
summary: A pure Ruby implementation of the SFTP client protocol.
|
182
155
|
test_files: []
|