Skip to content

Commit

Permalink
Merge pull request #116 from kachick/bump-supported-rubies
Browse files Browse the repository at this point in the history
Bump supported rubies
  • Loading branch information
kachick authored Jul 16, 2023
2 parents 17c8d5b + ffd3e77 commit 0bb7bb2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: ['head', '3.2', '3.1', '3.0', '2.7']
ruby: ['head', '3.2', '3.1']
gemfile: ['Gemfile', 'gemfiles/oldest.gemfile']
runs-on: ${{ matrix.os }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require:
- rubocop-rake

AllCops:
TargetRubyVersion: 2.7
TargetRubyVersion: 3.1
DisplayCopNames: true
Exclude:
- '**/vendor/**/*'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ I hope this might be a choice to integrate `PowerAssert` in RSpec.

Require following dependencies

- Ruby 2.7 or later
- Ruby 3.1 or higher # Tested only in the head and last 2 rubies
- [rspec](https://rubygems.org/gems/rspec/)
- [power_assert](https://rubygems.org/gems/power_assert)
- [irb](https://rubygems.org/gems/irb) # To colorize
Expand Down
8 changes: 1 addition & 7 deletions lib/rspec/matchers/power_assert_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,5 @@ module PowerAssertMatchers
require_relative 'power_assert_matchers/version'

module PowerAssert
INTERNAL_LIB_DIRS[RSpec::Matchers::PowerAssertMatchers] = File.dirname(
File.dirname(
File.dirname(
caller_locations(1, 1).first.path
)
)
)
INTERNAL_LIB_DIRS[RSpec::Matchers::PowerAssertMatchers] = File.dirname(caller_locations(1, 1).first.path, 3)
end
2 changes: 1 addition & 1 deletion rspec-matchers-power_assert_matchers.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('power_assert', '>= 2.0.3', '< 3.0')
gem.add_runtime_dependency('irb', '>= 1.4.0', '< 2.0') # To colorize

gem.required_ruby_version = '>= 2.7.2'
gem.required_ruby_version = '>= 3.1'

# common

Expand Down

0 comments on commit 0bb7bb2

Please sign in to comment.