From 7a2ae64df5e3836f1184a86cab65474e925ef429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristijan=20Novoseli=C4=87?= Date: Wed, 31 Aug 2022 00:58:25 +0200 Subject: [PATCH] GW-20804 Bump version to 4.0.0 (#24) --- Appraisals | 16 ++++------------ CHANGELOG.md | 10 ++++++++-- gemfiles/mongoid_7.gemfile | 7 +++++-- gemfiles/mongoid_8.gemfile | 19 +++++++++++++++++++ lib/mongoid/embedded_errors/version.rb | 2 +- mongoid-embedded-errors.gemspec | 3 +-- 6 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 gemfiles/mongoid_8.gemfile diff --git a/Appraisals b/Appraisals index 06371ca..f553070 100644 --- a/Appraisals +++ b/Appraisals @@ -1,15 +1,7 @@ -appraise 'mongoid-4' do - gem 'mongoid', '~> 4.0' -end - -appraise 'mongoid-5' do - gem 'mongoid', '~> 5.0' -end - -appraise 'mongoid-6' do - gem 'mongoid', '~> 6.0' -end - appraise 'mongoid-7' do gem 'mongoid', '~> 7.0' end + +appraise 'mongoid-8' do + gem 'mongoid', '~> 8.0' +end diff --git a/CHANGELOG.md b/CHANGELOG.md index facbddd..d6e4cc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] - TODO +## [v4.0.0] - 2022-08-31 +- Fix rails 6 active model error deprecations (#22) +- Added Mongoid 8 support +- Dropped support for Mongoid 4, 5 and 6 + ## [v3.0.1] - 2020-09-29 ### Added - Started 🔎 tracking changes in a changelog! @@ -22,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [v3.0.0] - 2020-09-29 [YANKED] - Yanked due to wrong dependencies in gemspec. -[Unreleased]: https://github.com/glooko/mongoid-embedded-errors/compare/v3.0.1...HEAD +[Unreleased]: https://github.com/glooko/mongoid-embedded-errors/compare/v4.0.0...HEAD +[v4.0.0]: https://github.com/glooko/mongoid-embedded-errors/compare/v3.0.1...v4.0.0 [v3.0.1]: https://github.com/glooko/mongoid-embedded-errors/compare/v3.0.0...v3.0.1 -[v3.0.0]: https://github.com/glooko/mongoid-embedded-errors/compare/f1ce0d8ed140de86c894b2fad7ad197504fefd5a...v3.0.0 \ No newline at end of file +[v3.0.0]: https://github.com/glooko/mongoid-embedded-errors/compare/f1ce0d8ed140de86c894b2fad7ad197504fefd5a...v3.0.0 diff --git a/gemfiles/mongoid_7.gemfile b/gemfiles/mongoid_7.gemfile index b781498..3bd1340 100644 --- a/gemfiles/mongoid_7.gemfile +++ b/gemfiles/mongoid_7.gemfile @@ -5,11 +5,14 @@ source "https://rubygems.org" gem "mongoid", "~> 7.0" group :development do + gem "rake" +end + +group :test do gem "appraisal" - gem "database_cleaner" + gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1" gem "guard-rspec" gem "mutant-rspec" - gem "rake" gem "rspec" end diff --git a/gemfiles/mongoid_8.gemfile b/gemfiles/mongoid_8.gemfile new file mode 100644 index 0000000..6236b6d --- /dev/null +++ b/gemfiles/mongoid_8.gemfile @@ -0,0 +1,19 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "mongoid", "~> 8.0" + +group :development do + gem "rake" +end + +group :test do + gem "appraisal" + gem "database_cleaner-mongoid", "~> 2.0", ">= 2.0.1" + gem "guard-rspec" + gem "mutant-rspec" + gem "rspec" +end + +gemspec path: "../" diff --git a/lib/mongoid/embedded_errors/version.rb b/lib/mongoid/embedded_errors/version.rb index 2cbb2c1..7832d31 100755 --- a/lib/mongoid/embedded_errors/version.rb +++ b/lib/mongoid/embedded_errors/version.rb @@ -2,5 +2,5 @@ module Mongoid; end module Mongoid::EmbeddedErrors - VERSION = '3.0.1' + VERSION = '4.0.0' end diff --git a/mongoid-embedded-errors.gemspec b/mongoid-embedded-errors.gemspec index 868e2ef..fb1ff2f 100755 --- a/mongoid-embedded-errors.gemspec +++ b/mongoid-embedded-errors.gemspec @@ -26,8 +26,7 @@ Gem::Specification.new do |gem| gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ['lib'] - gem.add_dependency 'activemodel', '>=6.1' - gem.add_dependency 'mongoid', '>=4.0', '<8.0.0' + gem.add_dependency 'mongoid', '>=7.0', '<9.0.0' gem.add_development_dependency 'rubocop', '~> 0.92' gem.add_development_dependency 'rubocop-rspec', '~> 1.43' end