google-gax 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1860a47251ce665282b79d9dc643dba02ac33aa
4
- data.tar.gz: 58c4e2686c58d9daab6ab12c4422ab1b618c6085
3
+ metadata.gz: 72a28cfa1c6ca5575c1a2c5c19403a6091295fbc
4
+ data.tar.gz: 7aeb89e47de49fa59f8c4bde57f9ff0608b1ff85
5
5
  SHA512:
6
- metadata.gz: 3bf03e4341cc7c385f80ecb42b36b36eae2ac2a69f0ade7e1fd865e2be174d1d79890ffbe46a64f24fd7cd55e407be619b2b6f9995947f9584bb7412b4794926
7
- data.tar.gz: 7026e43966c514b2a388c4b9775057c29273b8e0e716430359d1dfc726ab19f0af4ad9d7719b418468c64d454032453583771c6c09abd26ea62123401f4d425a
6
+ metadata.gz: 8b792ba3a5dee3e4ae2d59dca30abcfff620cc52f28a67edbd7a2d8b9b53632eaf4db46a6e1844002d26b8b7ce9651748b17af8538569e41845387d8f79cabf9
7
+ data.tar.gz: f520a4735253edff70cb8d42c171cd8d3b363d278fa3fe3a0b6fa6e875c817da8d1fdfd2448acc90c4c709636238101e4aa24254e0f21a21deff9ccab8f28789
@@ -29,7 +29,6 @@
29
29
 
30
30
  require 'google/gax/api_callable'
31
31
  require 'google/gax/errors'
32
- require 'google/gax/grpc'
33
32
  require 'google/gax/path_template'
34
33
  require 'google/gax/settings'
35
34
  require 'google/gax/version'
@@ -29,6 +29,6 @@
29
29
 
30
30
  module Google
31
31
  module Gax
32
- VERSION = '0.4.4'.freeze
32
+ VERSION = '0.5.0'.freeze
33
33
  end
34
34
  end
@@ -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: [GRPC::Cancelled])
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 GRPC::Cancelled, ''
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(GRPC::Cancelled)
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.4
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-08-23 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleauth