Skip to content

Commit

Permalink
Adding support to mongoid 7.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
GilsonFHM committed Nov 17, 2023
1 parent cdf3249 commit 847f732
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
gemspec

gem 'mongoid'
gem 'mongoid', "~> 7.3.5"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ This fork has additional changes to support the following mongoid/ruby versions:
|-----------------|-----------------------------------------------------------------------------------|--------------------------|------------------------|-------|
| mongoid <5 | [master](https://github.com/fullhealthmedical/mongoid-versioning/tree/master) | Yes | 2.5, 2.6 | ![Build](https://github.com/fullhealthmedical/mongoid-versioning/actions/workflows/build.yml/badge.svg?branch=master) |
| mongoid 6 | [mongoid6](https://github.com/fullhealthmedical/mongoid-versioning/tree/mongoid6) | No | 2.7 | ![Build](https://github.com/fullhealthmedical/mongoid-versioning/actions/workflows/build.yml/badge.svg?branch=mongoid6) |
| mongoid >= 7.0 | [mongoid7](https://github.com/fullhealthmedical/mongoid-versioning/tree/mongoid7) | No | 2.7 | ![Build](https://github.com/fullhealthmedical/mongoid-versioning/actions/workflows/build.yml/badge.svg?branch=mongoid7) |
| mongoid >= 7.0 < 7.3.5 | [mongoid7](https://github.com/fullhealthmedical/mongoid-versioning/tree/mongoid7) | No | 2.7 | ![Build](https://github.com/fullhealthmedical/mongoid-versioning/actions/workflows/build.yml/badge.svg?branch=mongoid7) |
| mongoid >= 7.0 < 7.3.5 | [mongoid7](https://github.com/fullhealthmedical/mongoid-versioning/tree/mongoid73) | No | 2.7 | ![Build](https://github.com/fullhealthmedical/mongoid-versioning/actions/workflows/build.yml/badge.svg?branch=mongoid73) |

In your Gemfile:

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/Mongoid_7.gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
gemspec path: '../'

gem 'mongoid', '~> 7.0'
gem 'mongoid', '~> 7.3.5'
2 changes: 1 addition & 1 deletion lib/mongoid/core_ext/association/embedded/batchable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def pre_process_batch_remove(docs, method)
self.path = doc.atomic_path unless path
execute_callback :before_remove, doc
if !_assigning? && !association.versioned?
doc.apply_delete_dependencies!
doc.apply_destroy_dependencies!
doc.run_before_callbacks(:destroy) if method == :destroy
end
_target.delete_one(doc)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/versioning/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Mongoid
module Versioning
VERSION = '2.1.0'.freeze
VERSION = '3.0.0'.freeze
end
end
2 changes: 1 addition & 1 deletion mongoid-versioning.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
gem.require_path = 'lib'

gem.add_dependency 'activesupport', '>= 4.0'
gem.add_dependency 'mongoid', '>= 7.0.0', '< 7.3'
gem.add_dependency 'mongoid', '~> 7.3.5'
gem.add_development_dependency 'rake', '~> 10.0'
gem.add_development_dependency 'rspec', '~> 3'
end

0 comments on commit 847f732

Please sign in to comment.