Skip to content

Commit 3cfdda1

Browse files
committed
Check minimal and open-ended latest google-protobuf versions
1 parent 983e9a5 commit 3cfdda1

File tree

5 files changed

+85
-3
lines changed

5 files changed

+85
-3
lines changed

.github/workflows/protobuf_nested_struct_test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
ruby_version: [ruby-3.4, ruby-3.3, ruby-3.2]
19+
ruby: [ruby-3.4, ruby-3.3, ruby-3.2]
20+
gemfile: [Gemfile, Gemfile.google_protobuf_3_25]
2021
steps:
2122
- uses: actions/checkout@v4
2223
with:
2324
fetch-depth: 1
2425
- run: test -e Gemfile.lock
2526
- uses: ruby/setup-ruby@v1
2627
with:
27-
ruby-version: "${{ matrix.ruby_version }}"
28+
ruby-version: "${{ matrix.ruby }}"
2829
bundler-cache: true
2930
- run: bin/rspec
3031
env:
32+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
3133
RUBYOPT: "--enable-frozen-string-literal"

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44

55
gemspec
66

7+
gem "google-protobuf", "~> 4.30"
78
gem "mutant-rspec"
89
gem "rspec"
910
gem "rake"

Gemfile.google_protobuf_3_25

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gemspec
6+
7+
gem "google-protobuf", ">= 3.25.7", "< 4"
8+
gem "mutant-rspec"
9+
gem "rspec"
10+
gem "rake"

Gemfile.google_protobuf_3_25.lock

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
PATH
2+
remote: .
3+
specs:
4+
protobuf_nested_struct (1.2.0)
5+
google-protobuf (>= 3.25.7)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
ast (2.4.3)
11+
diff-lcs (1.6.2)
12+
google-protobuf (3.25.7)
13+
mutant (0.13.1)
14+
diff-lcs (~> 1.3)
15+
parser (~> 3.3.0)
16+
regexp_parser (~> 2.10)
17+
sorbet-runtime (~> 0.5.0)
18+
unparser (~> 0.7.0)
19+
mutant-rspec (0.13.1)
20+
mutant (= 0.13.1)
21+
rspec-core (>= 3.8.0, < 4.0.0)
22+
parser (3.3.8.0)
23+
ast (~> 2.4.1)
24+
racc
25+
racc (1.8.1)
26+
rake (13.2.1)
27+
regexp_parser (2.10.0)
28+
rspec (3.13.0)
29+
rspec-core (~> 3.13.0)
30+
rspec-expectations (~> 3.13.0)
31+
rspec-mocks (~> 3.13.0)
32+
rspec-core (3.13.3)
33+
rspec-support (~> 3.13.0)
34+
rspec-expectations (3.13.4)
35+
diff-lcs (>= 1.2.0, < 2.0)
36+
rspec-support (~> 3.13.0)
37+
rspec-mocks (3.13.4)
38+
diff-lcs (>= 1.2.0, < 2.0)
39+
rspec-support (~> 3.13.0)
40+
rspec-support (3.13.3)
41+
sorbet-runtime (0.5.12087)
42+
unparser (0.7.0)
43+
diff-lcs (~> 1.6)
44+
parser (>= 3.3.0)
45+
46+
PLATFORMS
47+
aarch64-linux
48+
arm64-darwin
49+
ruby
50+
x86-linux
51+
x86_64-darwin
52+
x86_64-linux
53+
54+
DEPENDENCIES
55+
google-protobuf (>= 3.25.7, < 4)
56+
mutant-rspec
57+
protobuf_nested_struct!
58+
rake
59+
rspec
60+
61+
BUNDLED WITH
62+
2.6.9

Gemfile.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ GEM
88
remote: https://rubygems.org/
99
specs:
1010
ast (2.4.3)
11+
bigdecimal (3.1.9)
1112
diff-lcs (1.6.2)
12-
google-protobuf (3.25.7)
13+
google-protobuf (4.30.2-arm64-darwin)
14+
bigdecimal
15+
rake (>= 13)
16+
google-protobuf (4.30.2-x86_64-linux)
17+
bigdecimal
18+
rake (>= 13)
1319
mutant (0.13.1)
1420
diff-lcs (~> 1.3)
1521
parser (~> 3.3.0)
@@ -48,6 +54,7 @@ PLATFORMS
4854
x86_64-linux
4955

5056
DEPENDENCIES
57+
google-protobuf (~> 4.30)
5158
mutant-rspec
5259
protobuf_nested_struct!
5360
rake

0 commit comments

Comments
 (0)