bfs-sftp 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bfs-sftp.gemspec +2 -1
- data/lib/bfs/bucket/sftp.rb +2 -1
- data/spec/bfs/bucket/sftp_spec.rb +5 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81caac59a0dbf4fb911ff5450b54026269f8d6a518fa4dcf27505245cd1c6165
|
4
|
+
data.tar.gz: e177acf01a92914b9cf4064f8bb936d43b14167100ea2b8a4ebaf25ad48149cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1caa3b826f8f6938b6a9cbbb2f476cf07bee7956a211e375ad7e4ad68deb020579116f6bb7342fff04ee08a73e4c6c3174064fb8537b84c882cf21acc7b1a939
|
7
|
+
data.tar.gz: c42279721b11c8c2e6a348d43ab7f3dd3ea6a950e42e7b4c2c1351bbcd2c013ee4bcbf9cc1b8f78e520af19831b2ecab697262937c929e141f86d0ce65a1f153
|
data/bfs-sftp.gemspec
CHANGED
@@ -15,8 +15,9 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
17
17
|
s.require_paths = ['lib']
|
18
|
-
s.required_ruby_version = '>= 2.
|
18
|
+
s.required_ruby_version = '>= 2.7'
|
19
19
|
|
20
20
|
s.add_dependency 'bfs', s.version
|
21
21
|
s.add_dependency 'net-sftp'
|
22
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
22
23
|
end
|
data/lib/bfs/bucket/sftp.rb
CHANGED
@@ -18,7 +18,7 @@ module BFS
|
|
18
18
|
# @option opts [Boolean] :keepalive use keepalive.
|
19
19
|
# @option opts [Integer] :keepalive_interval interval if keepalive enabled. Default: 300.
|
20
20
|
# @option opts [Array<String>] :keys an array of file names of private keys to use for publickey and hostbased authentication.
|
21
|
-
# @option opts [
|
21
|
+
# @option opts [Symbol] :verify_host_key host-key verification should be, either :never, :accept_new_or_local_tunnel, :accept_new, or :always.
|
22
22
|
def initialize(host, prefix: nil, **opts)
|
23
23
|
super(**opts)
|
24
24
|
|
@@ -138,6 +138,7 @@ BFS.register('sftp') do |url, opts, block|
|
|
138
138
|
opts[:user] ||= CGI.unescape(url.user) if url.user
|
139
139
|
opts[:password] ||= CGI.unescape(url.password) if url.password
|
140
140
|
opts[:port] ||= url.port if url.port
|
141
|
+
opts[:verify_host_key] = opts[:verify_host_key].to_sym if opts[:verify_host_key]
|
141
142
|
|
142
143
|
BFS::Bucket::SFTP.open(url.host, **opts, &block)
|
143
144
|
end
|
@@ -15,5 +15,10 @@ RSpec.describe BFS::Bucket::SFTP, sftp: true do
|
|
15
15
|
bucket = BFS.resolve('sftp://sftp:DockerPassSFTP@127.0.0.1:7023/a/b/')
|
16
16
|
expect(bucket).to be_instance_of(described_class)
|
17
17
|
bucket.close
|
18
|
+
|
19
|
+
bucket = BFS.resolve('sftp://sftp:DockerPassSFTP@127.0.0.1:7023?verify_host_key=never')
|
20
|
+
expect(bucket).to be_instance_of(described_class)
|
21
|
+
expect(bucket.instance_variable_get(:@session).transport.host_key_verifier).to be_instance_of(Net::SSH::Verifiers::Never)
|
22
|
+
bucket.close
|
18
23
|
end
|
19
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bfs-sftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bfs
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.
|
26
|
+
version: 0.9.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-sftp
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,7 +51,8 @@ files:
|
|
51
51
|
homepage: https://github.com/bsm/bfs.rb
|
52
52
|
licenses:
|
53
53
|
- Apache-2.0
|
54
|
-
metadata:
|
54
|
+
metadata:
|
55
|
+
rubygems_mfa_required: 'true'
|
55
56
|
post_install_message:
|
56
57
|
rdoc_options: []
|
57
58
|
require_paths:
|
@@ -60,14 +61,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
61
|
requirements:
|
61
62
|
- - ">="
|
62
63
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.
|
64
|
+
version: '2.7'
|
64
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
67
|
- - ">="
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '0'
|
69
70
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
71
|
+
rubygems_version: 3.3.3
|
71
72
|
signing_key:
|
72
73
|
specification_version: 4
|
73
74
|
summary: SFTP adapter for bfs
|