From f90c8b26a8369eb37ad33e73d6bb4369a3a8bef3 Mon Sep 17 00:00:00 2001 From: Benedikt Deicke Date: Wed, 14 Aug 2024 14:27:47 +0200 Subject: [PATCH] Include Mongoid 9.x in compatible dependencies --- .github/workflows/test.yml | 14 ++++++-------- Gemfile | 1 + README.md | 6 +++--- mongoid-tree.gemspec | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a885930..a39a166 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/Gemfile b/Gemfile index da0ed0e..08b6b82 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/README.md b/README.md index 1e2d87e..f97b633 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -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. diff --git a/mongoid-tree.gemspec b/mongoid-tree.gemspec index a499749..761837e 100644 --- a/mongoid-tree.gemspec +++ b/mongoid-tree.gemspec @@ -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'])