google-cloud-errors 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +2 -2
- data/README.md +2 -2
- data/lib/google/cloud/errors.rb +7 -7
- data/lib/google/cloud/errors/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ed78008afa75f71ca59d67f78c2c4552f0d39cee095caab782ac19bd1c3f06
|
4
|
+
data.tar.gz: 122901666de9dbd124d9c307231bad7243f950d183abe1ccd3778dec7b1851a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10d7df4020a5719659f9b815783ec7144890ae93ccae4e2bbe956ca6061d0c93554402ec0ecdd08b13a367a6bdfc284dd2fb4885c9c560279f6ec5b397125260
|
7
|
+
data.tar.gz: 5401e211e05ca46c3c69707cba913cdfc5583fe8ce5703ff13e78c0181545057cd75b805a34b520ee5ebbed4376cc9fc2324792372d4b4e1570ef8c8f67943d8
|
data/CONTRIBUTING.md
CHANGED
@@ -24,7 +24,7 @@ be able to accept your pull requests.
|
|
24
24
|
In order to use the google-cloud console and run the project's tests,
|
25
25
|
there is a small amount of setup:
|
26
26
|
|
27
|
-
1. Install Ruby. google-cloud requires Ruby 2.
|
27
|
+
1. Install Ruby. google-cloud requires Ruby 2.5+. 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).
|
@@ -45,7 +45,7 @@ there is a small amount of setup:
|
|
45
45
|
|
46
46
|
```sh
|
47
47
|
$ cd google-cloud-errors/
|
48
|
-
$ bundle
|
48
|
+
$ bundle install
|
49
49
|
```
|
50
50
|
|
51
51
|
## Google Cloud Tests
|
data/README.md
CHANGED
@@ -9,11 +9,11 @@ information about Google Cloud gems.
|
|
9
9
|
|
10
10
|
## Supported Ruby Versions
|
11
11
|
|
12
|
-
This library is supported on Ruby 2.
|
12
|
+
This library is supported on Ruby 2.5+.
|
13
13
|
|
14
14
|
Google provides official support for Ruby versions that are actively supported
|
15
15
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
|
16
|
-
security maintenance, and not end of life. Currently, this means Ruby 2.
|
16
|
+
security maintenance, and not end of life. Currently, this means Ruby 2.5 and
|
17
17
|
later. Older versions of Ruby _may_ still work, but are unsupported and not
|
18
18
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
19
19
|
about the Ruby support schedule.
|
data/lib/google/cloud/errors.rb
CHANGED
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
#
|
37
37
|
# @return [Object, nil]
|
38
38
|
def status_code
|
39
|
-
return nil unless cause
|
39
|
+
return nil unless cause.respond_to? :status_code
|
40
40
|
cause.status_code
|
41
41
|
end
|
42
42
|
|
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
#
|
50
50
|
# @return [Object, nil]
|
51
51
|
def body
|
52
|
-
return nil unless cause
|
52
|
+
return nil unless cause.respond_to? :body
|
53
53
|
cause.body
|
54
54
|
end
|
55
55
|
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
#
|
63
63
|
# @return [Object, nil]
|
64
64
|
def header
|
65
|
-
return nil unless cause
|
65
|
+
return nil unless cause.respond_to? :header
|
66
66
|
cause.header
|
67
67
|
end
|
68
68
|
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
# @return [Object, nil]
|
77
77
|
def code
|
78
|
-
return nil unless cause
|
78
|
+
return nil unless cause.respond_to? :code
|
79
79
|
cause.code
|
80
80
|
end
|
81
81
|
|
@@ -88,7 +88,7 @@ module Google
|
|
88
88
|
#
|
89
89
|
# @return [Object, nil]
|
90
90
|
def details
|
91
|
-
return nil unless cause
|
91
|
+
return nil unless cause.respond_to? :details
|
92
92
|
cause.details
|
93
93
|
end
|
94
94
|
|
@@ -101,7 +101,7 @@ module Google
|
|
101
101
|
#
|
102
102
|
# @return [Object, nil]
|
103
103
|
def metadata
|
104
|
-
return nil unless cause
|
104
|
+
return nil unless cause.respond_to? :metadata
|
105
105
|
cause.metadata
|
106
106
|
end
|
107
107
|
|
@@ -114,7 +114,7 @@ module Google
|
|
114
114
|
#
|
115
115
|
# @return [Object, nil]
|
116
116
|
def status_details
|
117
|
-
return nil unless cause
|
117
|
+
return nil unless cause.respond_to? :status_details
|
118
118
|
cause.status_details
|
119
119
|
end
|
120
120
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.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:
|
12
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: autotest-suffix
|
@@ -31,28 +31,28 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.
|
34
|
+
version: 1.25.1
|
35
35
|
type: :development
|
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: 1.
|
41
|
+
version: 1.25.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '5.
|
48
|
+
version: '5.14'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '5.
|
55
|
+
version: '5.14'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: minitest-autotest
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,14 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
requirements:
|
180
180
|
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: '2.
|
182
|
+
version: '2.5'
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
189
|
+
rubygems_version: 3.2.13
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Error classes for google-cloud-ruby
|