bfs-s3 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bfs/bucket/s3.rb +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a6e4ebfc80f1a6c0ba16102d5b6cc95ff281fbe407ef9a899a2bd1feed0859
|
4
|
+
data.tar.gz: 9eceadd7e77b1c936693980e05e77e1abad489cf7afec06a1025ba5a4e283586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b06966e6a520392599ca26eea644b49e3de8de468d46bd440ac1e1f18bce806476b02bcf416af28337073eb98f0852a27d2e822d406d7a5ce5bcc1810824be1
|
7
|
+
data.tar.gz: dd1356a5237995a4dafe935ef793debaeebdcb97b0238d12c2654fc2ff029fc53870c54bdaa5c314ef8d8e09ce36059ff73283ac23c90e219b0d9747f6ab8d62
|
data/lib/bfs/bucket/s3.rb
CHANGED
@@ -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
|
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
|
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
|
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/
|
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.
|
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-
|
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.
|
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.
|
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.
|
70
|
+
rubygems_version: 3.0.6
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: S3 bucket adapter for bfs
|