bfs-s3 0.3.1 → 0.3.2

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/lib/bfs/bucket/s3.rb +3 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4de8855194ea24227486c76d95151259cf7677de2e8b7c0993f7a455b813c2bb
4
- data.tar.gz: d5e5831fc7a43fd7f0f951afb4e4026067a7ca811e5d349b35de8c9c2d6fe215
3
+ metadata.gz: 1adf9c2f6f6a8897454fafcaf5d347a323d5252476cc26a012aa945aea4b5328
4
+ data.tar.gz: 2a659245fa4feda255a9928577469c24f05c5b56fd01e885dd322647c929299e
5
5
  SHA512:
6
- metadata.gz: 6c8a3db6f87c64e956f3dd7707b4d3d2e411c98c3f1a4875b9345be51a9cc2fb13052bea92411294bd2659564008fe35b38816ae5ad90986a68d7d20c8ea2ac0
7
- data.tar.gz: 582ffc522b928d25e14475222b4c171c7bfbf04324521c6b202be15214ac46545a4e12da2ae8bd4e4d025b9fd8bf1d0c3932930f9dd6ee6010fe724a9dc7863a
6
+ metadata.gz: bf7acda8109779860069f9fe76ebfea00602cab33f8a3b8df81578b5ad5ced2b671508c6b48feef1cbdcc99a4280dd7b692f3d804f7dd3d55acfde020597c64b
7
+ data.tar.gz: f2ee02fcee3f640f2e151d28bc55bc4fa539a26fa85ae3060d1e09412d443ce5d52a5cfe87590845246dda71ca9fbb3d32119be250b731f8319f0a41d8eaaff6
@@ -22,14 +22,15 @@ module BFS
22
22
  def initialize(name, opts={})
23
23
  opts = opts.dup
24
24
  opts.keys.each do |key|
25
- opts[key.to_s] = opts.delete(key)
25
+ val = opts.delete(key)
26
+ opts[key.to_s] = val unless val.nil?
26
27
  end
27
28
 
28
29
  @name = name
29
30
  @sse = opts['sse'] || opts['server_side_encryption']
30
31
  @credentials = opts['credentials']
31
32
  @credentials ||= Aws::Credentials.new(opts['access_key_id'].to_s, opts['secret_access_key'].to_s) if opts['access_key_id']
32
- @acl = opts['acl'].to_sym if opts.key?('acl')
33
+ @acl = opts['acl'].to_sym if opts['acl']
33
34
  @storage_class = opts['storage_class']
34
35
  @client = opts['client'] || Aws::S3::Client.new(region: opts['region'])
35
36
  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.3.1
4
+ version: 0.3.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: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2018-11-12 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.3.1
33
+ version: 0.3.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.3.1
40
+ version: 0.3.2
41
41
  description: https://github.com/bsm/bfs.rb
42
42
  email: dimitrij@blacksquaremedia.com
43
43
  executables: []