Skip to content

Commit 3f8ad41

Browse files
committed
feat!: update lowest version of Ruby supported from 3.1.x to 3.2.x
1 parent 0eddb27 commit 3f8ad41

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/continuous_integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
workflow_dispatch:
88

99
# Supported platforms / Ruby versions:
10-
# - Ubuntu: MRI (3.1, 3.2, 3.3, 3.4), TruffleRuby (24), JRuby (9.4)
11-
# - Windows: MRI (3.1)
10+
# - Ubuntu: MRI (3.2, 3.3, 3.4), TruffleRuby (24), JRuby (9.4)
11+
# - Windows: MRI (3.2)
1212

1313
jobs:
1414
build:
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
ruby: ["3.1", "3.4"]
30+
ruby: ["3.2", "3.4"]
3131
operating-system: [ubuntu-latest]
3232
fail_on_low_coverage: [true]
3333

.rubocop.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ Metrics/AbcSize:
1212
- "spec/**/*_spec.rb"
1313

1414
AllCops:
15-
# Pin this project to Ruby 3.1 in case the shared config above is upgraded to 3.2
16-
# or later.
17-
TargetRubyVersion: 3.1
15+
TargetRubyVersion: 3.2

lib/rspec/path_matchers/matchers/directory_contents_inspector.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def initialize
2323
attr_reader :nested_matchers
2424

2525
# Defines an expectation for a file within the directory.
26-
def file(name, **options)
27-
nested_matchers << RSpec::PathMatchers::Matchers::HaveFile.new(name, **options)
26+
def file(name, **)
27+
nested_matchers << RSpec::PathMatchers::Matchers::HaveFile.new(name, **)
2828
end
2929

3030
# Defines an expectation for a nested directory.
@@ -33,8 +33,8 @@ def dir(name, ...)
3333
end
3434

3535
# Defines an expectation for a symlink within the directory.
36-
def symlink(name, **options)
37-
nested_matchers << RSpec::PathMatchers::Matchers::HaveSymlink.new(name, **options)
36+
def symlink(name, **)
37+
nested_matchers << RSpec::PathMatchers::Matchers::HaveSymlink.new(name, **)
3838
end
3939

4040
# Defines an expectation that a file does NOT exist within the directory.

rspec-file_system.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222
spec.metadata['changelog_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}/file/CHANGELOG.md"
2323

2424
spec.license = 'MIT'
25-
spec.required_ruby_version = '>= 3.1.0'
25+
spec.required_ruby_version = '>= 3.2.0'
2626

2727
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
2828
spec.metadata['rubygems_mfa_required'] = 'true'

0 commit comments

Comments
 (0)