bfs-gs 0.4.1 → 0.5.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/gs.rb +2 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 508b4c692ccc4feb87909f73a161672eabd59adecef53a15f7ce426a179cd984
4
- data.tar.gz: 3408668f14cf53550aaacce84eeccb8e923039cb0df085bb22d7ca267ab1934a
3
+ metadata.gz: 51743478164e7dfd25c540ea4c29c26125ff748c280dcb78c1966c5e0271728b
4
+ data.tar.gz: 871089ee32de429d791d356198798ce1d938ef4879ca9e23eacbb21a626bc517
5
5
  SHA512:
6
- metadata.gz: 479e65bf7bed78adc4ffcdc7ec1e4964731fa9a654fb37709e290695c2a34fe46d0052cfff13ac200407d1c2a7ec1c6623ec4dd284dca3280ae602d3a495bbe2
7
- data.tar.gz: 565b68015c6ab4a5ce075bdabec67bb9bf5e7d06d488ac068b77bb2cbe4f4d1486064a6f5cc9c1c736e8e12108c46cfa00a35088f6795260c082cf84bb25021d
6
+ metadata.gz: aa0bc35d3ed5d50c4c547cbf811b8609e73efc636662f338a273dbf13a9f825d1711c542640526483fce691c0a18cd87af42e2e88e2825df8a16064f18f9ba3d
7
+ data.tar.gz: b6c5588806e7ed63b3a5ed332a1583107a0127307981ee260f6ad8ef30c3dc1d5f8682159deecbbafa5fe71523d8089e3c25be73d5e86d6309d02d3bfa6226fc
data/lib/bfs/bucket/gs.rb CHANGED
@@ -59,11 +59,12 @@ module BFS
59
59
  raise BFS::FileNotFound, trim_prefix(path) unless file
60
60
 
61
61
  name = trim_prefix(file.name)
62
- BFS::FileInfo.new(name, file.size, file.updated_at.to_time, file.content_type, file.metadata)
62
+ BFS::FileInfo.new(name, file.size, file.updated_at.to_time, file.content_type, norm_meta(file.metadata))
63
63
  end
64
64
 
65
65
  # Creates a new file and opens it for writing
66
66
  def create(path, opts={}, &block)
67
+ opts[:metadata] = norm_meta(opts[:metadata])
67
68
  path = full_path(path)
68
69
  enc = opts.delete(:encoding) || @encoding
69
70
  temp = BFS::TempWriter.new(path, encoding: enc) do |t|
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.4.1
4
+ version: 0.5.1
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-09-04 00:00:00.000000000 Z
11
+ date: 2019-10-09 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.4.1
19
+ version: 0.5.1
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.4.1
26
+ version: 0.5.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-storage
29
29
  requirement: !ruby/object:Gem::Requirement