bfs-scp 0.6.3 → 0.7.2

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
2
  SHA256:
3
- metadata.gz: 88c4450a085548f67333ffeed22e97809d46b75fa67b594ac381ea0e21880541
4
- data.tar.gz: 9c6468f065820d8e5265cda9f3e16e95832667dd564ea6d5ef4689e319f3842a
3
+ metadata.gz: d30fbc577f75cfa618423e299e08dc7ca08fe857d2139d69082e7a0a4b629b88
4
+ data.tar.gz: 04ad9c4acb42fa70b33233f6662057c336e67c1999394f5ee98607589f1557bc
5
5
  SHA512:
6
- metadata.gz: 67a1cb18ac12d0751d3bd9093e8e224f4df380d8b84b05a79de6e518abebfa907d1ee630d30d437fb2b46598e737fda198d668ee609679cc3ac188e008c09189
7
- data.tar.gz: 6dc91a25174c7e039e48f212fa5742f6a0b54bdb3bdc595dc66e7c699493fd5ab1b0e80811f6f22cf2077276cd8e9307bbad3cb5ffca4f6b95a409482ae6c60f
6
+ metadata.gz: e691623195168d64a689be190fc88282b796ee4fa52bbed51e0cbe5c7831ed027e043709ccbe27ceb620d1120b2bf4bb95f37c638954d9c71024fc05c2d8114f
7
+ data.tar.gz: 4433f5ceaf8d66ef4ed14cc4fb34be4a0eb0b6e212e29c3223f545935ce15e739280884aea46f54f522771dcdac1e656dc95eb9122bc55e06f42637abf94fee8
@@ -15,7 +15,7 @@ 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.5.0'
18
+ s.required_ruby_version = '>= 2.6.0'
19
19
 
20
20
  s.add_dependency 'bfs', s.version
21
21
  s.add_dependency 'net-scp'
@@ -1,5 +1,6 @@
1
1
  require 'bfs'
2
2
  require 'net/scp'
3
+ require 'net/ssh'
3
4
  require 'shellwords'
4
5
 
5
6
  module BFS
@@ -31,7 +32,7 @@ module BFS
31
32
  super(**opts)
32
33
 
33
34
  @prefix = prefix
34
- @client = Net::SCP.start(host, nil, **opts)
35
+ @client = Net::SCP.start(host, nil, **opts.slice(*Net::SSH::VALID_OPTIONS))
35
36
 
36
37
  if @prefix # rubocop:disable Style/GuardClause
37
38
  @prefix = norm_path(@prefix) + '/'
@@ -182,10 +183,10 @@ module BFS
182
183
  end
183
184
  end
184
185
 
185
- BFS.register('scp', 'ssh') do |url, opts|
186
+ BFS.register('scp', 'ssh') do |url, opts, block|
186
187
  opts[:user] ||= CGI.unescape(url.user) if url.user
187
188
  opts[:password] ||= CGI.unescape(url.password) if url.password
188
189
  opts[:port] ||= url.port if url.port
189
190
 
190
- BFS::Bucket::SCP.new(url.host, **opts)
191
+ BFS::Bucket::SCP.open(url.host, **opts, &block)
191
192
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs-scp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-13 00:00:00.000000000 Z
11
+ date: 2020-07-02 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.6.3
19
+ version: 0.7.2
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.6.3
26
+ version: 0.7.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: net-scp
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -60,14 +60,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 2.5.0
63
+ version: 2.6.0
64
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.1.2
70
+ rubygems_version: 3.1.4
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: SCP/SSH adapter for bfs