bfs-s3 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/spec/bfs/bucket/s3_spec.rb +5 -11
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd3e7cea0ae1a67ddf1e509257bde454c5e77466fec4681fe9664781a3600f89
4
- data.tar.gz: adea9bba2f773c8f89ea5aa1a3b71f276e546ba59e5c02c74dd366a6b9be6e3f
3
+ metadata.gz: 439b5c3e0e7cc280d527e238e6dc0d67404e720b8899b79f8cfd201950e059ea
4
+ data.tar.gz: 433ea64a8b6feec47b683be92ad07e5f5e044189f1b04609176b7bdd724a0e0f
5
5
  SHA512:
6
- metadata.gz: 69c643b31793f298f8817ae785db46ee99b5c34504ec907f655aba56c33e0d1789dd8eac5313539c05582962daee36cd914a483a08df9fd26a4f1544ef8d367a
7
- data.tar.gz: 9df82f0c2244b21e5924e4aab95cf7e67cc0db3c2d43ffb9b6b88b7b33cd2e2b82bfd7aef903010efb26026d2988826aab7ffa21241483cd3d490c071b191d60
6
+ metadata.gz: 1d180808ac5fc59950da69521a97fe989ac28dd614c88d2f299cf413af9e9ed221dedb692e5d1e4ae8793b2b0e976d16b15f3af6a5d2c0124dc99dbf6b86320c
7
+ data.tar.gz: 1aed0a7496aae52534cb2fe082d161682bfbc343fb2e82944f94075338829080163a0d37e84d0ed978f6283c0848c3fec282b886bca32b400fcc5590234fed8e
@@ -1,17 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
- sandbox = { bucket: 'bsm-bfs-unittest' }.freeze
4
- run_spec = \
5
- begin
6
- s = Aws::S3::Client.new
7
- s.head_bucket(bucket: sandbox[:bucket])
8
- true
9
- rescue StandardError => e
10
- warn "WARNING: unable to run #{File.basename __FILE__}: #{e.message}"
11
- false
12
- end
3
+ sandbox = { bucket: 'bsm-bfs-unittest' }.freeze
13
4
 
14
- RSpec.describe BFS::Bucket::S3, if: run_spec do
5
+ RSpec.describe BFS::Bucket::S3, s3: true do
15
6
  let(:prefix) { "x/#{SecureRandom.uuid}/" }
16
7
 
17
8
  subject do
@@ -31,15 +22,18 @@ RSpec.describe BFS::Bucket::S3, if: run_spec do
31
22
  expect(bucket.acl).to eq(:private)
32
23
  expect(bucket.encoding).to eq('binary')
33
24
  expect(bucket.instance_variable_get(:@prefix)).to be_nil
25
+ bucket.close
34
26
 
35
27
  bucket = BFS.resolve("s3://#{sandbox[:bucket]}/a/b/")
36
28
  expect(bucket).to be_instance_of(described_class)
37
29
  expect(bucket.name).to eq(sandbox[:bucket])
38
30
  expect(bucket.instance_variable_get(:@prefix)).to eq('a/b')
31
+ bucket.close
39
32
  end
40
33
 
41
34
  it 'should enumerate over a large number of files' do
42
35
  bucket = described_class.new sandbox[:bucket], prefix: 'm/'
43
36
  expect(bucket.ls('**/*').count).to eq(2121)
37
+ bucket.close
44
38
  end
45
39
  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.7.2
4
+ version: 0.7.3
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-07-02 00:00:00.000000000 Z
11
+ date: 2020-07-10 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.7.2
33
+ version: 0.7.3
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.7.2
40
+ version: 0.7.3
41
41
  description: https://github.com/bsm/bfs.rb
42
42
  email: dimitrij@blacksquaremedia.com
43
43
  executables: []