google-gax 0.4.4 → 0.5.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/lib/google/gax.rb +0 -1
- data/lib/google/gax/version.rb +1 -1
- data/spec/google/gax/api_callable_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72a28cfa1c6ca5575c1a2c5c19403a6091295fbc
|
4
|
+
data.tar.gz: 7aeb89e47de49fa59f8c4bde57f9ff0608b1ff85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b792ba3a5dee3e4ae2d59dca30abcfff620cc52f28a67edbd7a2d8b9b53632eaf4db46a6e1844002d26b8b7ce9651748b17af8538569e41845387d8f79cabf9
|
7
|
+
data.tar.gz: f520a4735253edff70cb8d42c171cd8d3b363d278fa3fe3a0b6fa6e875c817da8d1fdfd2448acc90c4c709636238101e4aa24254e0f21a21deff9ccab8f28789
|
data/lib/google/gax.rb
CHANGED
data/lib/google/gax/version.rb
CHANGED
@@ -124,20 +124,20 @@ describe Google::Gax do
|
|
124
124
|
|
125
125
|
describe 'failures without retry' do
|
126
126
|
it 'simply fails' do
|
127
|
-
settings = CallSettings.new(errors: [
|
127
|
+
settings = CallSettings.new(errors: [CustomException])
|
128
128
|
deadline_arg = nil
|
129
129
|
call_count = 0
|
130
130
|
func = proc do |deadline: nil, **_kwargs|
|
131
131
|
deadline_arg = deadline
|
132
132
|
call_count += 1
|
133
|
-
raise
|
133
|
+
raise CustomException.new('', FAKE_STATUS_CODE_1)
|
134
134
|
end
|
135
135
|
my_callable = Google::Gax.create_api_call(func, settings)
|
136
136
|
begin
|
137
137
|
my_callable.call
|
138
138
|
expect(true).to be false # should not reach to this line.
|
139
139
|
rescue Google::Gax::GaxError => exc
|
140
|
-
expect(exc.cause).to be_a(
|
140
|
+
expect(exc.cause).to be_a(CustomException)
|
141
141
|
end
|
142
142
|
expect(deadline_arg).to be_a(Time)
|
143
143
|
expect(call_count).to eq(1)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-gax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google API Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleauth
|