diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 631fdd7..292dbc2 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -11,10 +11,10 @@ jobs: TESTOPTS: '-v' steps: - uses: actions/checkout@v3 - - name: Set up Ruby 3.2 + - name: Set up Ruby 3.4 uses: ruby/setup-ruby@v1 with: - ruby-version: 3.2 + ruby-version: 3.4 bundler-cache: true - name: bundle install run: bundle install --jobs 4 --retry 3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15bf2ea..366dd8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,7 @@ on: [push, pull_request] jobs: build: - name: >- - ${{ matrix.ruby }} + name: ruby ${{ matrix.ruby }} / mongoid ${{ matrix.mongoid }} env: CI: true TESTOPTS: -v @@ -14,27 +13,30 @@ jobs: strategy: fail-fast: false matrix: - ruby: [2.7, 3.0, 3.1, 3.2, truffleruby] - mongoid: [7, 8] + ruby: ['3.3', '3.4'] + mongoid: [7, 8, 9] experimental: [false] include: + - ruby: '4.0' + mongoid: 9 + experimental: false - ruby: head mongoid: head experimental: true - - ruby: jruby-head - mongoid: 8 - experimental: true - ruby: jruby - mongoid: 7 + mongoid: 8 experimental: true - ruby: jruby - mongoid: 8 + mongoid: 9 experimental: true - ruby: jruby-head - mongoid: 8 + mongoid: 9 + experimental: true + - ruby: truffleruby + mongoid: 9 experimental: true - ruby: truffleruby-head - mongoid: 8 + mongoid: 9 experimental: true steps: diff --git a/.rubocop.yml b/.rubocop.yml index b618e94..45b5874 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml AllCops: NewCops: enable SuggestExtensions: false - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.3 Exclude: - spec/**/* - vendor/**/* diff --git a/README.md b/README.md index 229760c..f29d6c2 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ from the [Mongoid 3.0.0-stable branch](https://github.com/mongodb/mongoid/tree/3 ## Version Support -* The current release is compatible with Mongoid 7.3 and later, and Ruby 2.7 and later. +* The current release is tested against Mongoid 7.3, 8 and 9, and Ruby 3.3 and later. * Earlier Mongoid and Ruby versions are supported on earlier releases. ## Installation diff --git a/mongoid_paranoia.gemspec b/mongoid_paranoia.gemspec index 250e00e..579efb9 100644 --- a/mongoid_paranoia.gemspec +++ b/mongoid_paranoia.gemspec @@ -16,6 +16,7 @@ Gem::Specification.new do |gem| gem.files = Dir.glob('lib/**/*') + %w[LICENSE README.md] gem.require_paths = ['lib'] + gem.required_ruby_version = '>= 3.3' gem.add_dependency 'mongoid', '>= 7.3' gem.metadata['rubygems_mfa_required'] = 'true' end