bfs-s3 0.5.1 → 0.6.0

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 +4 -4
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac0ed4744d941c3055f04841dc9673bd70c52c4b065e7e858f087204b62d298
4
- data.tar.gz: 2502d9351817c4e0c4ef1e8e5bf543b4de998fd0036c32aa7f4e5115a6f7a346
3
+ metadata.gz: 38a6e4ebfc80f1a6c0ba16102d5b6cc95ff281fbe407ef9a899a2bd1feed0859
4
+ data.tar.gz: 9eceadd7e77b1c936693980e05e77e1abad489cf7afec06a1025ba5a4e283586
5
5
  SHA512:
6
- metadata.gz: 54cf81c1c7416061bd339d53e242a8c1b4060ce40a93d6897a103c2c782e60631d2389d889b050bdf0019db0754d42c0b0782f0e31037e7d2c98ab1e714691b4
7
- data.tar.gz: 03a3338935d1ed8a373c9f73be2327c79f6c2079a7c3b5414c9ef9152acb9220ad42bb94aeb3118a9e742b4cdaa644e5a3ae587aea0d04ae9bde4983067c897f
6
+ metadata.gz: 8b06966e6a520392599ca26eea644b49e3de8de468d46bd440ac1e1f18bce806476b02bcf416af28337073eb98f0852a27d2e822d406d7a5ce5bcc1810824be1
7
+ data.tar.gz: dd1356a5237995a4dafe935ef793debaeebdcb97b0238d12c2654fc2ff029fc53870c54bdaa5c314ef8d8e09ce36059ff73283ac23c90e219b0d9747f6ab8d62
@@ -21,7 +21,7 @@ module BFS
21
21
  # @option opts [Symbol] :acl canned ACL
22
22
  # @option opts [String] :storage_class storage class
23
23
  # @option opts [Aws::S3::Client] :client custom client, uses default_client by default
24
- # @option opts [String] :encoding default encoding to use, default: 'binary'
24
+ # @option opts [String] :encoding Custom encoding.
25
25
  def initialize(name, opts={})
26
26
  opts = opts.dup
27
27
  opts.keys.each do |key|
@@ -75,7 +75,7 @@ module BFS
75
75
  # Creates a new file and opens it for writing
76
76
  # @param [String] path
77
77
  # @param [Hash] opts options
78
- # @option opts [String] :encoding file encoding to use, default: 'binary'
78
+ # @option opts [String] :encoding Custom encoding.
79
79
  # @option opts [String] :acl custom ACL override
80
80
  # @option opts [String] :server_side_encryption SSE override
81
81
  # @option opts [String] :storage_class storage class override
@@ -107,7 +107,7 @@ module BFS
107
107
  # Opens an existing file for reading
108
108
  # @param [String] path
109
109
  # @param [Hash] opts options
110
- # @option opts [String] :encoding file encoding to use, default: 'binary'
110
+ # @option opts [String] :encoding Custom encoding.
111
111
  def open(path, opts={}, &block)
112
112
  path = full_path(path)
113
113
  enc = opts.delete(:encoding) || @encoding
@@ -134,7 +134,7 @@ module BFS
134
134
  key: path,
135
135
  )
136
136
  @client.delete_object(opts)
137
- rescue Aws::S3::Errors::NoSuchKey, Aws::S3::Errors::NoSuchBucket, Aws::S3::Errors::NotFound # rubocop:disable Lint/HandleExceptions
137
+ rescue Aws::S3::Errors::NoSuchKey, Aws::S3::Errors::NoSuchBucket, Aws::S3::Errors::NotFound # rubocop:disable Lint/SuppressedException
138
138
  end
139
139
 
140
140
  # Copies a file.
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.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2019-12-19 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.5.1
33
+ version: 0.6.0
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.5.1
40
+ version: 0.6.0
41
41
  description: https://github.com/bsm/bfs.rb
42
42
  email: dimitrij@blacksquaremedia.com
43
43
  executables: []
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.0.3
70
+ rubygems_version: 3.0.6
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: S3 bucket adapter for bfs