google-gax 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/gax.rb +3 -0
- data/lib/google/gax/bundling.rb +6 -1
- data/lib/google/gax/version.rb +1 -1
- data/spec/google/gax/api_callable_spec.rb +9 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1860a47251ce665282b79d9dc643dba02ac33aa
|
4
|
+
data.tar.gz: 58c4e2686c58d9daab6ab12c4422ab1b618c6085
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf03e4341cc7c385f80ecb42b36b36eae2ac2a69f0ade7e1fd865e2be174d1d79890ffbe46a64f24fd7cd55e407be619b2b6f9995947f9584bb7412b4794926
|
7
|
+
data.tar.gz: 7026e43966c514b2a388c4b9775057c29273b8e0e716430359d1dfc726ab19f0af4ad9d7719b418468c64d454032453583771c6c09abd26ea62123401f4d425a
|
data/lib/google/gax.rb
CHANGED
@@ -35,6 +35,7 @@ require 'google/gax/settings'
|
|
35
35
|
require 'google/gax/version'
|
36
36
|
|
37
37
|
module Google
|
38
|
+
# Gax defines Google API extensions
|
38
39
|
module Gax
|
39
40
|
# rubocop:disable Metrics/ParameterLists
|
40
41
|
|
@@ -142,6 +143,8 @@ module Google
|
|
142
143
|
end
|
143
144
|
end
|
144
145
|
|
146
|
+
private_constant :CallSettings
|
147
|
+
|
145
148
|
# Encapsulates the overridable settings for a particular API call
|
146
149
|
# @!attribute [r] timeout
|
147
150
|
# @return [Numeric, :OPTION_INHERIT]
|
data/lib/google/gax/bundling.rb
CHANGED
@@ -27,8 +27,11 @@
|
|
27
27
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
28
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
|
30
|
+
# rubocop:disable Style/Documentation
|
31
|
+
# Without this, somehow rubocop raises an warning for documentaion for
|
32
|
+
# module Gax, however it's documented in lib/google/gax.rb.
|
33
|
+
|
30
34
|
module Google
|
31
|
-
# Gax defines Google API extensions
|
32
35
|
module Gax
|
33
36
|
DEMUX_WARNING = [
|
34
37
|
'Warning: cannot demultiplex the bundled response, got ',
|
@@ -36,6 +39,8 @@ module Google
|
|
36
39
|
'receive all responses'
|
37
40
|
].join
|
38
41
|
|
42
|
+
# rubocop:enable Style/Documentation
|
43
|
+
|
39
44
|
# Helper function for #compute_bundle_id.
|
40
45
|
# Used to retrieve a nested field signified by name where dots in name
|
41
46
|
# indicate nested objects.
|
data/lib/google/gax/version.rb
CHANGED
@@ -42,9 +42,16 @@ end
|
|
42
42
|
FAKE_STATUS_CODE_1 = :FAKE_STATUS_CODE_1
|
43
43
|
FAKE_STATUS_CODE_2 = :FAKE_STATUS_CODE_2
|
44
44
|
|
45
|
-
|
46
|
-
|
45
|
+
# Google::Gax::CallSettings is private, only accessible in the module context.
|
46
|
+
# For testing purpose, this makes a toplevel ::CallSettings point to the same
|
47
|
+
# class.
|
48
|
+
module Google
|
49
|
+
module Gax
|
50
|
+
::CallSettings = CallSettings
|
51
|
+
end
|
52
|
+
end
|
47
53
|
|
54
|
+
describe Google::Gax do
|
48
55
|
describe 'create_api_call' do
|
49
56
|
it 'calls api call' do
|
50
57
|
settings = CallSettings.new
|
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
|
+
version: 0.4.4
|
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-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: googleauth
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: grpc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rly
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|