-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Move gapic-common here from the gapic-generator-ruby repo (#18)
- Loading branch information
Showing
102 changed files
with
12,293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.DS_STORE | ||
.bundle/ | ||
/.yardoc | ||
/Gemfile.lock | ||
/_yardoc/ | ||
/doc/ | ||
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
*.bundle | ||
*.so | ||
*.o | ||
*.a | ||
mkmf.log | ||
vendor | ||
*~ | ||
.idea | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
inherit_gem: | ||
google-style: google-style.yml | ||
|
||
AllCops: | ||
Exclude: | ||
- "test/**/*" | ||
|
||
Metrics/ClassLength: | ||
Max: 200 | ||
|
||
Metrics/CyclomaticComplexity: | ||
Max: 15 | ||
|
||
Metrics/MethodLength: | ||
Max: 30 | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 15 | ||
|
||
Naming/AccessorMethodName: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
Exclude: | ||
- "lib/gapic-common.rb" | ||
|
||
Style/Documentation: | ||
Exclude: | ||
- "lib/gapic/grpc/service_stub/rpc_call.rb" | ||
- "lib/gapic/grpc/status_details.rb" | ||
|
||
Style/CaseEquality: | ||
Exclude: | ||
- "lib/gapic/config.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
expand :rubocop, bundler: true | ||
|
||
expand :minitest do |t| | ||
t.libs = ["lib", "test"] | ||
t.files = ["test/**/*_test.rb"] | ||
t.bundler = true | ||
end | ||
|
||
expand :yardoc do |t| | ||
t.generate_output_flag = true | ||
t.fail_on_warning = true | ||
t.fail_on_undocumented_objects = false # TODO: Fix so this can be enabled | ||
t.bundler = true | ||
end | ||
alias_tool :yard, :yardoc | ||
|
||
expand :gem_build | ||
|
||
expand :gem_build, name: "install", install_gem: true | ||
|
||
tool "ci" do | ||
include :exec, e: true | ||
include :terminal | ||
|
||
def run | ||
puts "Running rubocop...", :bold | ||
exec_tool ["rubocop"] + verbosity_flags | ||
puts "Running tests...", :bold | ||
exec_tool ["test"] + verbosity_flags | ||
puts "Running yard...", :bold | ||
exec_tool ["yardoc"] + verbosity_flags | ||
end | ||
end | ||
|
||
tool "irb" do | ||
include :bundler | ||
|
||
def run | ||
require "irb" | ||
require "irb/completion" | ||
|
||
ARGV.clear | ||
IRB.start | ||
end | ||
end | ||
|
||
tool "fixtures" do | ||
include :exec, e: true | ||
include :bundler | ||
|
||
def run | ||
Dir.chdir context_directory | ||
cmd = [ | ||
"grpc_tools_ruby_protoc", | ||
"--ruby_out=test/fixtures", | ||
"-I", "test/fixtures" | ||
] | ||
cmd += Dir.glob "*.proto", base: "test/fixtures" | ||
exec cmd | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--no-private | ||
--title=GAPIC common library | ||
--markup markdown | ||
--markup-provider redcarpet | ||
--main README.md | ||
|
||
./lib/**/*.rb | ||
- | ||
CONTRIBUTING.md | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
LICENSE | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
# Release History | ||
|
||
### 0.24.0 (2024-12-05) | ||
|
||
#### Features | ||
|
||
* Log requests and responses ([#1112](https://github.com/googleapis/gapic-generator-ruby/issues/1112)) | ||
#### Bug Fixes | ||
|
||
* Hardened deadline determination against Time.now hacking ([#942](https://github.com/googleapis/gapic-generator-ruby/issues/942)) | ||
|
||
### 0.23.0 (2024-10-15) | ||
|
||
#### Features | ||
|
||
* Disable universe domain check if credentials include an explicit request to do so ([#1119](https://github.com/googleapis/gapic-generator-ruby/issues/1119)) | ||
|
||
### 0.22.0 (2024-07-17) | ||
|
||
#### Features | ||
|
||
* Support for google-protobuf 4.x | ||
* Requires at least Ruby 3.0 | ||
|
||
### 0.21.2 (2024-07-02) | ||
|
||
#### Bug Fixes | ||
|
||
* Start requiring ostruct in generated test helper files ([#1065](https://github.com/googleapis/gapic-generator-ruby/issues/1065)) | ||
|
||
### 0.21.1 (2023-12-14) | ||
|
||
#### Bug Fixes | ||
|
||
* add missing module import for universe_domain_concerns ([#1016](https://github.com/googleapis/gapic-generator-ruby/issues/1016)) | ||
|
||
### 0.21.0 (2023-12-13) | ||
|
||
#### Features | ||
|
||
* Drop support for Ruby 2.6 ([#1009](https://github.com/googleapis/gapic-generator-ruby/issues/1009)) | ||
* Honor universe domain in stubs ([#1008](https://github.com/googleapis/gapic-generator-ruby/issues/1008)) | ||
|
||
### 0.20.0 (2023-08-31) | ||
|
||
#### Features | ||
|
||
* Add channel pooling for gapic clients ([#969](https://github.com/googleapis/gapic-generator-ruby/issues/969)) | ||
* Add LRU hash ([#970](https://github.com/googleapis/gapic-generator-ruby/issues/970)) | ||
#### Documentation | ||
|
||
* Minor fixes to YARD documentation links and parameters ([#959](https://github.com/googleapis/gapic-generator-ruby/issues/959)) | ||
|
||
### 0.19.1 (2023-05-30) | ||
|
||
#### Bug Fixes | ||
|
||
* Fixed handling of optional fields in coerce ([#954](https://github.com/googleapis/gapic-generator-ruby/issues/954)) | ||
|
||
### 0.19.0 (2023-05-26) | ||
|
||
#### Features | ||
|
||
* Compatibility with protobuf v23 generated map fields ([#948](https://github.com/googleapis/gapic-generator-ruby/issues/948)) | ||
|
||
### 0.18.0 (2023-02-27) | ||
|
||
#### Features | ||
|
||
* add alias for details field in Rest Error ([#928](https://github.com/googleapis/gapic-generator-ruby/issues/928)) | ||
|
||
### 0.17.1 (2023-02-09) | ||
|
||
#### Bug Fixes | ||
|
||
* add new class to the rest imports ([#913](https://github.com/googleapis/gapic-generator-ruby/issues/913)) | ||
|
||
### 0.17.0 (2023-02-09) | ||
|
||
#### Features | ||
|
||
* add a transport operation class in Rest ([#911](https://github.com/googleapis/gapic-generator-ruby/issues/911)) | ||
|
||
### 0.16.0 (2022-12-12) | ||
|
||
#### Features | ||
|
||
* custom regapic exception wrapping ([#866](https://github.com/googleapis/gapic-generator-ruby/issues/866)) | ||
|
||
### 0.15.1 (2022-11-18) | ||
|
||
#### Bug Fixes | ||
|
||
* Fixed uninitialized constant when checking retry policy for a REST call ([#857](https://github.com/googleapis/gapic-generator-ruby/issues/857)) | ||
|
||
### 0.15.0 (2022-11-17) | ||
|
||
#### Features | ||
|
||
* retry policy now works for REST calls | ||
|
||
### 0.14.0 (2022-11-08) | ||
|
||
#### Features | ||
|
||
* add support for different types of credentials to REST | ||
#### Bug Fixes | ||
|
||
* deadlock fix ([#845](https://github.com/googleapis/gapic-generator-ruby/issues/845)) | ||
|
||
### 0.13.0 (2022-10-26) | ||
|
||
#### Features | ||
|
||
* Implement server-side streaming support for REST calls in gapic-common ([#826](https://github.com/googleapis/gapic-generator-ruby/issues/826)) | ||
|
||
### 0.12.0 (2022-09-15) | ||
|
||
#### Features | ||
|
||
* Support numeric_enums in the ClientStub ([#817](https://github.com/googleapis/gapic-generator-ruby/issues/817)) | ||
* parse details information from REST errors ([#815](https://github.com/googleapis/gapic-generator-ruby/issues/815)) | ||
* send protobuf version in headers ([#816](https://github.com/googleapis/gapic-generator-ruby/issues/816)) | ||
|
||
#### Bug Fixes | ||
|
||
* rewrap certain grpc errors ([#810](https://github.com/googleapis/gapic-generator-ruby/issues/810)) | ||
This will rewrap some GRPC::Unavailable errors that were caused by authentication failing as Gapic::GRPC::AuthorizationError which inherits from ::GRPC::Unauthenticated | ||
|
||
### 0.11.1 (2022-08-03) | ||
|
||
#### Bug Fixes | ||
|
||
* error code of 0 is not an error, body template field can be nil ([#805](https://github.com/googleapis/gapic-generator-ruby/issues/805)) | ||
|
||
### 0.11.0 (2022-07-27) | ||
|
||
#### Features | ||
|
||
* Add CallOptions#merge and CallOptions equality checking ([#802](https://github.com/googleapis/gapic-generator-ruby/issues/802)) | ||
|
||
#### Bug Fixes | ||
|
||
* transcoder should always preserve slashes ([#795](https://github.com/googleapis/gapic-generator-ruby/issues/795)) | ||
|
||
### 0.10.0 (2022-06-20) | ||
|
||
#### Features | ||
|
||
* Require at least Ruby 2.6 | ||
* Support faraday 2.0 | ||
#### Bug Fixes | ||
|
||
* Fix precision issues in protobuf timestamp conversion | ||
* Fix some Ruby 3.0 keyword argument usage errors | ||
|
||
### 0.9.0 (2022-05-18) | ||
|
||
#### Features | ||
|
||
* add full grpc transcoding to gapic-common | ||
#### Bug Fixes | ||
|
||
* small fixes for combined libraries and testing | ||
|
||
### 0.8.0 / 2022-01-20 | ||
|
||
* Add generic LROs helpers. These are used for the Nonstandard (not conforming to AIP-151) Cloud LROs. | ||
|
||
### 0.7.0 / 2021-08-03 | ||
|
||
* Require googleauth 0.17 for proper support of JWT credentials with custom scopes | ||
|
||
### 0.6.0 / 2021-07-22 | ||
|
||
* Added helper for REST pagination | ||
|
||
### 0.5.0 / 2021-06-15 | ||
|
||
* Provide a way to create `x-goog-api-client` headers with rest library version and/or without grpc library version | ||
|
||
### 0.4.3 / 2021-06-10 | ||
|
||
* Fix file permissions. | ||
|
||
### 0.4.2 / 2021-06-07 | ||
|
||
* Expand googleauth dependency to include 1.x | ||
* Add a REST PUT method helper to Gapic::Rest. | ||
|
||
### 0.4.1 / 2021-04-15 | ||
|
||
* Provide a default value for the 'body' in the REST POST method in Gapic::Rest. | ||
|
||
### 0.4.0 / 2021-02-23 | ||
|
||
* Support for the REST calls via the Gapic::Rest::ClientStub and other classes in Gapic::Rest | ||
REST support is still being developed. Notably the full retries handling is not implemented yet. | ||
|
||
### 0.3.4 / 2020-08-07 | ||
|
||
* Support the :this_channel_is_insecure gRPC pseudo-credential, used by tests and emulators. | ||
|
||
### 0.3.3 / 2020-08-05 | ||
|
||
* Retry configs properly handle error name strings. | ||
|
||
### 0.3.2 / 2020-07-30 | ||
|
||
* Alias PagedEnumerable#next_page to PagedEnumerable#next_page! | ||
|
||
### 0.3.1 / 2020-06-19 | ||
|
||
* Fix file permissions | ||
|
||
### 0.3.0 / 2020-06-18 | ||
|
||
* Update the dependency on google-protobuf to 3.12.2 | ||
|
||
### 0.2.1 / 2020-06-02 | ||
|
||
* Fix a crash when resetting a config field to nil when it has a parent but no default | ||
|
||
### 0.2.0 / 2020-03-17 | ||
|
||
* Support default call options in Gapic::Operation | ||
* Fix implicit kwarg warnings under Ruby 2.7 | ||
|
||
### 0.1.0 / 2020-01-09 | ||
|
||
Initial release |
Oops, something went wrong.