Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Mongoid 9.0 #59

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
ruby-version: ['3.2']
ruby-version: ['3.3']

steps:
- uses: actions/checkout@v4
Expand Down
38 changes: 21 additions & 17 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,53 @@ jobs:

strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2']
gemfile: [ csv_22.0, mongoid_8.0 ]
experimental: [false]
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
gemfile: [ csv_22.0, mongoid_8.0, mongoid_9.0 ]
channel: ['stable']

include:
- ruby-version: 'head'
gemfile: mongoid_edge
experimental: true
- ruby-version: '2.7'
gemfile: csv_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.0'
gemfile: csv_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.1'
gemfile: csv_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.2'
gemfile: csv_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.3'
gemfile: csv_edge
channel: 'experimental'
- ruby-version: 'head'
gemfile: csv_edge
experimental: true
channel: 'experimental'

- ruby-version: '2.7'
gemfile: mongoid_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.0'
gemfile: mongoid_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.1'
gemfile: mongoid_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.2'
gemfile: mongoid_edge
experimental: true
channel: 'experimental'
- ruby-version: '3.3'
gemfile: mongoid_edge
channel: 'experimental'
- ruby-version: 'head'
gemfile: mongoid_edge
experimental: true
channel: 'experimental'

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

continue-on-error: ${{ matrix.experimental }}
continue-on-error: ${{ matrix.channel != 'stable' }}

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ appraise 'mongoid-8.0' do
gem 'mongoid', '~> 8.0'
end

appraise 'mongoid-9.0' do
gem 'mongoid', '~> 9.0'
end

appraise 'mongoid-edge' do
gem 'mongoid', git: 'https://github.com/mongodb/mongoid.git', branch: 'master'
end
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 14.1.0 / 2024-05-01

* [FEATURE] Add Mongoid 9.0 compatibility
* [ENHANCEMENT] Update development dependencies

## 14.0.0 / 2023-09-06

* [FEATURE] Drop Ruby 2.6 support
Expand Down
2 changes: 1 addition & 1 deletion client_side_validations-mongoid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.7'

spec.add_dependency 'client_side_validations', '~> 22.0'
spec.add_dependency 'mongoid', '>= 8.0', '< 9'
spec.add_dependency 'mongoid', '>= 8.0', '< 10'
end
23 changes: 23 additions & 0 deletions gemfiles/mongoid_9.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "byebug"
gem "database_cleaner-mongoid"
gem "m"
gem "minitest"
gem "mocha"
gem "rake"
gem "rubocop"
gem "rubocop-minitest"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rake"
gem "simplecov"
gem "simplecov-lcov"
gem "sinatra"
gem "mongoid", "~> 9.0"

gemspec path: "../"
2 changes: 1 addition & 1 deletion lib/client_side_validations/mongoid/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module ClientSideValidations
module Mongoid
VERSION = '14.0.0'
VERSION = '14.1.0'
end
end
Loading