Skip to content

Commit

Permalink
- Drop support for Ruby 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Jun 25, 2023
1 parent 47122f9 commit 085aef5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
matrix: { ruby: ['2.6', '2.7', '3.0', '3.1'] }
matrix: { ruby: ['3.0', '3.1', '3.2', head] }

steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inherit_gem:
- rspec.yml

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.0
Exclude:
- 'debug.rb'
- 'dev/**/*'
Expand Down
2 changes: 1 addition & 1 deletion active_cabinet.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.files = Dir['README.md', 'lib/**/*.*']
s.homepage = 'https://github.com/dannyben/active_cabinet'
s.license = 'MIT'
s.required_ruby_version = '>= 2.6.0'
s.required_ruby_version = '>= 3.0'

s.add_runtime_dependency 'hash_cabinet', '~> 0.1', '>= 0.1.3'

Expand Down
2 changes: 1 addition & 1 deletion spec/active_cabinet/active_cabinet_metaclass_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
it 'returns records matching the block' do
result = subject.where { |asset| asset.id > 7 }
expect(result.count).to eq 3
expect(result.map(&:id)).to match_array [8, 9, 10]
expect(result.map(&:id)).to contain_exactly(8, 9, 10)
end
end

Expand Down

0 comments on commit 085aef5

Please sign in to comment.