bfs-gs 0.3.6 → 0.3.7

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 +3 -2
  3. metadata +5 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3d8fc13a0c3b0d63cfa1a205772932f829812920263b4ad641795c28fa65455
4
- data.tar.gz: 18f7032d23c3a149e9553767316b864725958dde8434b08c533e29883ef96a83
3
+ metadata.gz: 3d2d0a63a07421fb4c5f1a92f17ea41691cfffce5b5c4bcf708d2fba02e33155
4
+ data.tar.gz: 83e4ae9f78f3c5694f84920040e7b9c7de1ee5eaccabaffddf0747001aa27def
5
5
  SHA512:
6
- metadata.gz: 64a6fe4a1e2bab1c175290ee225002811450ba09b713fcbe03e1185fd40f55f537751cbf778ecae924c76de4de2f64d7e0604a3eeb697ec4ca86d58706668587
7
- data.tar.gz: fc2ae2ada39b91504672f22bd949a27649bd143baf13f06aabdeb93a62577ad44f56bfec5a70b262ca14ad43e7746ce6f1a0144ded688adb14c29ea00018cc9f
6
+ metadata.gz: 64844e32961bf6d3ec8c808347a050194be42d41014832ae86c16fba596b3ac48e0dcc50c635a9da0caa7130eb872c2929da323718546a415eae8648375bad2d
7
+ data.tar.gz: a208ce6d19b0790059df252deee526b68a664f405a2e1ddd2ef2d1f9750f2366e3030657ecfcc7932654c0f9debb11b6beb3c9485f93675fae1b85b024f86618
data/lib/bfs/bucket/gs.rb CHANGED
@@ -12,7 +12,7 @@ module BFS
12
12
  #
13
13
  # @param [String] name the bucket name.
14
14
  # @param [Hash] opts options.
15
- # @option opts [String] :project_id project ID. Defaults to GCP_PROJECT env var. Required.
15
+ # @option opts [String] :project_id project ID. Defaults to GCP_PROJECT env var. Required.
16
16
  # @option opts [String, Hash, Google::Auth::Credentials] :credentials
17
17
  # the path to the keyfile as a String, the contents of the keyfile as a Hash, or a Google::Auth::Credentials object.
18
18
  # @option opts [String] :prefix custom namespace within the bucket
@@ -63,7 +63,7 @@ module BFS
63
63
  # Creates a new file and opens it for writing
64
64
  def create(path, opts={}, &block)
65
65
  path = full_path(path)
66
- temp = BFS::TempWriter.new(path) do |t|
66
+ temp = BFS::TempWriter.new(path, encoding: opts.delete(:encoding)) do |t|
67
67
  File.open(t, binmode: true) do |file|
68
68
  @bucket.create_file(file, path, opts)
69
69
  end
@@ -114,6 +114,7 @@ BFS.register('gs') do |url|
114
114
 
115
115
  BFS::Bucket::GS.new url.host,
116
116
  project_id: params.key?('project_id') ? params['project_id'].first : nil,
117
+ credentials: params.key?('credentials') ? params['credentials'].first : nil,
117
118
  acl: params.key?('acl') ? params['acl'].first : nil,
118
119
  timeout: params.key?('timeout') ? params['timeout'].first.to_i : nil,
119
120
  retries: params.key?('retries') ? params['retries'].first.to_i : nil
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.6
4
+ version: 0.3.7
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-12-07 00:00:00.000000000 Z
11
+ date: 2019-04-02 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.6
19
+ version: 0.3.7
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.6
26
+ version: 0.3.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-storage
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -67,8 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubyforge_project:
71
- rubygems_version: 2.7.7
70
+ rubygems_version: 3.0.2
72
71
  signing_key:
73
72
  specification_version: 4
74
73
  summary: GS bucket adapter for bfs