google-gax 0.8.0 → 0.8.1

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: 9c4b4e8a1661f0a0734a310e5969872001666206
4
- data.tar.gz: f2af4244cfd73b82bff30393ff21ef5d6bcbc4e3
3
+ metadata.gz: 435fe4bf9a8b930fa00aab341991956ee2e7ef95
4
+ data.tar.gz: 089dc8943ceaf963086e53ae23c9908a6be0ed8a
5
5
  SHA512:
6
- metadata.gz: 9f3c887fb4413c90d7397024a5da6fcf280e656a6dd5fd0e8707e292a955bb0731637c13ec4dbd596750070b314ea431506a80474384716a0227fd4998b044df
7
- data.tar.gz: b487c73d5bf55f2e135a089b1b6147fbe756b63c73fef312d1c5df7fdb0db8290b58ca5cf7a109124e94b8a5689bd5e877ce0fde260e5608156845526c009b85
6
+ metadata.gz: d746f2a27a2bb5704998857fe19211dce290aa076cd2bb301f824bc4340f0cc04071e8c3f5176b7f35b1bc599fb9627d069ac3ce0c4c611d4d1eed2712f6a6d7
7
+ data.tar.gz: f22d575c235a8571ae3f8da832cfbdb86d43463381496ab721ddb305b311533fb22782acb85ae63e4768b00b05ef375fba38edca3ff1a98b8ef424cb1c8c974f
@@ -29,6 +29,6 @@
29
29
 
30
30
  module Google
31
31
  module Gax
32
- VERSION = '0.8.0'.freeze
32
+ VERSION = '0.8.1'.freeze
33
33
  end
34
34
  end
@@ -51,8 +51,6 @@ module Google
51
51
  # The default port of the service.
52
52
  DEFAULT_SERVICE_PORT = 443
53
53
 
54
- CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
55
-
56
54
  DEFAULT_TIMEOUT = 30
57
55
 
58
56
  PAGE_DESCRIPTORS = {
@@ -84,10 +82,6 @@ module Google
84
82
  # or the specified config is missing data points.
85
83
  # @param timeout [Numeric]
86
84
  # The default timeout, in seconds, for calls made through this client.
87
- # @param app_name [String]
88
- # The codename of the calling service.
89
- # @param app_version [String]
90
- # The version of the calling service.
91
85
  def initialize \
92
86
  service_path: SERVICE_ADDRESS,
93
87
  port: DEFAULT_SERVICE_PORT,
@@ -96,17 +90,27 @@ module Google
96
90
  scopes: ALL_SCOPES,
97
91
  client_config: {},
98
92
  timeout: DEFAULT_TIMEOUT,
99
- app_name: "gax",
100
- app_version: Google::Gax::VERSION
93
+ app_name: nil,
94
+ app_version: nil,
95
+ lib_name: nil,
96
+ lib_version: ""
101
97
  # These require statements are intentionally placed here to initialize
102
98
  # the gRPC module only when it's required.
103
99
  # See https://github.com/googleapis/toolkit/issues/446
104
100
  require "google/gax/grpc"
105
101
  require "google/longrunning/operations_services_pb"
106
102
 
107
- google_api_client = "#{app_name}/#{app_version} " \
108
- "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
109
- "ruby/#{RUBY_VERSION}".freeze
103
+
104
+ if app_name || app_version
105
+ warn "`app_name` and `app_version` are no longer being used in the request headers."
106
+ end
107
+
108
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
109
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
110
+ google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
111
+ google_api_client << " grpc/#{GRPC::VERSION}"
112
+ google_api_client.freeze
113
+
110
114
  headers = { :"x-goog-api-client" => google_api_client }
111
115
  client_config_file = Pathname.new(__dir__).join(
112
116
  "operations_client_config.json"
@@ -2,13 +2,11 @@
2
2
  "interfaces": {
3
3
  "google.longrunning.Operations": {
4
4
  "retry_codes": {
5
- "retry_codes_def": {
6
- "idempotent": [
7
- "DEADLINE_EXCEEDED",
8
- "UNAVAILABLE"
9
- ],
10
- "non_idempotent": []
11
- }
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
12
10
  },
13
11
  "retry_params": {
14
12
  "default": {
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.8.0
4
+ version: 0.8.1
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: 2017-02-18 00:00:00.000000000 Z
11
+ date: 2017-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleauth
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.6.8
199
+ rubygems_version: 2.4.8
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: Aids the development of APIs for clients and servers based on GRPC and Google