google-cloud-core 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/README.md +8 -8
- data/lib/google/cloud/core/version.rb +1 -1
- data/lib/google/cloud/credentials.rb +2 -2
- data/lib/google/cloud/errors.rb +7 -7
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25ce383cc8b5d47e8f61db1849b99bbb9121a008a956c08d55ebf25e7954fea
|
4
|
+
data.tar.gz: d7a1c3a44c6ff438d8d81c70d3705e23571b8cb6cb8db039e509e12417d81cea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f7691d3b17e046c372eb2e1003ceb79d386c9bca2671ce91e1d3164569622bbc8a9f2d198150935f2559bb58931eb9190dcc1abb336e487758d22e5be52305
|
7
|
+
data.tar.gz: 5f59820ef830cbb0baa1f8593488688a0153e1e3abbf8d2ccde1f910db89675961dc66154098a933b20e634d5c8acbaf6215d77114f53d0625deae68e26147a5
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -6,14 +6,14 @@ This library contains shared types, such as error classes, for the google-cloud
|
|
6
6
|
|
7
7
|
## Supported Ruby Versions
|
8
8
|
|
9
|
-
This library is
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
9
|
+
This library is supported on Ruby 2.3+.
|
10
|
+
|
11
|
+
Google provides official support for Ruby versions that are actively supported
|
12
|
+
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
13
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.3
|
14
|
+
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
15
|
+
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
16
|
+
about the Ruby support schedule.
|
17
17
|
|
18
18
|
## Versioning
|
19
19
|
|
@@ -30,8 +30,8 @@ module Google
|
|
30
30
|
# This class is intended to be inherited by API-specific classes
|
31
31
|
# which overrides the SCOPE constant.
|
32
32
|
class Credentials
|
33
|
-
TOKEN_CREDENTIAL_URI = "https://
|
34
|
-
AUDIENCE = "https://
|
33
|
+
TOKEN_CREDENTIAL_URI = "https://oauth2.googleapis.com/token"
|
34
|
+
AUDIENCE = "https://oauth2.googleapis.com/token"
|
35
35
|
SCOPE = []
|
36
36
|
PATH_ENV_VARS = %w[GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE]
|
37
37
|
JSON_ENV_VARS = %w[GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON]
|
data/lib/google/cloud/errors.rb
CHANGED
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# This is typically present on errors originating from calls to an API
|
47
47
|
# over HTTP/REST.
|
48
48
|
#
|
49
|
-
# @
|
49
|
+
# @return [Object, nil]
|
50
50
|
def status_code
|
51
51
|
return nil unless cause && cause.respond_to?(:status_code)
|
52
52
|
cause.status_code
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
# This is typically present on errors originating from calls to an API
|
60
60
|
# over HTTP/REST.
|
61
61
|
#
|
62
|
-
# @
|
62
|
+
# @return [Object, nil]
|
63
63
|
def body
|
64
64
|
return nil unless cause && cause.respond_to?(:body)
|
65
65
|
cause.body
|
@@ -72,7 +72,7 @@ module Google
|
|
72
72
|
# This is typically present on errors originating from calls to an API
|
73
73
|
# over HTTP/REST.
|
74
74
|
#
|
75
|
-
# @
|
75
|
+
# @return [Object, nil]
|
76
76
|
def header
|
77
77
|
return nil unless cause && cause.respond_to?(:header)
|
78
78
|
cause.header
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
# This is typically present on errors originating from calls to an API
|
86
86
|
# over gRPC.
|
87
87
|
#
|
88
|
-
# @
|
88
|
+
# @return [Object, nil]
|
89
89
|
def code
|
90
90
|
return nil unless cause && cause.respond_to?(:code)
|
91
91
|
cause.code
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
# This is typically present on errors originating from calls to an API
|
99
99
|
# over gRPC.
|
100
100
|
#
|
101
|
-
# @
|
101
|
+
# @return [Object, nil]
|
102
102
|
def details
|
103
103
|
return nil unless cause && cause.respond_to?(:details)
|
104
104
|
cause.details
|
@@ -111,7 +111,7 @@ module Google
|
|
111
111
|
# This is typically present on errors originating from calls to an API
|
112
112
|
# over gRPC.
|
113
113
|
#
|
114
|
-
# @
|
114
|
+
# @return [Object, nil]
|
115
115
|
def metadata
|
116
116
|
return nil unless cause && cause.respond_to?(:metadata)
|
117
117
|
cause.metadata
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# This is typically present on errors originating from calls to an API
|
125
125
|
# over gRPC.
|
126
126
|
#
|
127
|
-
# @
|
127
|
+
# @return [Object, nil]
|
128
128
|
def status_details
|
129
129
|
return nil unless cause && cause.respond_to?(:status_details)
|
130
130
|
cause.status_details
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
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: 2018-
|
12
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-env
|
@@ -95,6 +95,20 @@ dependencies:
|
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '1.1'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: redcarpet
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '3.0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - "~>"
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '3.0'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: rubocop
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|