bfs-ftp 0.8.3 → 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-ftp.gemspec +3 -1
- data/lib/bfs/bucket/ftp.rb +2 -2
- data/spec/bfs/bucket/ftp_spec.rb +5 -5
- metadata +22 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc232f46be894727c280a489467bc521bac23a9d00218652da0bc5b4e5a46995
|
4
|
+
data.tar.gz: 5d82e36abde0349255a696bbbdd39ebe92a0152fbe6a24cae53d49c2a7dd8ce5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c63316c6ed112c1ed8563809d03f1b13ccfbaef256c05c4e926794d58a1f1abda7b33ceabfe019649a144260baab57905472401915cfedf46bd14a66550528
|
7
|
+
data.tar.gz: 9956f055d9ab0ef8bb65c3f04647725afe756d246b2e7c7d4f33005cc72d57715c02831d66f5607bc7f8f27dc1f776929857bbb028bcb240e0d111ee81581b15
|
data/bfs-ftp.gemspec
CHANGED
@@ -15,8 +15,10 @@ 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
|
+
s.add_dependency 'net-ftp', '>= 0.1.3'
|
21
22
|
s.add_dependency 'net-ftp-list'
|
23
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
22
24
|
end
|
data/lib/bfs/bucket/ftp.rb
CHANGED
@@ -125,7 +125,7 @@ module BFS
|
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
128
|
-
BFS.register('ftp'
|
128
|
+
BFS.register('ftp') do |url, opts, block|
|
129
129
|
prefix = BFS.norm_path(opts[:prefix] || url.path)
|
130
130
|
opts[:prefix] = prefix unless prefix.empty?
|
131
131
|
|
@@ -133,7 +133,7 @@ BFS.register('ftp', 'sftp') do |url, opts, block|
|
|
133
133
|
username: url.user ? CGI.unescape(url.user) : nil,
|
134
134
|
password: url.password ? CGI.unescape(url.password) : nil,
|
135
135
|
port: url.port,
|
136
|
-
ssl: opts.key?(:ssl)
|
136
|
+
ssl: opts.key?(:ssl),
|
137
137
|
}
|
138
138
|
BFS::Bucket::FTP.open url.host, **opts, **extra, &block
|
139
139
|
end
|
data/spec/bfs/bucket/ftp_spec.rb
CHANGED
@@ -4,7 +4,7 @@ RSpec.describe BFS::Bucket::FTP, ftp: true do
|
|
4
4
|
subject { described_class.new hostname, **conn_opts }
|
5
5
|
|
6
6
|
let(:hostname) { '127.0.0.1' }
|
7
|
-
let(:conn_opts) { { port: 7021, username: '
|
7
|
+
let(:conn_opts) { { port: 7021, username: 'user', password: 'pass', prefix: SecureRandom.uuid } }
|
8
8
|
|
9
9
|
after { subject.close }
|
10
10
|
|
@@ -13,14 +13,14 @@ RSpec.describe BFS::Bucket::FTP, ftp: true do
|
|
13
13
|
metadata: false
|
14
14
|
|
15
15
|
it 'resolves from URL' do
|
16
|
-
bucket = BFS.resolve('ftp://
|
16
|
+
bucket = BFS.resolve('ftp://user:pass@127.0.0.1:7021')
|
17
17
|
expect(bucket).to be_instance_of(described_class)
|
18
|
-
expect(bucket.instance_variable_get(:@client).pwd).to eq('/ftp/
|
18
|
+
expect(bucket.instance_variable_get(:@client).pwd).to eq('/ftp/user')
|
19
19
|
bucket.close
|
20
20
|
|
21
|
-
bucket = BFS.resolve('ftp://
|
21
|
+
bucket = BFS.resolve('ftp://user:pass@127.0.0.1:7021/a/b/')
|
22
22
|
expect(bucket).to be_instance_of(described_class)
|
23
|
-
expect(bucket.instance_variable_get(:@client).pwd).to eq('/ftp/
|
23
|
+
expect(bucket.instance_variable_get(:@client).pwd).to eq('/ftp/user/a/b')
|
24
24
|
bucket.close
|
25
25
|
end
|
26
26
|
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.
|
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,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
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.
|
26
|
+
version: 0.9.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: net-ftp
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.1.3
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.1.3
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: net-ftp-list
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,7 +65,8 @@ files:
|
|
51
65
|
homepage: https://github.com/bsm/bfs.rb
|
52
66
|
licenses:
|
53
67
|
- Apache-2.0
|
54
|
-
metadata:
|
68
|
+
metadata:
|
69
|
+
rubygems_mfa_required: 'true'
|
55
70
|
post_install_message:
|
56
71
|
rdoc_options: []
|
57
72
|
require_paths:
|
@@ -60,14 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
75
|
requirements:
|
61
76
|
- - ">="
|
62
77
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.
|
78
|
+
version: '2.7'
|
64
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
80
|
requirements:
|
66
81
|
- - ">="
|
67
82
|
- !ruby/object:Gem::Version
|
68
83
|
version: '0'
|
69
84
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.3.3
|
71
86
|
signing_key:
|
72
87
|
specification_version: 4
|
73
88
|
summary: FTP adapter for bfs
|