Skip to content

Commit

Permalink
Include Mongoid 9.x in compatible dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt committed Aug 14, 2024
1 parent 44fedc4 commit f90c8b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ jobs:
strategy:
fail-fast: false
matrix:
mongoid: [4, 5, 6, 7, 8, HEAD]
mongoid: [4, 5, 6, 7, 8, 9 HEAD]
ruby: [3.2]
include:
- mongoid: 8
ruby: 2.7
- mongoid: 8
ruby: 3.0
- mongoid: 8
- mongoid: 9
ruby: 3.1
- mongoid: 8
- mongoid: 9
ruby: 3.2
- mongoid: 9
ruby: 3.3

runs-on: ubuntu-latest
steps:
- id: mongodb
name: Start MongoDB
uses: mongodb-labs/drivers-evergreen-tools@master
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gemspec

case version = ENV['MONGOID_VERSION'] || '~> 7.0'
when 'HEAD' then gem 'mongoid', github: 'mongodb/mongoid'
when /9/ then gem 'mongoid', '~> 9.0'
when /8/ then gem 'mongoid', '~> 8.0'
when /7/ then gem 'mongoid', '~> 7.0'
when /6/ then gem 'mongoid', '~> 6.0'
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A tree structure for Mongoid documents using the materialized path pattern

## Requirements

* mongoid (>= 4.0, < 9.0)
* mongoid (>= 4.0, < 10.0)

For a mongoid 3.x compatible version, please use mongoid-tree 1.0.x,
for a mongoid 2.x compatible version, please use mongoid-tree 0.7.x.
Expand Down Expand Up @@ -189,7 +189,7 @@ end

## Build Status

mongoid-tree is on [GitHub Actions](https://github.com/benedikt/mongoid-tree/actions) running the specs on Ruby 2.7-3.2 and Mongoid 4.x-8.x.
mongoid-tree is on [GitHub Actions](https://github.com/benedikt/mongoid-tree/actions) running the specs on Ruby 3.1-3.3 and Mongoid 4.x-9.x.

## Known issues

Expand All @@ -208,4 +208,4 @@ See a list of all contributors at [https://github.com/benedikt/mongoid-tree/cont

## Copyright

Copyright (c) 2010-2023 Benedikt Deicke. See LICENSE for details.
Copyright (c) 2010-2024 Benedikt Deicke. See LICENSE for details.
2 changes: 1 addition & 1 deletion mongoid-tree.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.glob('{lib,spec}/**/*') + %w(LICENSE README.md Rakefile Gemfile)

s.add_runtime_dependency('mongoid', ['>= 4.0', '< 9'])
s.add_runtime_dependency('mongoid', ['>= 4.0', '< 10'])
s.add_development_dependency('mongoid-compatibility')
s.add_development_dependency('rake', ['>= 0.9.2'])
s.add_development_dependency('rspec', ['~> 3.0'])
Expand Down

0 comments on commit f90c8b2

Please sign in to comment.