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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f926cbf5d1e11566b003f431781d2a7724619245d3cb6f65a35f74db0a1c1c86
4
- data.tar.gz: a2db0fcadc0b559053dd92cfa48980ea94949a5aa2d1b66316042cbdadc10b40
3
+ metadata.gz: bc232f46be894727c280a489467bc521bac23a9d00218652da0bc5b4e5a46995
4
+ data.tar.gz: 5d82e36abde0349255a696bbbdd39ebe92a0152fbe6a24cae53d49c2a7dd8ce5
5
5
  SHA512:
6
- metadata.gz: a14a4f793f59f403d7562301015c3d92505c06e7d76eb98d3a0bf661f8a8108d8aaacf7a0948f728c10366b57b57928f5029f06a09368734addd04f6f0881f5a
7
- data.tar.gz: c769992cb97bcdac23ad2e2669eefab10e274f170fc666f34b4a5e3efc7bcb62fc3181cbd6eb520589bc652ac776cf70e7242b6a3af4eabfd59f177794e57f23
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.6.0'
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
@@ -125,7 +125,7 @@ module BFS
125
125
  end
126
126
  end
127
127
 
128
- BFS.register('ftp', 'sftp') do |url, opts, block|
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) || url.scheme == 'sftp',
136
+ ssl: opts.key?(:ssl),
137
137
  }
138
138
  BFS::Bucket::FTP.open url.host, **opts, **extra, &block
139
139
  end
@@ -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: 'ftpuser', password: 'ftppass', prefix: SecureRandom.uuid } }
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://ftpuser:ftppass@127.0.0.1:7021')
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/ftpuser')
18
+ expect(bucket.instance_variable_get(:@client).pwd).to eq('/ftp/user')
19
19
  bucket.close
20
20
 
21
- bucket = BFS.resolve('ftp://ftpuser:ftppass@127.0.0.1:7021/a/b/')
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/ftpuser/a/b')
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.8.3
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: 2021-05-27 00:00:00.000000000 Z
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.8.3
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.8.3
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.6.0
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.2.15
85
+ rubygems_version: 3.3.3
71
86
  signing_key:
72
87
  specification_version: 4
73
88
  summary: FTP adapter for bfs