Skip to content

Commit

Permalink
Rotate ruby and rspec versions (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpraxis authored Feb 4, 2025
1 parent ee60a4e commit e3cec79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- checkout
- run:
name: Override RSpec version
command: sed -i "/'rspec',/s/'~> [0-9]\.[0-9]'/'~> << parameters.rspec-version >>'/" rspectre.gemspec
command: sed -i "/'rspec',/s/'~> [0-9]\.[0-9]\+'/'~> << parameters.rspec-version >>'/" rspectre.gemspec
- run:
name: Verify RSpec version was overridden
command: set +o pipefail && ! git diff --exit-code rspectre.gemspec && set -o pipefail
Expand All @@ -56,5 +56,5 @@ workflows:
- build_variants:
matrix: # https://circleci.com/blog/circleci-matrix-jobs/
parameters:
ruby-version: ["3.0", "3.1", "3.2"] # https://github.com/CircleCI-Public/cimg-ruby
rspec-version: ["3.9.0", "3.10.0", "3.11.0", "3.12.0"]
ruby-version: ["3.0", "3.1", "3.2", "3.3"] # https://github.com/CircleCI-Public/cimg-ruby
rspec-version: ["3.10.0", "3.11.0", "3.12.0", "3.13.0"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ You should generally run your _entire_ test suite with `rspectre`. `rspectre` in

### Supported Tool Versions

My intent is to support all non-EOL ruby versions and the last 4 minor versions of `rspec`. At the time of writing (2023-05-13), those are (`3.0`, `3.1`, `3.2`) and (`3.9`, `3.10`, `3.11`, and `3.12`, respectively). If you encounter an issue on a different version of `rspec`, please try upgrading first. If you still have a problem, please file an issue.
My intent is to support all non-EOL ruby versions and the last 4 minor versions of `rspec`. At the time of writing (2024-11-28), those are (`3.0`, `3.1`, `3.2`) and (`3.10`, `3.11`, `3.12`, and `3.13`, respectively). If you encounter an issue on a different version of `rspec`, please try upgrading first. If you still have a problem, please file an issue.

### Contributing

Expand Down
3 changes: 2 additions & 1 deletion rspectre.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = '>= 3.0'

gem.add_runtime_dependency('parser', '>= 3.2.2.1')
gem.add_runtime_dependency('rspec', '~> 3.9')
gem.add_runtime_dependency('rspec', '~> 3.10')

gem.add_development_dependency('pry', '~> 0.14')
gem.add_development_dependency('rubocop', '~> 1.51.0')
gem.add_development_dependency('rubocop-factory_bot', '!= 2.26.0')
gem.add_development_dependency('rubocop-rspec', '~> 2.22.0')

gem.metadata['rubygems_mfa_required'] = 'true'
Expand Down

0 comments on commit e3cec79

Please sign in to comment.