Skip to content

Commit 0f4d4db

Browse files
authored
Ruby: Changes prep for v17 (#232)
* Update minimum ruby/rubygems and initial rubocop versions * Remove all unrequired files relating to old ruby protocols * Release using 3.2 * Test on ruby 3.1 and 3.2 - move fringe os' to test on 3.2 * Add initial config and auto-gen-config * Re-generate todo file and place marker * Add changelog entry
1 parent 6292751 commit 0f4d4db

11 files changed

+813
-130
lines changed

.github/workflows/release-rubygem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: ruby/setup-ruby@v1
1515
with:
16-
ruby-version: '3.0.2'
16+
ruby-version: '3.2'
1717
bundler-cache: true
1818
- uses: cucumber/[email protected]
1919
with:

.github/workflows/test-ruby.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@ jobs:
1717
matrix:
1818
os:
1919
- ubuntu-latest
20-
ruby: ['2.7', '3.0']
20+
ruby: ['2.7', '3.0', '3.1', '3.2']
2121
include:
2222
- os: windows-latest
23-
ruby: '3.0'
23+
ruby: '3.2'
2424
- os: macos-latest
25-
ruby: '3.0'
25+
ruby: '3.2'
2626

2727
steps:
2828
- uses: actions/checkout@v4
29-
- name: Set up Ruby
30-
uses: ruby/setup-ruby@v1
29+
- uses: ruby/setup-ruby@v1
3130
with:
3231
ruby-version: ${{ matrix.ruby }}
3332
bundler-cache: true
3433
working-directory: ruby
35-
- name: bundle exec rspec
34+
- name: rspec
3635
working-directory: ruby
3736
run: bundle exec rspec

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
### Changed
10+
- [Ruby] Minimum supported ruby is now 2.5+
911

1012
- [JavaScript] Added TypeScript source to the package ([#211](https://github.com/cucumber/cucumber-expressions/pull/211))
1113

ruby/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ coverage/
33
acceptance/
44
pkg/
55
*.gem
6-
.compared
76
.deps
8-
.tested*
9-
*-go
107
*.iml

ruby/.rspec

Lines changed: 0 additions & 1 deletion
This file was deleted.

ruby/.rubocop.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
inherit_mode:
4+
merge:
5+
- Exclude
6+
7+
AllCops:
8+
TargetRubyVersion: 2.5
9+
NewCops: enable
10+
11+
# Disabled on our repo's to enable polyglot-release
12+
Gemspec/RequireMFA:
13+
Enabled: false
14+
15+
Layout/LineLength:
16+
Max: 200
17+
18+
Style/Documentation:
19+
Enabled: false
20+
21+
Style/RegexpLiteral:
22+
EnforcedStyle: slashes
23+
AllowInnerSlashes: true
24+
25+
# Once we enable rubocop-rspec
26+
#RSpec/MessageSpies:
27+
# EnforcedStyle: receive

0 commit comments

Comments
 (0)