bfs-ftp 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: d222bfc10f937a2ad321be7eb63c1408057cc77b5d1807ed8229310f3482444a
4
- data.tar.gz: 1a50538331195f067090a9b0d3fbd1afb1b0eb1b611d730d09a3433f3668b9be
3
+ metadata.gz: cd454e65db18af93c47c157366b9930f293c971f5a482d6de2d6448dfb673c24
4
+ data.tar.gz: 1dba041b60e9e5093021eb55a050203a18b7764464add61626c083887a158385
5
5
  SHA512:
6
- metadata.gz: 845561eeac7af25ebe8616a6c0bb0c30ad7cbc287ff0f6d7df31456b03c3e3c755358927c503d9bb3b41a4c7d8b82d00e51e96406ea018b884da016444a959e5
7
- data.tar.gz: 6e2d0c34cadee4fc961e1a495df04fed73ec98918d5ae0fc5e7a673272a7abf7daf665f33c915adbac6666bbbf79655589a34db8ca135970234cbfcebd85e8e8
6
+ metadata.gz: 77e832b6c5a8c7f261cfb96b2e01351f9963644576f85b3b19fb90dcb8580b1b73ebcd7885f8b0f8493f78ad35cb097eb9c430b130f35b6672137a66f052f276
7
+ data.tar.gz: 1f903add7d127b61ac330af5a8c2da9b0df3c8e3d0ce16e7c4f3417979df4393701e157687dd41db679da1f286a6ea0bef1fb0c5bff5e6056588b056c5f780a2
@@ -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-ftp-list'
@@ -31,7 +31,7 @@ module BFS
31
31
 
32
32
  # Lists the contents of a bucket using a glob pattern
33
33
  def ls(pattern = '**/*', **_opts)
34
- dir = pattern[%r{^[^\*\?\{\}\[\]]+/}]
34
+ dir = pattern[%r{^[^*?\{\}\[\]]+/}]
35
35
  dir&.chomp!('/')
36
36
 
37
37
  Enumerator.new do |y|
@@ -114,10 +114,12 @@ module BFS
114
114
  end
115
115
  end
116
116
 
117
- BFS.register('ftp', 'sftp') do |url, opts|
118
- BFS::Bucket::FTP.new url.host, **opts,
119
- username: url.user ? CGI.unescape(url.user) : nil,
120
- password: url.password ? CGI.unescape(url.password) : nil,
121
- port: url.port,
122
- ssl: opts.key?(:ssl) || url.scheme == 'sftp'
117
+ BFS.register('ftp', 'sftp') do |url, opts, block|
118
+ extra = {
119
+ username: url.user ? CGI.unescape(url.user) : nil,
120
+ password: url.password ? CGI.unescape(url.password) : nil,
121
+ port: url.port,
122
+ ssl: opts.key?(:ssl) || url.scheme == 'sftp',
123
+ }
124
+ BFS::Bucket::FTP.open url.host, **opts, **extra, &block
123
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs-ftp
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-ftp-list
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: FTP adapter for bfs