Skip to content

Commit 51c6fa4

Browse files
committed
feat!: support ruby 4.0, drop ruby 3.1 support
Signed-off-by: Chad Wilson <29788154+chadlwilson@users.noreply.github.com>
1 parent 8fb9284 commit 51c6fa4

6 files changed

Lines changed: 33 additions & 40 deletions

File tree

.github/workflows/release-on-pr-merge.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ jobs:
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
ruby-version: 3.4
18+
ruby-version: '4.0'
1919

2020
- name: Setup git
2121
run: |
2222
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
2323
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
2424
2525
- name: create packages
26-
run: |
27-
bundle install
28-
bundle exec rake package_all
26+
run: bundle exec rake package_all
2927

3028
- name: Release on github
3129
run: |

.github/workflows/tests.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,20 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest]
17-
ruby_version: ['3.1', '3.2', '3.3', '3.4']
17+
ruby_version: ['3.2', '3.3', '3.4', '4.0']
1818
fail-fast: false
1919

2020
steps:
2121

2222
- uses: actions/checkout@v6
2323

24-
- name: debug
25-
run: |
26-
node -e "console.log(JSON.stringify(process.env, null, ' '))"
27-
2824
- name: Set up Ruby ${{ matrix.ruby_version }}
2925
uses: ruby/setup-ruby@v1
3026
with:
3127
ruby-version: ${{ matrix.ruby_version }}
3228

3329
- name: Run tests
34-
run: |
35-
bundle install
36-
bundle exec rake spec
30+
run: bundle exec rake spec
3731

3832
fts:
3933
name: Run FTs on ${{ matrix.ruby_version }} + ${{ matrix.os }}
@@ -42,7 +36,7 @@ jobs:
4236
strategy:
4337
matrix:
4438
os: [windows-latest, ubuntu-latest, macos-latest]
45-
ruby_version: ['3.1', '3.2', '3.3', '3.4']
39+
ruby_version: ['3.2', '3.3', '3.4', '4.0']
4640
fail-fast: false
4741

4842
steps:
@@ -69,6 +63,7 @@ jobs:
6963
with:
7064
ruby-version: ${{ matrix.ruby_version }}
7165

66+
7267
- name: Set up Go
7368
uses: actions/setup-go@v6
7469
with:
@@ -121,7 +116,7 @@ jobs:
121116
strategy:
122117
matrix:
123118
os: [ubuntu-latest, windows-latest]
124-
ruby_version: ['3.1', '3.2', '3.3', '3.4']
119+
ruby_version: ['3.2', '3.3', '3.4', '4.0']
125120
fail-fast: false
126121

127122
steps:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ group :development, :test do
88
gem 'yard'
99
gem 'simplecov', :require => false
1010
gem 'method_source'
11-
gem 'rubyzip', ">= 1.2.2"
11+
gem 'rubyzip'
1212
end

Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PATH
22
remote: .
33
specs:
4-
gauge-ruby (0.9.7)
5-
grpc (>= 1.74.0, < 2.0)
6-
parser (>= 3.1, < 4.0)
7-
unparser (>= 0.6.4, < 0.9.0)
4+
gauge-ruby (0.10.0)
5+
grpc (~> 1.74)
6+
parser (~> 3.2)
7+
unparser (>= 0.6.6, < 0.9.0)
88

99
GEM
1010
remote: https://rubygems.org/
@@ -13,42 +13,42 @@ GEM
1313
bigdecimal (4.0.1)
1414
diff-lcs (1.6.2)
1515
docile (1.4.1)
16-
google-protobuf (4.33.4)
16+
google-protobuf (4.33.5)
1717
bigdecimal
1818
rake (>= 13)
19-
google-protobuf (4.33.4-aarch64-linux-gnu)
19+
google-protobuf (4.33.5-aarch64-linux-gnu)
2020
bigdecimal
2121
rake (>= 13)
22-
google-protobuf (4.33.4-arm64-darwin)
22+
google-protobuf (4.33.5-arm64-darwin)
2323
bigdecimal
2424
rake (>= 13)
25-
google-protobuf (4.33.4-x86_64-darwin)
25+
google-protobuf (4.33.5-x86_64-darwin)
2626
bigdecimal
2727
rake (>= 13)
28-
google-protobuf (4.33.4-x86_64-linux-gnu)
28+
google-protobuf (4.33.5-x86_64-linux-gnu)
2929
bigdecimal
3030
rake (>= 13)
3131
googleapis-common-protos-types (1.22.0)
3232
google-protobuf (~> 4.26)
33-
grpc (1.76.0)
33+
grpc (1.78.1)
3434
google-protobuf (>= 3.25, < 5.0)
3535
googleapis-common-protos-types (~> 1.0)
36-
grpc (1.76.0-aarch64-linux-gnu)
36+
grpc (1.78.1-aarch64-linux-gnu)
3737
google-protobuf (>= 3.25, < 5.0)
3838
googleapis-common-protos-types (~> 1.0)
39-
grpc (1.76.0-arm64-darwin)
39+
grpc (1.78.1-arm64-darwin)
4040
google-protobuf (>= 3.25, < 5.0)
4141
googleapis-common-protos-types (~> 1.0)
42-
grpc (1.76.0-x86_64-darwin)
42+
grpc (1.78.1-x86_64-darwin)
4343
google-protobuf (>= 3.25, < 5.0)
4444
googleapis-common-protos-types (~> 1.0)
45-
grpc (1.76.0-x86_64-linux-gnu)
45+
grpc (1.78.1-x86_64-linux-gnu)
4646
google-protobuf (>= 3.25, < 5.0)
4747
googleapis-common-protos-types (~> 1.0)
48-
grpc-tools (1.76.0)
48+
grpc-tools (1.78.1)
4949
method_source (1.1.0)
5050
os (1.1.4)
51-
parser (3.3.10.1)
51+
parser (3.3.10.2)
5252
ast (~> 2.4.1)
5353
racc
5454
prism (1.9.0)
@@ -89,14 +89,14 @@ PLATFORMS
8989

9090
DEPENDENCIES
9191
gauge-ruby!
92-
grpc-tools (>= 1.10.0, < 2.0)
92+
grpc-tools (~> 1.10)
9393
method_source
9494
os
9595
rake
9696
rspec
97-
rubyzip (>= 1.2.2)
97+
rubyzip
9898
simplecov
9999
yard
100100

101101
BUNDLED WITH
102-
2.6.9
102+
4.0.6

gauge-ruby.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
1818
s.homepage = "https://gauge.org"
1919
s.files = Dir.glob("lib/**/*.rb")
2020

21-
s.add_runtime_dependency 'parser', '>= 3.1', '< 4.0'
22-
s.add_runtime_dependency 'unparser', '>= 0.6.4', '< 0.9.0'
23-
s.add_runtime_dependency 'grpc', '>= 1.74.0', '< 2.0'
24-
s.add_development_dependency 'grpc-tools', '>= 1.10.0', '< 2.0'
25-
s.required_ruby_version = ">= 3.1"
21+
s.add_runtime_dependency 'parser', '~> 3.2'
22+
s.add_runtime_dependency 'unparser', '>= 0.6.6', '< 0.9.0'
23+
s.add_runtime_dependency 'grpc', '~> 1.74'
24+
s.add_development_dependency 'grpc-tools', '~> 1.10'
25+
s.required_ruby_version = '>= 3.2'
2626
end

ruby.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id" : "ruby",
3-
"version" : "0.9.7",
3+
"version" : "0.10.0",
44
"description": "ruby support for gauge",
55
"install": {
66
"windows": [],

0 commit comments

Comments
 (0)