google-apis-core 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: c67bac656f6f34dd0ad2233ab3854cb0888d813a9b000ec42552e64ac8315243
4
- data.tar.gz: 92bff02cedcda68a30da3a1431e92ca705adb33b0c13d8deed721e7216d6acad
3
+ metadata.gz: e64ec41a6379d9ce79efcb2e1c0f7f787c2949a3492d78453e0851b66f9ce334
4
+ data.tar.gz: 7bbd36b4eabdf3d64049f72b82baa81a6a0a5ad41b05699def407133bc83f1e2
5
5
  SHA512:
6
- metadata.gz: 0b82d56587b8fe7036faa08c1e65d47fa0251882a7f06712908d79c766255b59c6ff77f76097ddf6782741ae4c9cd32ce89845345e66a541e8615765c22ad31a
7
- data.tar.gz: 997c750a7325d362826a4b86ae36be0bf0c4c529cdb686c3af7dbd38d8e7c7e354ace7a2645a157619e68c4b0ff16108800cd7b2c41e115de108dc93904a8eb4
6
+ metadata.gz: e6fab305784a6362144160c88397c0e1cecf498d91e17848f0dc59b8652d1b0591b14d5aca715ba19e8b77bc471fffa25de62d4eb68565f3d6d6cce4bb660294
7
+ data.tar.gz: 5fd4286bff802d90d94879a7954b961c43141c4a537a693cdce47d31fb371a1c2724b78e7778e6a594e2e4918fd69da57c80d1918bc54cee4c2093756a776149
data/.yardopts CHANGED
@@ -1,6 +1,7 @@
1
1
  --hide-void-return
2
2
  --no-private
3
3
  --verbose
4
+ --title=google-apis-core
4
5
  --markup-provider=redcarpet
5
6
  --markup=markdown
6
7
  --main OVERVIEW.md
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
- ### v0.1.0 (2021-01-01)
3
+ ### 0.2.0 (2021-01-06)
4
+
5
+ * Munge reported client version so backends can recognize split clients
6
+
7
+ ### 0.1.0 (2021-01-01)
4
8
 
5
9
  * Initial release, extracted from google-api-client.
@@ -1,17 +1,20 @@
1
- # Core classes for Google REST Clients
1
+ # Generator for Google REST Clients
2
2
 
3
- This library includes common base classes and dependencies used by legacy REST
4
- clients for Google APIs. It is used by client libraries, but you should not
5
- need to install it by itself.
3
+ This library implements the code generator used by legacy REST clients for
4
+ Google APIs. It automatically generates client gems given discovery documents.
5
+ Google-managed clients for publicly-available APIs are maintained using this
6
+ tool, and users may also use it to generate clients for private or early-access
7
+ APIs.
6
8
 
7
- ## Documentation
9
+ ## Usage
8
10
 
9
- More detailed descriptions of the Google legacy REST clients are available in two documents.
11
+ To generate from a local discovery file:
10
12
 
11
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
12
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
13
+ $ generate-api gen <outdir> --file=<path>
13
14
 
14
- For reference information on specific calls in the clients, see the {Google::Apis class reference docs}.
15
+ A URL can also be specified:
16
+
17
+ $ generate-api gen <outdir> --url=<url>
15
18
 
16
19
  ## License
17
20
 
@@ -60,7 +60,7 @@ module Google
60
60
  # Request body
61
61
  def initialize(method, url, body: nil, client_version: nil)
62
62
  super(method, url, body: body)
63
- self.client_version = client_version || '0.0'
63
+ self.client_version = client_version || Core::VERSION
64
64
  end
65
65
 
66
66
  # Serialize the request body
@@ -151,7 +151,14 @@ module Google
151
151
  .split
152
152
  .find_all { |s| s !~ %r{^gl-ruby/|^gdcl/} }
153
153
  .join(' ')
154
- xgac = "gl-ruby/#{RUBY_VERSION} gdcl/#{client_version}"
154
+ # Report 0.x.y versions that are in separate packages as 1.x.y.
155
+ # Thus, reported gdcl/0.x.y versions are monopackage clients, while
156
+ # reported gdcl/1.x.y versions are split clients.
157
+ # In the unlikely event that we want to release post-1.0 versions of
158
+ # these clients, we should start the versioning at 2.0 to avoid
159
+ # confusion.
160
+ munged_client_version = client_version.sub(/^0\./, "1.")
161
+ xgac = "gl-ruby/#{RUBY_VERSION} gdcl/#{munged_client_version}"
155
162
  xgac = old_xgac.empty? ? xgac : "#{old_xgac} #{xgac}"
156
163
  header.delete_if { |k, v| k.downcase == 'x-goog-api-client' }
157
164
  header['X-Goog-Api-Client'] = xgac
@@ -16,7 +16,7 @@ module Google
16
16
  module Apis
17
17
  module Core
18
18
  # Core version
19
- VERSION = "0.1.0".freeze
19
+ VERSION = "0.2.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-01 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: representable
@@ -178,7 +178,7 @@ licenses:
178
178
  metadata:
179
179
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
180
180
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-core/CHANGELOG.md
181
- documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.1.0
181
+ documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.2.0
182
182
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/google-apis-core
183
183
  post_install_message:
184
184
  rdoc_options: []