Skip to content

Commit

Permalink
Merge pull request #18 from sairamsrinivasan/mongodb-version-test
Browse files Browse the repository at this point in the history
Test MongoDB Version 6 and 7
  • Loading branch information
dblock authored Jun 19, 2024
2 parents 1c1c415 + 03da292 commit d62521b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,20 @@ jobs:
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "6.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "6.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "7.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "7.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "7.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "7.0" }
steps:
- name: Set up MongoDB ${{ matrix.entry.mongodb }}
uses: supercharge/[email protected]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 1.0.0 (Next)

* [#17](https://github.com/mongoid/mongoid-compatibility/pull/17): Test MongoDB 6 and 7 - [@saisrinivasan](https://github.com/SairamSrinivasan).
* [#16](https://github.com/mongoid/mongoid-compatibility/pull/16): Add support for Mongoid 9 - [@saisrinivasan](https://github.com/SairamSrinivasan).
* Your contribution here.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Mongoid::Compatibility::Version.mongoid8?
# => is this Mongoid 8.x?
```

Instead of checking for Mongoid 6 and 7 and 8, use `newer` and `older` helpers.
Instead of checking specifically for a specific version, use `newer` and `older` helpers. For example:

``` ruby
Mongoid::Compatibility::Version.mongoid6_or_newer?
Expand Down

0 comments on commit d62521b

Please sign in to comment.