google-cloud-storage 1.21.1 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +7 -27
- data/CHANGELOG.md +5 -0
- data/CONTRIBUTING.md +1 -1
- data/OVERVIEW.md +5 -5
- data/lib/google-cloud-storage.rb +2 -1
- data/lib/google/cloud/storage/version.rb +1 -1
- metadata +24 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a67ef9bc41b662092abd0586681372ace9f9e55f8343d60d06309f2fd8f83616
|
|
4
|
+
data.tar.gz: 4123df331b12abbe88a9d205233bb6c217f1a193dd6e224cf97c61d8d65f109d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a7ca08ea73ed40b9fb36ff17c3402711366874651ef18f51da42d67232d153fa9067741a0dfe4cd7ea7200a730be992b3125b979c5490b99f42906b6398553f
|
|
7
|
+
data.tar.gz: 290c14694bd1c37996a182ff8295434410c2efdc4ce41f5f3ef5f99cfc819a2d649380ed75f22aa9adfd6c8fea65e8318731403f8272e40ca269e975c971d3ca
|
data/AUTHENTICATION.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
In general, the google-cloud-storage library uses [Service
|
|
4
4
|
Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
|
|
5
|
-
credentials to connect to Google Cloud services. When running on
|
|
5
|
+
credentials to connect to Google Cloud services. When running on Google Cloud
|
|
6
|
+
Platform (GCP), including Google Compute Engine (GCE), Google Kubernetes Engine
|
|
7
|
+
(GKE), Google App Engine (GAE), Google Cloud Functions (GCF) and Cloud Run,
|
|
6
8
|
the credentials will be discovered automatically. When running on other
|
|
7
9
|
environments, the Service Account credentials can be specified by providing the
|
|
8
10
|
path to the [JSON
|
|
@@ -35,32 +37,10 @@ providing **Project ID** and **Service Account Credentials** directly in code.
|
|
|
35
37
|
|
|
36
38
|
### Google Cloud Platform environments
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
should be written as if already authenticated.
|
|
42
|
-
GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
|
|
43
|
-
access. For example:
|
|
44
|
-
|
|
45
|
-
* **All APIs**
|
|
46
|
-
* `https://www.googleapis.com/auth/cloud-platform`
|
|
47
|
-
* `https://www.googleapis.com/auth/cloud-platform.read-only`
|
|
48
|
-
* **BigQuery**
|
|
49
|
-
* `https://www.googleapis.com/auth/bigquery`
|
|
50
|
-
* `https://www.googleapis.com/auth/bigquery.insertdata`
|
|
51
|
-
* **Compute Engine**
|
|
52
|
-
* `https://www.googleapis.com/auth/compute`
|
|
53
|
-
* **Datastore**
|
|
54
|
-
* `https://www.googleapis.com/auth/datastore`
|
|
55
|
-
* `https://www.googleapis.com/auth/userinfo.email`
|
|
56
|
-
* **DNS**
|
|
57
|
-
* `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
|
|
58
|
-
* **Pub/Sub**
|
|
59
|
-
* `https://www.googleapis.com/auth/pubsub`
|
|
60
|
-
* **Storage**
|
|
61
|
-
* `https://www.googleapis.com/auth/devstorage.full_control`
|
|
62
|
-
* `https://www.googleapis.com/auth/devstorage.read_only`
|
|
63
|
-
* `https://www.googleapis.com/auth/devstorage.read_write`
|
|
40
|
+
When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
|
|
41
|
+
Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
|
|
42
|
+
(GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
|
|
43
|
+
automatically. Code should be written as if already authenticated.
|
|
64
44
|
|
|
65
45
|
### Environment Variables
|
|
66
46
|
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
|
@@ -24,7 +24,7 @@ be able to accept your pull requests.
|
|
|
24
24
|
In order to use the google-cloud-storage console and run the project's tests,
|
|
25
25
|
there is a small amount of setup:
|
|
26
26
|
|
|
27
|
-
1. Install Ruby. google-cloud-storage requires Ruby 2.
|
|
27
|
+
1. Install Ruby. google-cloud-storage requires Ruby 2.4+. You may choose to
|
|
28
28
|
manage your Ruby and gem installations with [RVM](https://rvm.io/),
|
|
29
29
|
[rbenv](https://github.com/rbenv/rbenv), or
|
|
30
30
|
[chruby](https://github.com/postmodern/chruby).
|
data/OVERVIEW.md
CHANGED
|
@@ -7,11 +7,11 @@ perform data operations in a cost effective manner.
|
|
|
7
7
|
|
|
8
8
|
The goal of google-cloud is to provide an API that is comfortable to Rubyists.
|
|
9
9
|
Your authentication credentials are detected automatically in Google Cloud
|
|
10
|
-
Platform
|
|
11
|
-
Google
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Guide}.
|
|
10
|
+
Platform (GCP), including Google Compute Engine (GCE), Google Kubernetes Engine
|
|
11
|
+
(GKE), Google App Engine (GAE), Google Cloud Functions (GCF) and Cloud Run. In
|
|
12
|
+
other environments you can configure authentication easily, either directly in
|
|
13
|
+
your code or via environment variables. Read more about the options for
|
|
14
|
+
connecting in the {file:AUTHENTICATION.md Authentication Guide}.
|
|
15
15
|
|
|
16
16
|
```ruby
|
|
17
17
|
require "google/cloud/storage"
|
data/lib/google-cloud-storage.rb
CHANGED
|
@@ -138,5 +138,6 @@ Google::Cloud.configure.add_config! :storage do |config|
|
|
|
138
138
|
config.add_field! :scope, nil, match: [String, Array]
|
|
139
139
|
config.add_field! :retries, nil, match: Integer
|
|
140
140
|
config.add_field! :timeout, nil, match: Integer
|
|
141
|
-
|
|
141
|
+
# TODO: Remove once discovery document is updated.
|
|
142
|
+
config.add_field! :endpoint, "https://storage.googleapis.com/", match: String
|
|
142
143
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|
|
@@ -31,34 +31,28 @@ dependencies:
|
|
|
31
31
|
requirements:
|
|
32
32
|
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '0.
|
|
34
|
+
version: '0.33'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
39
|
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '0.
|
|
41
|
+
version: '0.33'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: googleauth
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- - "
|
|
47
|
-
- !ruby/object:Gem::Version
|
|
48
|
-
version: 0.6.2
|
|
49
|
-
- - "<"
|
|
46
|
+
- - "~>"
|
|
50
47
|
- !ruby/object:Gem::Version
|
|
51
|
-
version: 0.
|
|
48
|
+
version: '0.9'
|
|
52
49
|
type: :runtime
|
|
53
50
|
prerelease: false
|
|
54
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
55
52
|
requirements:
|
|
56
|
-
- - "
|
|
57
|
-
- !ruby/object:Gem::Version
|
|
58
|
-
version: 0.6.2
|
|
59
|
-
- - "<"
|
|
53
|
+
- - "~>"
|
|
60
54
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.
|
|
55
|
+
version: '0.9'
|
|
62
56
|
- !ruby/object:Gem::Dependency
|
|
63
57
|
name: digest-crc
|
|
64
58
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,6 +95,20 @@ dependencies:
|
|
|
101
95
|
- - "~>"
|
|
102
96
|
- !ruby/object:Gem::Version
|
|
103
97
|
version: '1.0'
|
|
98
|
+
- !ruby/object:Gem::Dependency
|
|
99
|
+
name: google-style
|
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
|
101
|
+
requirements:
|
|
102
|
+
- - "~>"
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: 1.24.0
|
|
105
|
+
type: :development
|
|
106
|
+
prerelease: false
|
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
+
requirements:
|
|
109
|
+
- - "~>"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: 1.24.0
|
|
104
112
|
- !ruby/object:Gem::Dependency
|
|
105
113
|
name: minitest
|
|
106
114
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -185,20 +193,6 @@ dependencies:
|
|
|
185
193
|
- - "~>"
|
|
186
194
|
- !ruby/object:Gem::Version
|
|
187
195
|
version: '3.0'
|
|
188
|
-
- !ruby/object:Gem::Dependency
|
|
189
|
-
name: rubocop
|
|
190
|
-
requirement: !ruby/object:Gem::Requirement
|
|
191
|
-
requirements:
|
|
192
|
-
- - "~>"
|
|
193
|
-
- !ruby/object:Gem::Version
|
|
194
|
-
version: 0.64.0
|
|
195
|
-
type: :development
|
|
196
|
-
prerelease: false
|
|
197
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
198
|
-
requirements:
|
|
199
|
-
- - "~>"
|
|
200
|
-
- !ruby/object:Gem::Version
|
|
201
|
-
version: 0.64.0
|
|
202
196
|
- !ruby/object:Gem::Dependency
|
|
203
197
|
name: simplecov
|
|
204
198
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -294,14 +288,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
294
288
|
requirements:
|
|
295
289
|
- - ">="
|
|
296
290
|
- !ruby/object:Gem::Version
|
|
297
|
-
version: 2.
|
|
291
|
+
version: '2.4'
|
|
298
292
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
293
|
requirements:
|
|
300
294
|
- - ">="
|
|
301
295
|
- !ruby/object:Gem::Version
|
|
302
296
|
version: '0'
|
|
303
297
|
requirements: []
|
|
304
|
-
rubygems_version: 3.0.
|
|
298
|
+
rubygems_version: 3.0.6
|
|
305
299
|
signing_key:
|
|
306
300
|
specification_version: 4
|
|
307
301
|
summary: API Client library for Google Cloud Storage
|