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.
- checksums.yaml +4 -4
- data/lib/bfs/bucket/gs.rb +3 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2d0a63a07421fb4c5f1a92f17ea41691cfffce5b5c4bcf708d2fba02e33155
|
4
|
+
data.tar.gz: 83e4ae9f78f3c5694f84920040e7b9c7de1ee5eaccabaffddf0747001aa27def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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:
|
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.
|
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.
|
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
|
-
|
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
|