bfs-gs 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf1f2cde1e173f11544276b6a24719c8092ceea8c17f54a910b855b3c7f66a9e
4
- data.tar.gz: 949b40d39cd7939cc2f9c9e05f15ba0460ada435010141656875e1c1ba733951
3
+ metadata.gz: 22b3892b324405cf0bb342b72dba4e6bf3cd8c16943af7b225f8d2367c7a5ba4
4
+ data.tar.gz: 1b6902a3577e89bbed1a0357a26327dca0cebabc8663322014501c82b7ae687b
5
5
  SHA512:
6
- metadata.gz: cc1738b2c72c6dd69b9443ff1755562074dc0ce97fddbc792f6d3df9513d85b8ac7e863e67ec5ca2184bb8dfe306ae5283d507ab1f0bfb8a3a6d7c5153c62d06
7
- data.tar.gz: b106098d492381c93c6ee4c0d59aa1bda21d60c71b367bcd5317c0470f3e927e9285acb86965f6bd77116dd850206f40ad7eb7cc4e1be378e85e654d6d79304f
6
+ metadata.gz: edd42acc0466e51285005fdeaf66aceb6de7287c9ea430f80a245221c2a224f75e11aeed7e937ad12d9e5a1cd69428e3d9d7840f7ffce52d957011f2541fac1c
7
+ data.tar.gz: ec15157af7129148f231b3e91a771cea2bbb4b7c4f5b3cd47e9d92a808bf2210d56fea54cdb0a6288a07d8184fb8a900a2f949d39327c65ec53e052c45423a95
data/lib/bfs/bucket/gs.rb CHANGED
@@ -50,7 +50,7 @@ module BFS
50
50
  file = @bucket.file(path)
51
51
  raise BFS::FileNotFound, path unless file
52
52
 
53
- BFS::FileInfo.new(path, file.size, file.updated_at)
53
+ BFS::FileInfo.new(path, file.size, file.updated_at, file.content_type, file.metadata)
54
54
  end
55
55
 
56
56
  # Creates a new file and opens it for writing
@@ -24,6 +24,8 @@ RSpec.describe BFS::Bucket::GS do
24
24
  name: name,
25
25
  data: data,
26
26
  size: data.bytesize,
27
+ content_type: 'text/plain',
28
+ metadata: {},
27
29
  updated_at: Time.now
28
30
  allow(file).to receive(:download) do |path, _|
29
31
  File.open(path, 'wb') {|f| f.write file.data }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
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-12 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bfs
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.2
19
+ version: 0.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.2
26
+ version: 0.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-storage
29
29
  requirement: !ruby/object:Gem::Requirement