Skip to content

Commit

Permalink
Move to googleapis organization (#2461)
Browse files Browse the repository at this point in the history
* Use new github org documentation URL
* Use new github org name
* Move documentation links to HTTPS
* Update synth scripts to use new github org
  • Loading branch information
blowmage committed Sep 19, 2018
1 parent ff1961d commit 7752b40
Show file tree
Hide file tree
Showing 179 changed files with 910 additions and 580 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Expand Up @@ -4,7 +4,7 @@ jobs:
test-ruby-2.5:
docker:
- image: circleci/ruby:2.5.1-stretch
working_directory: ~/GoogleCloudPlatform/google-cloud-ruby
working_directory: ~/googleapis/google-cloud-ruby
shell: /bin/bash --login -eo pipefail
steps:
- checkout
Expand All @@ -16,7 +16,7 @@ jobs:
test-ruby-2.4:
docker:
- image: circleci/ruby:2.4.4-stretch
working_directory: ~/GoogleCloudPlatform/google-cloud-ruby
working_directory: ~/googleapis/google-cloud-ruby
shell: /bin/bash --login -eo pipefail
steps:
- checkout
Expand All @@ -28,7 +28,7 @@ jobs:
test-ruby-2.3:
docker:
- image: circleci/ruby:2.3.7-stretch
working_directory: ~/GoogleCloudPlatform/google-cloud-ruby
working_directory: ~/googleapis/google-cloud-ruby
shell: /bin/bash --login -eo pipefail
steps:
- checkout
Expand All @@ -40,7 +40,7 @@ jobs:
post:
docker:
- image: circleci/ruby:2.5.1-stretch
working_directory: ~/GoogleCloudPlatform/google-cloud-ruby
working_directory: ~/googleapis/google-cloud-ruby
shell: /bin/bash --login -eo pipefail
steps:
- checkout
Expand All @@ -50,7 +50,7 @@ jobs:
- run: bundle exec rake circleci:post

release:
working_directory: ~/GoogleCloudPlatform/google-cloud-ruby
working_directory: ~/googleapis/google-cloud-ruby
shell: /bin/bash --login -eo pipefail
docker:
- image: circleci/ruby:2.5.1-stretch
Expand Down
4 changes: 2 additions & 2 deletions AUTHENTICATION.md
Expand Up @@ -13,7 +13,7 @@ recommended during development.

General instructions, environment variables, and configuration options are
covered in the general [Authentication
guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/authentication)
guide](https://googleapis.github.io/google-cloud-ruby/docs/authentication)
for the `google-cloud` umbrella package. Specific instructions and environment
variables for each individual service are linked from the README documents
listed below for each service.
Expand Down Expand Up @@ -96,7 +96,7 @@ To configure your system for this, simply:
## Troubleshooting

If you're having trouble authenticating open a [Github
Issue](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues/new?title=Authentication+question)
Issue](https://github.com/googleapis/google-cloud-ruby/issues/new?title=Authentication+question)
to get help. Also consider searching or asking
[questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
on [StackOverflow](http://stackoverflow.com).
68 changes: 34 additions & 34 deletions README.md

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions RELEASING.md
Expand Up @@ -12,9 +12,9 @@ placeholders shown in the examples below with the appropriate numbers, e.g.
name of the package, e.g. `google-cloud-datastore`.

After all [pull
requests](https://github.com/GoogleCloudPlatform/google-cloud-ruby/pulls) for a
requests](https://github.com/googleapis/google-cloud-ruby/pulls) for a
release have been merged and all Kokoro and [Circle CI
builds](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-ruby) are
builds](https://circleci.com/gh/googleapis/google-cloud-ruby) are
green, you may create a release as follows:

1. If you haven't already, switch to the master branch, ensure that you have no
Expand Down Expand Up @@ -68,7 +68,7 @@ green, you may create a release as follows:
`.gemspec` file, changing the value to your new version number.

9. If your package is new, ensure that it has been added to the [top-level
`Gemfile`](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/google-cloud/v0.52.0/Gemfile).
`Gemfile`](https://github.com/googleapis/google-cloud-ruby/blob/google-cloud/v0.52.0/Gemfile).
Follow the steps in [Adding a new gem to
meta-packages](#adding-a-new-gem-to-meta-packages), below.

Expand All @@ -85,7 +85,7 @@ green, you may create a release as follows:

11. If your package is new, ensure that a nav link and a main entry including
code example have been added to the [top-level
README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/google-cloud/v0.52.0/README.md).
README](https://github.com/googleapis/google-cloud-ruby/blob/google-cloud/v0.52.0/README.md).

12. In the root directory of the project, test that all the version dependencies
are correct.
Expand All @@ -109,19 +109,19 @@ green, you may create a release as follows:
```

15. Push the tag. This will trigger a build job on [Circle
CI](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-ruby).
CI](https://circleci.com/gh/googleapis/google-cloud-ruby).

```sh
$ git push <remote> <gem>/v<version>
```

16. Wait until the [Circle CI
build](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-ruby) has
build](https://circleci.com/gh/googleapis/google-cloud-ruby) has
passed for the tag.

17. Confirm that the new version is displayed on the [google-cloud-ruby gh-pages
doc
site](https://http://googlecloudplatform.github.io/google-cloud-ruby/docs/).
site](https://https://googleapis.github.io/google-cloud-ruby/docs/).

If the gh-pages doc site has not been updated, inspect the build logs to
confirm that the release task completed successfully, and that the docs
Expand All @@ -132,9 +132,9 @@ green, you may create a release as follows:
[RubyGems.org](https://rubygems.org/gems/google-cloud).

19. On the [google-cloud-ruby releases
page](https://github.com/GoogleCloudPlatform/google-cloud-ruby/releases),
page](https://github.com/googleapis/google-cloud-ruby/releases),
click [Draft a new
release](https://github.com/GoogleCloudPlatform/google-cloud-ruby/releases/new).
release](https://github.com/googleapis/google-cloud-ruby/releases/new).
Complete the form. Include the bullet-point lists of the major and minor
changes from the gem's `CHANGELOG.md`. You can also add examples, fixes,
thank yous, and anything else helpful or relevant. See google-cloud-node
Expand All @@ -153,7 +153,7 @@ green, you may create a release as follows:

24. Wait until the last tag build job has successfully completed on Circle CI.
Then push your commits to the master branch. This will trigger another
[Circle CI](https://circleci.com/gh/GoogleCloudPlatform/google-cloud-ruby)
[Circle CI](https://circleci.com/gh/googleapis/google-cloud-ruby)
build on master branch.

```sh
Expand All @@ -162,9 +162,9 @@ green, you may create a release as follows:

25. After the Circle CI master branch build has successfully completed, confirm
that Kokoro and [Travis CI (Mac OS
X)](https://travis-ci.org/GoogleCloudPlatform/google-cloud-ruby) and
X)](https://travis-ci.org/googleapis/google-cloud-ruby) and
[Appveyor CI
(Windows)](https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-ruby)
(Windows)](https://ci.appveyor.com/project/googleapis/google-cloud-ruby)
master branch builds are also green.

High fives all around!
Expand All @@ -176,8 +176,8 @@ There are extra steps required to add a new package to the `google-cloud` and/or
gem.

1. Add the gem to
[`google-cloud/Gemfile`](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/google-cloud/v0.52.0/google-cloud/Gemfile).
[`google-cloud/Gemfile`](https://github.com/googleapis/google-cloud-ruby/blob/google-cloud/v0.52.0/google-cloud/Gemfile).
2. Add the gem to
[`google-cloud/google-cloud.gemspec`](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/google-cloud/v0.52.0/google-cloud/google-cloud.gemspec).
[`google-cloud/google-cloud.gemspec`](https://github.com/googleapis/google-cloud-ruby/blob/google-cloud/v0.52.0/google-cloud/google-cloud.gemspec).
3. Add the gem to
[`gcloud/Gemfile`](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/google-cloud/v0.52.0/gcloud/Gemfile).
[`gcloud/Gemfile`](https://github.com/googleapis/google-cloud-ruby/blob/google-cloud/v0.52.0/gcloud/Gemfile).
14 changes: 7 additions & 7 deletions gcloud/README.md
Expand Up @@ -5,11 +5,11 @@
The current `gcloud` gem exists only to facilitate the timely transition of
legacy code from the deprecated `Gcloud` namespace to the new `Google::Cloud`
namespace. Please see the [GitHub
repository](https://github.com/GoogleCloudPlatform/google-cloud-ruby) for more
repository](https://github.com/googleapis/google-cloud-ruby) for more
information about using the `google-cloud` umbrella gem and the individual
service gems.

- [gcloud API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/docs/gcloud/latest)
- [gcloud API documentation](https://googleapis.github.io/google-cloud-ruby/docs/gcloud/latest)
- [gcloud on RubyGems](https://rubygems.org/gems/gcloud)

## Quick Start
Expand All @@ -21,7 +21,7 @@ $ gem install gcloud
## Authentication

Instructions and configuration options are covered in the [Authentication
Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/gcloud/latest/file.AUTHENTICATION).
Guide](https://googleapis.github.io/google-cloud-ruby/docs/gcloud/latest/file.AUTHENTICATION).

## Example

Expand Down Expand Up @@ -60,23 +60,23 @@ change at any time and the public API should not be considered stable.
Contributions to this library are always welcome and highly encouraged.

See the [Contributing
Guide](https://googlecloudplatform.github.io/google-cloud-ruby/docs/gcloud/latest/file.CONTRIBUTING)
Guide](https://googleapis.github.io/google-cloud-ruby/docs/gcloud/latest/file.CONTRIBUTING)
for more information on how to get started.

Please note that this project is released with a Contributor Code of Conduct. By
participating in this project you agree to abide by its terms. See [Code of
Conduct](https://googlecloudplatform.github.io/google-cloud-ruby/docs/gcloud/latest/file.CODE_OF_CONDUCT)
Conduct](https://googleapis.github.io/google-cloud-ruby/docs/gcloud/latest/file.CODE_OF_CONDUCT)
for more information.

## License

This library is licensed under Apache 2.0. Full license text is available in
[LICENSE](https://googlecloudplatform.github.io/google-cloud-ruby/docs/gcloud/latest/file.LICENSE).
[LICENSE](https://googleapis.github.io/google-cloud-ruby/docs/gcloud/latest/file.LICENSE).

## Support

Please [report bugs at the project on
Github](https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues). Don't
Github](https://github.com/googleapis/google-cloud-ruby/issues). Don't
hesitate to [ask
questions](http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby)
about the client or APIs on [StackOverflow](http://stackoverflow.com).
2 changes: 1 addition & 1 deletion gcloud/gcloud.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
gem.email = ["mike@blowmage.com", "quartzmo@gmail.com"]
gem.description = "gcloud is the legacy support library for the new google-cloud library."
gem.summary = "API Client library for Google Cloud"
gem.homepage = "https://github.com/GoogleCloudPlatform/google-cloud-ruby/tree/master/gcloud"
gem.homepage = "https://github.com/googleapis/google-cloud-ruby/tree/master/gcloud"
gem.license = "Apache-2.0"

gem.files = `git ls-files -- lib/*`.split("\n") +
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-asset/README.md
@@ -1,4 +1,4 @@
# Ruby Client for Cloud Asset API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
# Ruby Client for Cloud Asset API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))

[Cloud Asset API][Product Documentation]:
The cloud asset API manages the history and inventory of cloud resources.
Expand All @@ -12,7 +12,7 @@ steps:
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
3. [Enable the Cloud Asset API.](https://console.cloud.google.com/apis/library/asset.googleapis.com)
4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)

### Installation
```
Expand All @@ -24,17 +24,17 @@ $ gem install google-cloud-asset
to see other available methods on the client.
- Read the [Cloud Asset API Product documentation][Product Documentation]
to learn more about the product and see How-to Guides.
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
to see the full list of Cloud APIs that we cover.

[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-asset/latest/google/cloud/asset/v1beta1
[Client Library Documentation]: https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-asset/latest/google/cloud/asset/v1beta1
[Product Documentation]: https://cloud.google.com/asset

## Enabling Logging

To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.

Expand Down
8 changes: 4 additions & 4 deletions google-cloud-asset/lib/google/cloud/asset.rb
Expand Up @@ -21,7 +21,7 @@ module Cloud
# rubocop:disable LineLength

##
# # Ruby Client for Cloud Asset API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
# # Ruby Client for Cloud Asset API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
#
# [Cloud Asset API][Product Documentation]:
# The cloud asset API manages the history and inventory of cloud resources.
Expand All @@ -34,7 +34,7 @@ module Cloud
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
# 3. [Enable the Cloud Asset API.](https://console.cloud.google.com/apis/library/asset.googleapis.com)
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
#
# ### Installation
# ```
Expand All @@ -44,7 +44,7 @@ module Cloud
# ### Next Steps
# - Read the [Cloud Asset API Product documentation][Product Documentation]
# to learn more about the product and see How-to Guides.
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
# to see the full list of Cloud APIs that we cover.
#
# [Product Documentation]: https://cloud.google.com/asset
Expand All @@ -53,7 +53,7 @@ module Cloud
#
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
#
Expand Down
8 changes: 4 additions & 4 deletions google-cloud-asset/lib/google/cloud/asset/v1beta1.rb
Expand Up @@ -21,7 +21,7 @@ module Asset
# rubocop:disable LineLength

##
# # Ruby Client for Cloud Asset API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-ruby#versioning))
# # Ruby Client for Cloud Asset API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
#
# [Cloud Asset API][Product Documentation]:
# The cloud asset API manages the history and inventory of cloud resources.
Expand All @@ -34,7 +34,7 @@ module Asset
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
# 3. [Enable the Cloud Asset API.](https://console.cloud.google.com/apis/library/asset.googleapis.com)
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
# 4. [Setup Authentication.](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
#
# ### Installation
# ```
Expand All @@ -44,7 +44,7 @@ module Asset
# ### Next Steps
# - Read the [Cloud Asset API Product documentation][Product Documentation]
# to learn more about the product and see How-to Guides.
# - View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/README.md)
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
# to see the full list of Cloud APIs that we cover.
#
# [Product Documentation]: https://cloud.google.com/asset
Expand All @@ -53,7 +53,7 @@ module Asset
#
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
# or a [`Google::Cloud::Logging::Logger`](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.github.io/google-cloud-ruby/#/docs/google-cloud-logging/latest/google/cloud/logging/logger)
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
#
Expand Down
18 changes: 18 additions & 0 deletions google-cloud-asset/synth.py
Expand Up @@ -73,3 +73,21 @@ def escape_braces(match):
'lib/**/*.rb',
'\\A(((#[^\n]*)?\n)*# (Copyright \\d+|Generated by the protocol buffer compiler)[^\n]+\n(#[^\n]*\n)*\n)([^\n])',
'\\1\n\\6')

# https://github.com/googleapis/gapic-generator/issues/2323
s.replace(
[
'lib/**/*.rb',
'README.md'
],
'https://github\\.com/GoogleCloudPlatform/google-cloud-ruby',
'https://github.com/googleapis/google-cloud-ruby'
)
s.replace(
[
'lib/**/*.rb',
'README.md'
],
'https://googlecloudplatform\\.github\\.io/google-cloud-ruby',
'https://googleapis.github.io/google-cloud-ruby'
)

0 comments on commit 7752b40

Please sign in to comment.