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 +4 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +5 -1
- data/OVERVIEW.md +12 -9
- data/lib/google/apis/core/api_command.rb +9 -2
- data/lib/google/apis/core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e64ec41a6379d9ce79efcb2e1c0f7f787c2949a3492d78453e0851b66f9ce334
|
4
|
+
data.tar.gz: 7bbd36b4eabdf3d64049f72b82baa81a6a0a5ad41b05699def407133bc83f1e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6fab305784a6362144160c88397c0e1cecf498d91e17848f0dc59b8652d1b0591b14d5aca715ba19e8b77bc471fffa25de62d4eb68565f3d6d6cce4bb660294
|
7
|
+
data.tar.gz: 5fd4286bff802d90d94879a7954b961c43141c4a537a693cdce47d31fb371a1c2724b78e7778e6a594e2e4918fd69da57c80d1918bc54cee4c2093756a776149
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -1,17 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# Generator for Google REST Clients
|
2
2
|
|
3
|
-
This library
|
4
|
-
|
5
|
-
|
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
|
-
##
|
9
|
+
## Usage
|
8
10
|
|
9
|
-
|
11
|
+
To generate from a local discovery file:
|
10
12
|
|
11
|
-
|
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
|
-
|
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 ||
|
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
|
-
|
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
|
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.
|
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-
|
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.
|
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: []
|