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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bfs/bucket/s3.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4103371b6039d46aba27c96dc7ec740935ffa8353a1d52d09b1225ba6f2e152d
4
- data.tar.gz: 179845d43b49fd2681230f3a3a064496983e5156382575e7c234aeda654bfc04
3
+ metadata.gz: 4de8855194ea24227486c76d95151259cf7677de2e8b7c0993f7a455b813c2bb
4
+ data.tar.gz: d5e5831fc7a43fd7f0f951afb4e4026067a7ca811e5d349b35de8c9c2d6fe215
5
5
  SHA512:
6
- metadata.gz: 54a4afbfaae7f55b40fdeeab4dba2990a133525e2d513c65c13036e15703d65394e0cc581141448cdaed79c9f5435bc4087d78d5f56963c69c70992059989445
7
- data.tar.gz: 84d9af9c6f5abc03751d158e9716aaa58841ded7f182750c11c5f06744fca3931e1f7e8e7ae7715fb88ef735b03958369a792fe943eaf717237e78666df4d918
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.0
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.0
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.0
40
+ version: 0.3.1
41
41
  description: https://github.com/bsm/bfs.rb
42
42
  email: dimitrij@blacksquaremedia.com
43
43
  executables: []