Skip to content

Commit 978ec8a

Browse files
chore: re-enable noservice golden for cloud
1 parent 03b2c7f commit 978ec8a

File tree

21 files changed

+185
-133
lines changed

21 files changed

+185
-133
lines changed

gapic-generator-cloud/.toys.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@
4242

4343
def run
4444
set :services, all_service_names(generator: :cloud) if services.empty?
45-
Dir.chdir "#{context_directory}/shared" do
45+
Dir.chdir "#{context_directory}/../shared" do
4646
cmd = ["gen"] + services + verbosity_flags
47-
cmd += ["--generator", generator] if generator
4847
exec_separate_tool cmd
4948
end
5049
end

shared/config/noservice_cloud.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
:gem:
3+
:name: google-cloud-noservice
4+
:api_shortname: noservice
5+
:overrides:
6+
:wrapper_gem_name: google-cloud-noservice-wrapper
7+
:generate_metadata: true

shared/gem_defaults.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ def gem_defaults
143143
"garbage/noservice.proto"
144144
]
145145
},
146+
noservice_cloud: {
147+
protos: [
148+
"garbage/noservice.proto"
149+
],
150+
generator: :cloud
151+
},
146152
googleads: {
147153
protos: [
148154
"google/ads/googleads/v15/services/campaign_service.proto"
458 Bytes
Binary file not shown.

shared/output/cloud/noservice_cloud/.rubocop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ inherit_gem:
33

44
AllCops:
55
Exclude:
6-
- "google-garbage-noservice.gemspec"
6+
- "google-cloud-noservice.gemspec"
77
- "lib/**/*_pb.rb"
88
- "proto_docs/**/*"
99
- "test/**/*"
1010
- "acceptance/**/*"
11+
- "samples/acceptance/**/*"
1112
- "Rakefile"
1213

1314
Layout/LineLength:
@@ -24,6 +25,9 @@ Metrics/ModuleLength:
2425
Enabled: false
2526
Metrics/PerceivedComplexity:
2627
Enabled: false
28+
Naming/AccessorMethodName:
29+
Exclude:
30+
- "snippets/**/*.rb"
2731
Naming/FileName:
2832
Exclude:
29-
- "lib/google-garbage-noservice.rb"
33+
- "lib/google-cloud-noservice.rb"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# frozen_string_literal: true
2+
3+
# Copyright 2025 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18+
19+
toys_version! ">= 0.15.3"
20+
21+
if ENV["RUBY_COMMON_TOOLS"]
22+
common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"]
23+
load File.join(common_tools_dir, "toys", "gapic")
24+
else
25+
load_git remote: "https://github.com/googleapis/ruby-common-tools.git",
26+
path: "toys/gapic",
27+
update: true
28+
end

shared/output/cloud/noservice_cloud/.yardopts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--no-private
2-
--title=Google Garbage Noservice API
2+
--title="Google Cloud Noservice API"
33
--exclude _pb\.rb$
44
--markup markdown
55
--markup-provider redcarpet

shared/output/cloud/noservice_cloud/.yardopts-cloudrad

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
source "https://rubygems.org"
22

33
gemspec
4+
5+
gem "google-style", "~> 1.31.1"
6+
gem "minitest", "~> 5.22"
7+
gem "minitest-focus", "~> 1.4"
8+
gem "minitest-rg", "~> 5.3"
9+
gem "rake", ">= 13.0"
10+
gem "redcarpet", "~> 3.6"
11+
gem "yard", "~> 0.9"

shared/output/cloud/noservice_cloud/README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Ruby Client for the Google Garbage Noservice API
1+
# Ruby Client for the Google Cloud Noservice API
22

3-
API Client library for the Google Garbage Noservice API
3+
API Client library for the Google Cloud Noservice API
44

5-
google-garbage-noservice is the official client library for the Google Garbage Noservice API.
5+
google-cloud-noservice is the official client library for the Google Cloud Noservice API.
66

77
https://github.com/googleapis/google-cloud-ruby
88

99
This gem is a _versioned_ client. It provides basic client classes for a
10-
specific version of the Google Garbage Noservice API. Most users should consider using
10+
specific version of the Google Cloud Noservice API. Most users should consider using
1111
the main client gem,
12-
[google-garbage-noservice-wrapper](https://rubygems.org/gems/google-garbage-noservice-wrapper).
12+
[google-cloud-noservice-wrapper](https://rubygems.org/gems/google-cloud-noservice-wrapper).
1313
See the section below titled *Which client should I use?* for more information.
1414

1515
## Installation
1616

1717
```
18-
$ gem install google-garbage-noservice
18+
$ gem install google-cloud-noservice
1919
```
2020

2121
## Before You Begin
@@ -28,26 +28,31 @@ In order to use this library, you first need to go through the following steps:
2828

2929
## Quick Start
3030

31-
View the [Client Library Documentation](https://googleapis.dev/ruby/google-garbage-noservice/latest)
31+
View the [Client Library Documentation](https://rubydoc.info/gems/google-cloud-noservice)
3232
for class and method documentation.
3333

34+
35+
## Google Cloud Samples
36+
37+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
38+
3439
## Supported Ruby Versions
3540

36-
This library is supported on Ruby 2.5+.
41+
This library is supported on Ruby 3.0+.
3742

3843
Google provides official support for Ruby versions that are actively supported
3944
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
40-
in security maintenance, and not end of life. Currently, this means Ruby 2.5
41-
and later. Older versions of Ruby _may_ still work, but are unsupported and not
42-
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
43-
about the Ruby support schedule.
45+
in security maintenance, and not end of life. Older versions of Ruby _may_
46+
still work, but are unsupported and not recommended. See
47+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
48+
support schedule.
4449

4550
## Which client should I use?
4651

4752
Most modern Ruby client libraries for Google APIs come in two flavors: the main
48-
client library with a name such as `google-garbage-noservice-wrapper`,
53+
client library with a name such as `google-cloud-noservice-wrapper`,
4954
and lower-level _versioned_ client libraries with names such as
50-
`google-garbage-noservice`.
55+
`google-cloud-noservice`.
5156
_In most cases, you should install the main client._
5257

5358
### What's the difference between the main client and a versioned client?
@@ -72,7 +77,7 @@ service version.
7277

7378
We recommend that most users install the main client gem for a service. You can
7479
identify this gem as the one _without_ a version in its name, e.g.
75-
`google-garbage-noservice-wrapper`.
80+
`google-cloud-noservice-wrapper`.
7681
The main client is recommended because it will embody the best practices for
7782
accessing the service, and may also provide more convenient interfaces or
7883
tighter integration into frameworks and third-party libraries. In addition, the
@@ -85,7 +90,7 @@ You can use a versioned client if you are content with a possibly lower-level
8590
class interface, you explicitly want to avoid features provided by the main
8691
client, or you want to access a specific service version not be covered by the
8792
main client. You can identify versioned client gems because the service version
88-
is part of the name, e.g. `google-garbage-noservice`.
93+
is part of the name, e.g. `google-cloud-noservice`.
8994

9095
### What about the google-apis-<name> clients?
9196

0 commit comments

Comments
 (0)