bfs-s3 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bfs/bucket/s3.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4de8855194ea24227486c76d95151259cf7677de2e8b7c0993f7a455b813c2bb
|
4
|
+
data.tar.gz: d5e5831fc7a43fd7f0f951afb4e4026067a7ca811e5d349b35de8c9c2d6fe215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c8a3db6f87c64e956f3dd7707b4d3d2e411c98c3f1a4875b9345be51a9cc2fb13052bea92411294bd2659564008fe35b38816ae5ad90986a68d7d20c8ea2ac0
|
7
|
+
data.tar.gz: 582ffc522b928d25e14475222b4c171c7bfbf04324521c6b202be15214ac46545a4e12da2ae8bd4e4d025b9fd8bf1d0c3932930f9dd6ee6010fe724a9dc7863a
|
data/lib/bfs/bucket/s3.rb
CHANGED
@@ -77,7 +77,7 @@ module BFS
|
|
77
77
|
opts[:storage_class] ||= @storage_class if @storage_class
|
78
78
|
|
79
79
|
temp = BFS::TempWriter.new(path) do |t|
|
80
|
-
File.open(t) do |file|
|
80
|
+
File.open(t, binmode: true) do |file|
|
81
81
|
@client.put_object(opts.merge(body: file))
|
82
82
|
end
|
83
83
|
end
|
@@ -103,7 +103,7 @@ module BFS
|
|
103
103
|
)
|
104
104
|
@client.get_object(opts)
|
105
105
|
|
106
|
-
File.open(temp.path, &block)
|
106
|
+
File.open(temp.path, binmode: true, &block)
|
107
107
|
rescue Aws::S3::Errors::NoSuchKey, Aws::S3::Errors::NoSuchBucket
|
108
108
|
raise BFS::FileNotFound, path
|
109
109
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bfs-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitrij Denissenko
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.
|
33
|
+
version: 0.3.1
|
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.
|
40
|
+
version: 0.3.1
|
41
41
|
description: https://github.com/bsm/bfs.rb
|
42
42
|
email: dimitrij@blacksquaremedia.com
|
43
43
|
executables: []
|