From 18ffeb71f9433cb6f82b2ddccb9e11d553be4cdc Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 18 Aug 2020 10:51:33 -0700 Subject: [PATCH] Updates the gapic-generator-ruby import to the latest version using bundler. PiperOrigin-RevId: 327261444 --- WORKSPACE | 6 +++--- repository_rules.bzl | 12 ++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 5743e5e4..186f0956 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -331,9 +331,9 @@ gapic_generator_csharp_repositories() http_archive( name = "gapic_generator_ruby", - sha256 = "674d5689b4751c5a135b8bf05fb457a04a7ac5fb0c5eda29c09679dd61892b0a", - urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/gapic-generator/v0.6.7.zip"], - strip_prefix = "gapic-generator-ruby-gapic-generator-v0.6.7", + #sha256 = "432f708c7107a8dffcf293af03df2114e5072abb57beb04423561603ee91b432", + urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/9cc95d8f4e05bdfe4ea9c67e6ca670f27c01c8f2.zip"], + strip_prefix = "gapic-generator-ruby-9cc95d8f4e05bdfe4ea9c67e6ca670f27c01c8f2", ) load("@gapic_generator_ruby//rules_ruby_gapic:repositories.bzl", "gapic_generator_ruby_repositories") diff --git a/repository_rules.bzl b/repository_rules.bzl index 7bbcb887..2862883e 100644 --- a/repository_rules.bzl +++ b/repository_rules.bzl @@ -257,16 +257,24 @@ def switched_rules_by_language( # rules["ruby_proto_library"] = _switch( ruby, - "@com_google_api_codegen//rules_gapic/ruby:ruby_gapic.bzl", + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", ) rules["ruby_grpc_library"] = _switch( ruby and grpc, - "@com_google_api_codegen//rules_gapic/ruby:ruby_gapic.bzl", + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", ) rules["ruby_gapic_library"] = _switch( ruby and grpc and gapic, "@com_google_api_codegen//rules_gapic/ruby:ruby_gapic.bzl", ) + rules["ruby_ads_gapic_library"] = _switch( + ruby and grpc and gapic, + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + ) + rules["ruby_cloud_gapic_library"] = _switch( + ruby and grpc and gapic, + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + ) rules["ruby_gapic_assembly_pkg"] = _switch( ruby and grpc and gapic, "@com_google_api_codegen//rules_gapic/ruby:ruby_gapic_pkg.bzl",