bfs-ftp 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bfs/bucket/ftp.rb +10 -8
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82596b06db1568d9f633733e9ee00a0473d3597c96b4ea755f7c67f1e0b150e2
|
4
|
+
data.tar.gz: ea4dfedb77af9e9a77167aac97745deb9fca9e598eab058d53e9270f0ef709c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc46e356ba7c382e7b7614f4770dafc3019796b212873f41fecbf6ab571ec5961e109cfd008120cf5fd7b3549be8d09b5a4a3d6c719b1dd6b93d8ff5464c9ec
|
7
|
+
data.tar.gz: cdb89ae7e48ca49e02a051c595ea021a69e8106d2427b615a5073152279dcdf0c3473dd64183838120765aeb879299ddbaf1cbbe514cb13256e77c26d6c24ca9
|
data/lib/bfs/bucket/ftp.rb
CHANGED
@@ -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|
|
@@ -81,7 +81,7 @@ module BFS
|
|
81
81
|
def rm(path, **_opts)
|
82
82
|
path = norm_path(path)
|
83
83
|
@client.delete(path)
|
84
|
-
rescue Net::FTPPermError
|
84
|
+
rescue Net::FTPPermError # rubocop:disable Lint/SuppressedException
|
85
85
|
end
|
86
86
|
|
87
87
|
# Closes the underlying connection
|
@@ -114,10 +114,12 @@ module BFS
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
-
BFS.register('ftp', 'sftp') do |url, opts|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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.7.
|
4
|
+
version: 0.7.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: 2020-
|
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.7.
|
19
|
+
version: 0.7.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.7.
|
26
|
+
version: 0.7.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-ftp-list
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.1.
|
70
|
+
rubygems_version: 3.1.4
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: FTP adapter for bfs
|