Skip to content

Commit daa460b

Browse files
feat: Update protobuf to 4.30
feat: Update bazel Ruby to 3.4
1 parent ece4fd2 commit daa460b

15 files changed

Lines changed: 46 additions & 34 deletions

File tree

bazel_example/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1. Make sure you are using Bazel 6.*
2+
2. Or using Bazelisk and `export USE_BAZEL_VERSION=6.*`
3+
14
An example of the gapic-generator-ruby bazel rules usage.
25
Contains separate examples for vanilla gapic-generator usage building a small example library
36
and a gapic-generator-cloud usage building one of the cloud libraries

gapic-generator-ads/Gemfile.lock

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
actionpack (~> 8.0)
66
bigdecimal (~> 3.0)
77
google-cloud-common (~> 1.2)
8-
google-protobuf (~> 3.25, >= 3.25.1)
8+
google-protobuf (~> 4.30)
99
google-style (~> 1.31.0)
1010
googleapis-common-protos-types (~> 1.8)
1111

@@ -58,10 +58,12 @@ GEM
5858
crass (1.0.6)
5959
drb (2.2.1)
6060
erubi (1.13.1)
61-
google-cloud-common (1.8.0)
61+
google-cloud-common (1.9.0)
6262
google-protobuf (>= 3.18, < 5.a)
63-
googleapis-common-protos-types (~> 1.7)
64-
google-protobuf (3.25.7)
63+
googleapis-common-protos-types (~> 1.20)
64+
google-protobuf (4.30.2-x86_64-linux)
65+
bigdecimal
66+
rake (>= 13)
6567
google-style (1.31.0)
6668
rubocop (~> 1.75)
6769
googleapis-common-protos-types (1.20.0)
@@ -112,6 +114,7 @@ GEM
112114
loofah (~> 2.21)
113115
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
114116
rainbow (3.1.1)
117+
rake (13.2.1)
115118
redcarpet (3.6.1)
116119
regexp_parser (2.10.0)
117120
rubocop (1.75.4)

gapic-generator-cloud/Gemfile.lock

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
actionpack (~> 8.0)
66
bigdecimal (~> 3.0)
77
google-cloud-common (~> 1.2)
8-
google-protobuf (~> 3.25, >= 3.25.1)
8+
google-protobuf (~> 4.30)
99
google-style (~> 1.31.0)
1010
googleapis-common-protos-types (~> 1.8)
1111

@@ -58,10 +58,12 @@ GEM
5858
crass (1.0.6)
5959
drb (2.2.1)
6060
erubi (1.13.1)
61-
google-cloud-common (1.8.0)
61+
google-cloud-common (1.9.0)
6262
google-protobuf (>= 3.18, < 5.a)
63-
googleapis-common-protos-types (~> 1.7)
64-
google-protobuf (3.25.7)
63+
googleapis-common-protos-types (~> 1.20)
64+
google-protobuf (4.30.2-x86_64-linux)
65+
bigdecimal
66+
rake (>= 13)
6567
google-style (1.31.0)
6668
rubocop (~> 1.75)
6769
googleapis-common-protos-types (1.20.0)
@@ -112,6 +114,7 @@ GEM
112114
loofah (~> 2.21)
113115
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
114116
rainbow (3.1.1)
117+
rake (13.2.1)
115118
redcarpet (3.6.1)
116119
regexp_parser (2.10.0)
117120
rubocop (1.75.4)

gapic-generator/Gemfile.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PATH
55
actionpack (~> 8.0)
66
bigdecimal (~> 3.0)
77
google-cloud-common (~> 1.2)
8-
google-protobuf (~> 3.25, >= 3.25.1)
8+
google-protobuf (~> 4.30)
99
google-style (~> 1.31.0)
1010
googleapis-common-protos-types (~> 1.8)
1111

@@ -52,10 +52,12 @@ GEM
5252
crass (1.0.6)
5353
drb (2.2.1)
5454
erubi (1.13.1)
55-
google-cloud-common (1.8.0)
55+
google-cloud-common (1.9.0)
5656
google-protobuf (>= 3.18, < 5.a)
57-
googleapis-common-protos-types (~> 1.7)
58-
google-protobuf (3.25.7)
57+
googleapis-common-protos-types (~> 1.20)
58+
google-protobuf (4.30.2-x86_64-linux)
59+
bigdecimal
60+
rake (>= 13)
5961
google-style (1.31.0)
6062
rubocop (~> 1.75)
6163
googleapis-common-protos-types (1.20.0)
@@ -106,6 +108,7 @@ GEM
106108
loofah (~> 2.21)
107109
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
108110
rainbow (3.1.1)
111+
rake (13.2.1)
109112
redcarpet (3.6.1)
110113
regexp_parser (2.10.0)
111114
rubocop (1.75.4)
@@ -147,4 +150,4 @@ DEPENDENCIES
147150
yard (~> 0.9)
148151

149152
BUNDLED WITH
150-
2.6.7
153+
2.6.8

gapic-generator/gapic-generator.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ Gem::Specification.new do |spec|
4444
spec.add_dependency "bigdecimal", "~> 3.0"
4545
spec.add_dependency "googleapis-common-protos-types", "~> 1.8"
4646
spec.add_dependency "google-cloud-common", "~> 1.2"
47-
spec.add_dependency "google-protobuf", "~> 3.25", ">= 3.25.1"
47+
spec.add_dependency "google-protobuf", "~> 4.30"
4848
spec.add_dependency "google-style", "~> 1.31.0"
4949
end

gapic-generator/test/gapic/presenters/snippet/expression_presenter_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def test_complex
9393
presenter = build_expression_presenter json
9494
expected = [
9595
"{",
96-
" age: 21,",
9796
" id: my_id,",
97+
" age: 21,",
9898
' name: "Jane Doe"',
9999
"}"
100100
]
@@ -133,8 +133,8 @@ def test_complex_nested
133133
"{",
134134
" id: my_id,",
135135
" stats: {",
136-
' hair: "black",',
137-
' eyes: "brown"',
136+
' eyes: "brown",',
137+
' hair: "black"',
138138
" },",
139139
' name: "Jane Doe"',
140140
"}"

rules_ruby_gapic/gapic-generator-ads/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def gapic_generator_ads_repositories():
2626
# Create the ruby runtime
2727
ruby_runtime(
2828
name = "gapic_generator_ads_ruby_runtime",
29-
urls = ["https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.8.tar.gz"],
30-
strip_prefix = "ruby-3.2.8",
29+
urls = ["https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.3.tar.gz"],
30+
strip_prefix = "ruby-3.4.3",
3131
prebuilt_rubys = [
32-
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.2.8_glinux_x86_64.tar.gz",
32+
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.4.3_glinux_x86_64.tar.gz",
3333
],
3434
gemfile_lock = "@gapic_generator_ruby//:gapic-generator-ads/Gemfile.lock",
3535
gems_to_install = {},

rules_ruby_gapic/gapic-generator-cloud/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def gapic_generator_cloud_repositories():
2222
# Create the ruby runtime
2323
ruby_runtime(
2424
name = "gapic_generator_cloud_ruby_runtime",
25-
urls = ["https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.8.tar.gz"],
26-
strip_prefix = "ruby-3.2.8",
25+
urls = ["https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.3.tar.gz"],
26+
strip_prefix = "ruby-3.4.3",
2727
prebuilt_rubys = [
28-
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.2.8_glinux_x86_64.tar.gz",
28+
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.4.3_glinux_x86_64.tar.gz",
2929
],
3030
gemfile_lock = "@gapic_generator_ruby//:gapic-generator-cloud/Gemfile.lock",
3131
gems_to_install = {},

rules_ruby_gapic/gapic-generator/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def gapic_generator_repositories():
2626
# Create the ruby runtime
2727
ruby_runtime(
2828
name = "gapic_generator_ruby_runtime",
29-
urls = ["https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.8.tar.gz"],
30-
strip_prefix = "ruby-3.2.8",
29+
urls = ["https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.3.tar.gz"],
30+
strip_prefix = "ruby-3.4.3",
3131
prebuilt_rubys = [
32-
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.2.8_glinux_x86_64.tar.gz",
32+
"@gapic_generator_ruby//rules_ruby_gapic:prebuilt/ruby-3.4.3_glinux_x86_64.tar.gz",
3333
],
3434
gemfile_lock = "@gapic_generator_ruby//:gapic-generator/Gemfile.lock",
3535
gems_to_install = {},

rules_ruby_gapic/prebuilt/pack_prebuilt_ruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# A script demonstrating how to pack a ruby_runtime prebuild
18-
VERSION="3.2.8"
18+
VERSION="3.4.3"
1919

2020
mkdir -p /tmp/pack_prebuilt_ruby/ruby-${VERSION}
2121
rm -rf /tmp/pack_prebuilt_ruby/ruby-${VERSION}/*

0 commit comments

Comments
 (0)