Skip to content

Commit 77afdc9

Browse files
authored
Prep 8.0.10 (#5958)
* version bump * missing model for specs * Rails 6.1 requires older concurrent-ruby gem See https://stackoverflow.com/questions/79360526
1 parent eaa1cbe commit 77afdc9

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

gemfiles/rails-6.1.gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
source 'https://rubygems.org'
22

3+
# See https://stackoverflow.com/questions/79360526
4+
gem 'concurrent-ruby', '< 1.3.5'
5+
36
gem 'actionpack', '~> 6.1'
47
gem 'activemodel', '~> 6.1'
58

lib/mongoid/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Mongoid
4-
VERSION = "8.0.9"
4+
VERSION = "8.0.10"
55
end

spec/integration/app_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def check_call(cmd, **opts)
1616
skip 'Set APP_TESTS=1 in environment to run application tests'
1717
end
1818

19+
if SpecConfig.instance.rails_version < '7.1'
20+
skip 'App tests require Rails > 7.0 (see https://stackoverflow.com/questions/79360526)'
21+
end
22+
1923
require 'fileutils'
2024
require 'mrss/child_process_helper'
2125
require 'open-uri'

spec/support/models/book.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ class Book
1515
end
1616

1717
embeds_many :pages, cascade_callbacks: true
18+
embeds_many :covers, cascade_callbacks: true
1819
end

spec/support/models/cover.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
class Cover
4+
include Mongoid::Document
5+
include Mongoid::Timestamps
6+
7+
field :title, type: String
8+
9+
embedded_in :book
10+
end

0 commit comments

Comments
 (0)