bfs-s3 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: cbc8a8c0a41de684e3d77bc2593f75aff0f438154779dfce05199ab5898bdd60
4
- data.tar.gz: 25369f70e61e235bc3dc18a4e5d1a7d6d1f05fc3897cc6070dd56794300b2f9a
3
+ metadata.gz: fd3e7cea0ae1a67ddf1e509257bde454c5e77466fec4681fe9664781a3600f89
4
+ data.tar.gz: adea9bba2f773c8f89ea5aa1a3b71f276e546ba59e5c02c74dd366a6b9be6e3f
5
5
  SHA512:
6
- metadata.gz: 2f9f61852c8eeb4437aa15c17a27f9b367c60076a68f520ee54f607acd1f6f006281912470bfb7807df9d226db8272fbe9b70fa02080b185eb85030f215a0685
7
- data.tar.gz: 7ca097e4764bda327018ddb7ce01f87ec9df8aa47f24dfe0ffb62138557151d4ed17b498961e62c5f8a5842d99363a5efbdebdb4f8dcd3aedee635b9779cbbff
6
+ metadata.gz: 69c643b31793f298f8817ae785db46ee99b5c34504ec907f655aba56c33e0d1789dd8eac5313539c05582962daee36cd914a483a08df9fd26a4f1544ef8d367a
7
+ data.tar.gz: 9df82f0c2244b21e5924e4aab95cf7e67cc0db3c2d43ffb9b6b88b7b33cd2e2b82bfd7aef903010efb26026d2988826aab7ffa21241483cd3d490c071b191d60
@@ -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 'aws-sdk-s3', '~> 1.38'
21
21
  s.add_dependency 'bfs', s.version
@@ -33,7 +33,7 @@ module BFS
33
33
 
34
34
  # Lists the contents of a bucket using a glob pattern
35
35
  def ls(pattern = '**/*', **opts)
36
- prefix = pattern[%r{^[^\*\?\{\}\[\]]+/}]
36
+ prefix = pattern[%r{^[^*?\{\}\[\]]+/}]
37
37
  prefix = File.join(*[@prefix, prefix].compact) if @prefix
38
38
 
39
39
  opts = opts.merge(bucket: name, prefix: @prefix)
@@ -158,9 +158,10 @@ module BFS
158
158
  end
159
159
  end
160
160
 
161
- BFS.register('s3') do |url, opts|
161
+ BFS.register('s3') do |url, opts, block|
162
162
  prefix = BFS.norm_path(opts[:prefix] || url.path)
163
163
  opts[:prefix] = prefix.empty? ? nil : prefix
164
+ opts = opts.slice(:prefix, :region, :sse, :access_key_id, :secret_access_key, :acl, :storage_class, :encoding)
164
165
 
165
- BFS::Bucket::S3.new url.host, **opts.slice(:prefix, :region, :sse, :access_key_id, :secret_access_key, :acl, :storage_class, :encoding)
166
+ BFS::Bucket::S3.open url.host, **opts, &block
166
167
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs-s3
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: aws-sdk-s3
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.3
33
+ version: 0.7.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.6.3
40
+ version: 0.7.2
41
41
  description: https://github.com/bsm/bfs.rb
42
42
  email: dimitrij@blacksquaremedia.com
43
43
  executables: []
@@ -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: S3 bucket adapter for bfs