mongoid 8.1.3 → 8.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/mongoid/association/embedded/embeds_many/proxy.rb +18 -3
- data/lib/mongoid/association/referenced/has_many/proxy.rb +11 -2
- data/lib/mongoid/atomic.rb +9 -7
- data/lib/mongoid/interceptable.rb +0 -2
- data/lib/mongoid/validatable/associated.rb +96 -18
- data/lib/mongoid/validatable.rb +8 -0
- data/lib/mongoid/version.rb +1 -1
- data/spec/integration/associations/has_and_belongs_to_many_spec.rb +40 -0
- data/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb +35 -0
- data/spec/mongoid/association/referenced/has_many/proxy_spec.rb +42 -0
- data/spec/mongoid/validatable/associated_spec.rb +13 -30
- data/spec/shared/lib/mrss/docker_runner.rb +0 -1
- data/spec/support/models/name.rb +10 -0
- data.tar.gz.sig +0 -0
- metadata +16 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbe9ca12b60eeee360717af6f05117691a514c4b37f645c456b7c2675ab60606
|
4
|
+
data.tar.gz: 145e999e0a17a6eff2d19c7188a2aee7f27785308f507cd57df1d8ac74ebe93d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5249dd2e2eea2d2ba3fdfa2c84c3dbaa71b181e22ff2a181854ce029499cf723487b00ec4ad4eef0619fda4bfcf3b071f36dc436ef46321fcf7c99319124d4
|
7
|
+
data.tar.gz: 1ff5ba0852368f7f032c80e18bcfd27934ee35a3e91e84197e6641f0d966b914c29c5aac8cd4e81df720db2b8b8bd54c42fc25e9b2c8a9e8cf1fb33f9da8cc89
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -227,9 +227,24 @@ module Mongoid
|
|
227
227
|
# @example Are there persisted documents?
|
228
228
|
# person.posts.exists?
|
229
229
|
#
|
230
|
-
# @
|
231
|
-
|
232
|
-
|
230
|
+
# @param [ :none | nil | false | Hash | Object ] id_or_conditions
|
231
|
+
# When :none (the default), returns true if any persisted
|
232
|
+
# documents exist in the association. When nil or false, this
|
233
|
+
# will always return false. When a Hash is given, this queries
|
234
|
+
# the documents in the association for those that match the given
|
235
|
+
# conditions, and returns true if any match which have been
|
236
|
+
# persisted. Any other argument is interpreted as an id, and
|
237
|
+
# queries for the existence of persisted documents in the
|
238
|
+
# association with a matching _id.
|
239
|
+
#
|
240
|
+
# @return [ true | false ] True if persisted documents exist, false if not.
|
241
|
+
def exists?(id_or_conditions = :none)
|
242
|
+
case id_or_conditions
|
243
|
+
when :none then _target.any?(&:persisted?)
|
244
|
+
when nil, false then false
|
245
|
+
when Hash then where(id_or_conditions).any?(&:persisted?)
|
246
|
+
else where(_id: id_or_conditions).any?(&:persisted?)
|
247
|
+
end
|
233
248
|
end
|
234
249
|
|
235
250
|
# Finds a document in this association through several different
|
@@ -172,9 +172,18 @@ module Mongoid
|
|
172
172
|
# @example Are there persisted documents?
|
173
173
|
# person.posts.exists?
|
174
174
|
#
|
175
|
+
# @param [ :none | nil | false | Hash | Object ] id_or_conditions
|
176
|
+
# When :none (the default), returns true if any persisted
|
177
|
+
# documents exist in the association. When nil or false, this
|
178
|
+
# will always return false. When a Hash is given, this queries
|
179
|
+
# the documents in the association for those that match the given
|
180
|
+
# conditions, and returns true if any match. Any other argument is
|
181
|
+
# interpreted as an id, and queries for the existence of documents
|
182
|
+
# in the association with a matching _id.
|
183
|
+
#
|
175
184
|
# @return [ true | false ] True is persisted documents exist, false if not.
|
176
|
-
def exists?
|
177
|
-
criteria.exists?
|
185
|
+
def exists?(id_or_conditions = :none)
|
186
|
+
criteria.exists?(id_or_conditions)
|
178
187
|
end
|
179
188
|
|
180
189
|
# Find the matching document on the association, either based on id or
|
data/lib/mongoid/atomic.rb
CHANGED
@@ -178,13 +178,15 @@ module Mongoid
|
|
178
178
|
#
|
179
179
|
# @return [ Object ] The associated path.
|
180
180
|
def atomic_paths
|
181
|
-
@atomic_paths
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
181
|
+
return @atomic_paths if @atomic_paths
|
182
|
+
|
183
|
+
paths = if _association
|
184
|
+
_association.path(self)
|
185
|
+
else
|
186
|
+
Atomic::Paths::Root.new(self)
|
187
|
+
end
|
188
|
+
|
189
|
+
paths.tap { @atomic_paths = paths unless new_record? }
|
188
190
|
end
|
189
191
|
|
190
192
|
# Get all the attributes that need to be pulled.
|
@@ -15,32 +15,110 @@ module Mongoid
|
|
15
15
|
#
|
16
16
|
# validates_associated :name, :addresses
|
17
17
|
# end
|
18
|
-
class AssociatedValidator < ActiveModel::
|
18
|
+
class AssociatedValidator < ActiveModel::Validator
|
19
|
+
# Required by `validates_with` so that the validator
|
20
|
+
# gets added to the correct attributes.
|
21
|
+
def attributes
|
22
|
+
options[:attributes]
|
23
|
+
end
|
19
24
|
|
20
|
-
#
|
21
|
-
# valid.
|
22
|
-
# the
|
25
|
+
# Checks that the named associations of the given record
|
26
|
+
# (`attributes`) are valid. This does NOT load the associations
|
27
|
+
# from the database, and will only validate records that are dirty
|
28
|
+
# or unpersisted.
|
23
29
|
#
|
24
|
-
#
|
25
|
-
#
|
30
|
+
# If anything is not valid, appropriate errors will be added to
|
31
|
+
# the `document` parameter.
|
32
|
+
#
|
33
|
+
# @param [ Mongoid::Document ] document the document with the
|
34
|
+
# associations to validate.
|
35
|
+
def validate(document)
|
36
|
+
options[:attributes].each do |attr_name|
|
37
|
+
validate_association(document, attr_name)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
# Validates that the given association provided is either nil,
|
44
|
+
# persisted and unchanged, or invalid. Otherwise, the appropriate errors
|
45
|
+
# will be added to the parent document.
|
26
46
|
#
|
27
47
|
# @param [ Document ] document The document to validate.
|
28
48
|
# @param [ Symbol ] attribute The association to validate.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
49
|
+
def validate_association(document, attribute)
|
50
|
+
# grab the proxy from the instance variable directly; we don't want
|
51
|
+
# any loading logic to run; we just want to see if it's already
|
52
|
+
# been loaded.
|
53
|
+
proxy = document.ivar(attribute)
|
54
|
+
return unless proxy
|
55
|
+
|
56
|
+
# if the variable exists, now we see if it is a proxy, or an actual
|
57
|
+
# document. It might be a literal document instead of a proxy if this
|
58
|
+
# document was created with a Document instance as a provided attribute,
|
59
|
+
# e.g. "Post.new(message: Message.new)".
|
60
|
+
target = proxy.respond_to?(:_target) ? proxy._target : proxy
|
61
|
+
|
62
|
+
# Now, fetch the list of documents from the target. Target may be a
|
63
|
+
# single value, or a list of values, and in the case of HasMany,
|
64
|
+
# might be a rather complex collection. We need to do this without
|
65
|
+
# triggering a load, so it's a bit of a delicate dance.
|
66
|
+
list = get_target_documents(target)
|
67
|
+
|
68
|
+
valid = document.validating do
|
69
|
+
# Now, treating the target as an array, look at each element
|
70
|
+
# and see if it is valid, but only if it has already been
|
71
|
+
# persisted, or changed, and hasn't been flagged for destroy.
|
72
|
+
list.all? do |value|
|
73
|
+
if value && !value.flagged_for_destroy? && (!value.persisted? || value.changed?)
|
74
|
+
value.validated? ? true : value.valid?
|
36
75
|
else
|
37
|
-
|
76
|
+
true
|
38
77
|
end
|
39
|
-
end
|
40
|
-
|
41
|
-
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
document.errors.add(attribute, :invalid) unless valid
|
82
|
+
end
|
83
|
+
|
84
|
+
private
|
85
|
+
|
86
|
+
# Examine the given target object and return an array of
|
87
|
+
# documents (possibly empty) that the target represents.
|
88
|
+
#
|
89
|
+
# @param [ Array | Mongoid::Document | Mongoid::Association::Proxy | HasMany::Enumerable ] target
|
90
|
+
# the target object to examine.
|
91
|
+
#
|
92
|
+
# @return [ Array<Mongoid::Document> ] the list of documents
|
93
|
+
def get_target_documents(target)
|
94
|
+
if target.respond_to?(:_loaded?)
|
95
|
+
get_target_documents_for_has_many(target)
|
96
|
+
else
|
97
|
+
get_target_documents_for_other(target)
|
42
98
|
end
|
43
|
-
|
99
|
+
end
|
100
|
+
|
101
|
+
# Returns the list of all currently in-memory values held by
|
102
|
+
# the target. The target will not be loaded.
|
103
|
+
#
|
104
|
+
# @param [ HasMany::Enumerable ] target the target that will
|
105
|
+
# be examined for in-memory documents.
|
106
|
+
#
|
107
|
+
# @return [ Array<Mongoid::Document> ] the in-memory documents
|
108
|
+
# held by the target.
|
109
|
+
def get_target_documents_for_has_many(target)
|
110
|
+
[ *target._loaded.values, *target._added.values ]
|
111
|
+
end
|
112
|
+
|
113
|
+
# Returns the target as an array. If the target represents a single
|
114
|
+
# value, it is wrapped in an array.
|
115
|
+
#
|
116
|
+
# @param [ Array | Mongoid::Document | Mongoid::Association::Proxy ] target
|
117
|
+
# the target to return.
|
118
|
+
#
|
119
|
+
# @return [ Array<Mongoid::Document> ] the target, as an array.
|
120
|
+
def get_target_documents_for_other(target)
|
121
|
+
Array.wrap(target)
|
44
122
|
end
|
45
123
|
end
|
46
124
|
end
|
data/lib/mongoid/validatable.rb
CHANGED
@@ -37,6 +37,14 @@ module Mongoid
|
|
37
37
|
Threaded.exit_validate(self)
|
38
38
|
end
|
39
39
|
|
40
|
+
# Perform a validation within the associated block.
|
41
|
+
def validating
|
42
|
+
begin_validate
|
43
|
+
yield
|
44
|
+
ensure
|
45
|
+
exit_validate
|
46
|
+
end
|
47
|
+
|
40
48
|
# Given the provided options, are we performing validations?
|
41
49
|
#
|
42
50
|
# @example Are we performing validations?
|
data/lib/mongoid/version.rb
CHANGED
@@ -2,6 +2,28 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
+
module HabtmSpec
|
6
|
+
class Page
|
7
|
+
include Mongoid::Document
|
8
|
+
embeds_many :blocks, class_name: 'HabtmSpec::Block'
|
9
|
+
end
|
10
|
+
|
11
|
+
class Block
|
12
|
+
include Mongoid::Document
|
13
|
+
embedded_in :page, class_name: 'HabtmSpec::Page'
|
14
|
+
end
|
15
|
+
|
16
|
+
class ImageBlock < Block
|
17
|
+
has_and_belongs_to_many :attachments, inverse_of: nil, class_name: 'HabtmSpec::Attachment'
|
18
|
+
accepts_nested_attributes_for :attachments
|
19
|
+
end
|
20
|
+
|
21
|
+
class Attachment
|
22
|
+
include Mongoid::Document
|
23
|
+
field :file, type: String
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
5
27
|
describe 'has_and_belongs_to_many associations' do
|
6
28
|
|
7
29
|
context 'when an anonymous class defines a has_and_belongs_to_many association' do
|
@@ -18,4 +40,22 @@ describe 'has_and_belongs_to_many associations' do
|
|
18
40
|
expect(klass.new.movies.build).to be_a Movie
|
19
41
|
end
|
20
42
|
end
|
43
|
+
|
44
|
+
context 'when an embedded has habtm relation' do
|
45
|
+
let(:attachment) { HabtmSpec::Attachment.create!(file: 'foo.jpg') }
|
46
|
+
|
47
|
+
let(:page) { HabtmSpec::Page.create! }
|
48
|
+
|
49
|
+
let(:image_block) do
|
50
|
+
image_block = page.blocks.build({
|
51
|
+
_type: 'HabtmSpec::ImageBlock',
|
52
|
+
attachment_ids: [ attachment.id.to_s ],
|
53
|
+
attachments_attributes: { '1234' => { file: 'bar.jpg', id: attachment.id.to_s } }
|
54
|
+
})
|
55
|
+
end
|
56
|
+
|
57
|
+
it 'does not raise on save' do
|
58
|
+
expect { image_block.save! }.not_to raise_error
|
59
|
+
end
|
60
|
+
end
|
21
61
|
end
|
@@ -2310,9 +2310,37 @@ describe Mongoid::Association::Embedded::EmbedsMany::Proxy do
|
|
2310
2310
|
person.addresses.create!(street: "Bond St")
|
2311
2311
|
end
|
2312
2312
|
|
2313
|
+
let(:address) { person.addresses.first }
|
2314
|
+
|
2313
2315
|
it "returns true" do
|
2314
2316
|
expect(person.addresses.exists?).to be true
|
2315
2317
|
end
|
2318
|
+
|
2319
|
+
context 'when given specifying conditions' do
|
2320
|
+
context 'when the record exists in the association' do
|
2321
|
+
it 'returns true by condition' do
|
2322
|
+
expect(person.addresses.exists?(street: 'Bond St')).to be true
|
2323
|
+
end
|
2324
|
+
|
2325
|
+
it 'returns true by id' do
|
2326
|
+
expect(person.addresses.exists?(address._id)).to be true
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
it 'returns false when given false' do
|
2330
|
+
expect(person.addresses.exists?(false)).to be false
|
2331
|
+
end
|
2332
|
+
|
2333
|
+
it 'returns false when given nil' do
|
2334
|
+
expect(person.addresses.exists?(nil)).to be false
|
2335
|
+
end
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
context 'when the record does not exist in the association' do
|
2339
|
+
it 'returns false' do
|
2340
|
+
expect(person.addresses.exists?(street: 'Garfield Ave')).to be false
|
2341
|
+
end
|
2342
|
+
end
|
2343
|
+
end
|
2316
2344
|
end
|
2317
2345
|
|
2318
2346
|
context "when no documents exist in the database" do
|
@@ -2324,6 +2352,13 @@ describe Mongoid::Association::Embedded::EmbedsMany::Proxy do
|
|
2324
2352
|
it "returns false" do
|
2325
2353
|
expect(person.addresses.exists?).to be false
|
2326
2354
|
end
|
2355
|
+
|
2356
|
+
context 'when given specifying conditions' do
|
2357
|
+
it 'returns false' do
|
2358
|
+
expect(person.addresses.exists?(street: 'Hyde Park Dr')).to be false
|
2359
|
+
expect(person.addresses.exists?(street: 'Garfield Ave')).to be false
|
2360
|
+
end
|
2361
|
+
end
|
2327
2362
|
end
|
2328
2363
|
end
|
2329
2364
|
|
@@ -2395,6 +2395,42 @@ describe Mongoid::Association::Referenced::HasMany::Proxy do
|
|
2395
2395
|
end
|
2396
2396
|
end
|
2397
2397
|
end
|
2398
|
+
|
2399
|
+
context 'when invoked with specifying conditions' do
|
2400
|
+
let(:other_person) { Person.create! }
|
2401
|
+
let(:post) { person.posts.first }
|
2402
|
+
|
2403
|
+
before do
|
2404
|
+
person.posts.create title: 'bumfuzzle'
|
2405
|
+
other_person.posts.create title: 'bumbershoot'
|
2406
|
+
end
|
2407
|
+
|
2408
|
+
context 'when the conditions match an associated record' do
|
2409
|
+
it 'detects its existence by condition' do
|
2410
|
+
expect(person.posts.exists?(title: 'bumfuzzle')).to be true
|
2411
|
+
expect(other_person.posts.exists?(title: 'bumbershoot')).to be true
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
it 'detects its existence by id' do
|
2415
|
+
expect(person.posts.exists?(post._id)).to be true
|
2416
|
+
end
|
2417
|
+
|
2418
|
+
it 'returns false when given false' do
|
2419
|
+
expect(person.posts.exists?(false)).to be false
|
2420
|
+
end
|
2421
|
+
|
2422
|
+
it 'returns false when given nil' do
|
2423
|
+
expect(person.posts.exists?(nil)).to be false
|
2424
|
+
end
|
2425
|
+
end
|
2426
|
+
|
2427
|
+
context 'when the conditions match an unassociated record' do
|
2428
|
+
it 'does not detect its existence' do
|
2429
|
+
expect(person.posts.exists?(title: 'bumbershoot')).to be false
|
2430
|
+
expect(other_person.posts.exists?(title: 'bumfuzzle')).to be false
|
2431
|
+
end
|
2432
|
+
end
|
2433
|
+
end
|
2398
2434
|
end
|
2399
2435
|
|
2400
2436
|
context "when documents exist in application but not in database" do
|
@@ -2465,6 +2501,12 @@ describe Mongoid::Association::Referenced::HasMany::Proxy do
|
|
2465
2501
|
end
|
2466
2502
|
end
|
2467
2503
|
end
|
2504
|
+
|
2505
|
+
context 'when invoked with specifying conditions' do
|
2506
|
+
it 'returns false' do
|
2507
|
+
expect(person.posts.exists?(title: 'hullaballoo')).to be false
|
2508
|
+
end
|
2509
|
+
end
|
2468
2510
|
end
|
2469
2511
|
end
|
2470
2512
|
|
@@ -75,7 +75,6 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
it "does not run validation on them" do
|
78
|
-
expect(description).to receive(:valid?).never
|
79
78
|
expect(user).to be_valid
|
80
79
|
end
|
81
80
|
|
@@ -84,14 +83,14 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
84
83
|
end
|
85
84
|
end
|
86
85
|
|
87
|
-
describe "#
|
86
|
+
describe "#validate" do
|
88
87
|
|
89
88
|
let(:person) do
|
90
89
|
Person.new
|
91
90
|
end
|
92
91
|
|
93
92
|
let(:validator) do
|
94
|
-
described_class.new(attributes: person.
|
93
|
+
described_class.new(attributes: person.relations.keys)
|
95
94
|
end
|
96
95
|
|
97
96
|
context "when the association is a one to one" do
|
@@ -99,7 +98,7 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
99
98
|
context "when the association is nil" do
|
100
99
|
|
101
100
|
before do
|
102
|
-
validator.
|
101
|
+
validator.validate(person)
|
103
102
|
end
|
104
103
|
|
105
104
|
it "adds no errors" do
|
@@ -108,14 +107,9 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
108
107
|
end
|
109
108
|
|
110
109
|
context "when the association is valid" do
|
111
|
-
|
112
|
-
let(:associated) do
|
113
|
-
double(valid?: true, flagged_for_destroy?: false)
|
114
|
-
end
|
115
|
-
|
116
110
|
before do
|
117
|
-
|
118
|
-
validator.
|
111
|
+
person.name = Name.new(first_name: 'A', last_name: 'B')
|
112
|
+
validator.validate(person)
|
119
113
|
end
|
120
114
|
|
121
115
|
it "adds no errors" do
|
@@ -125,13 +119,9 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
125
119
|
|
126
120
|
context "when the association is invalid" do
|
127
121
|
|
128
|
-
let(:associated) do
|
129
|
-
double(valid?: false, flagged_for_destroy?: false)
|
130
|
-
end
|
131
|
-
|
132
122
|
before do
|
133
|
-
|
134
|
-
validator.
|
123
|
+
person.name = Name.new(first_name: 'Jamis', last_name: 'Buck')
|
124
|
+
validator.validate(person)
|
135
125
|
end
|
136
126
|
|
137
127
|
it "adds errors to the parent document" do
|
@@ -149,7 +139,7 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
149
139
|
context "when the association is empty" do
|
150
140
|
|
151
141
|
before do
|
152
|
-
validator.
|
142
|
+
validator.validate(person)
|
153
143
|
end
|
154
144
|
|
155
145
|
it "adds no errors" do
|
@@ -159,13 +149,9 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
159
149
|
|
160
150
|
context "when the association has invalid documents" do
|
161
151
|
|
162
|
-
let(:associated) do
|
163
|
-
double(valid?: false, flagged_for_destroy?: false)
|
164
|
-
end
|
165
|
-
|
166
152
|
before do
|
167
|
-
|
168
|
-
validator.
|
153
|
+
person.addresses << Address.new(street: '123')
|
154
|
+
validator.validate(person)
|
169
155
|
end
|
170
156
|
|
171
157
|
it "adds errors to the parent document" do
|
@@ -175,13 +161,10 @@ describe Mongoid::Validatable::AssociatedValidator do
|
|
175
161
|
|
176
162
|
context "when the association has all valid documents" do
|
177
163
|
|
178
|
-
let(:associated) do
|
179
|
-
double(valid?: true, flagged_for_destroy?: false)
|
180
|
-
end
|
181
|
-
|
182
164
|
before do
|
183
|
-
|
184
|
-
|
165
|
+
person.addresses << Address.new(street: '123 First St')
|
166
|
+
person.addresses << Address.new(street: '456 Second St')
|
167
|
+
validator.validate(person)
|
185
168
|
end
|
186
169
|
|
187
170
|
it "adds no errors" do
|
data/spec/support/models/name.rb
CHANGED
@@ -4,6 +4,8 @@ class Name
|
|
4
4
|
include Mongoid::Document
|
5
5
|
include Mongoid::Attributes::Dynamic
|
6
6
|
|
7
|
+
validate :is_not_jamis
|
8
|
+
|
7
9
|
field :_id, type: String, overwrite: true, default: ->{
|
8
10
|
"#{first_name}-#{last_name}"
|
9
11
|
}
|
@@ -23,4 +25,12 @@ class Name
|
|
23
25
|
def set_parent=(set = false)
|
24
26
|
self.parent_title = namable.title if set
|
25
27
|
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def is_not_jamis
|
32
|
+
if first_name == 'Jamis' && last_name == 'Buck'
|
33
|
+
errors.add(:base, :invalid)
|
34
|
+
end
|
35
|
+
end
|
26
36
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.
|
4
|
+
version: 8.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The MongoDB Ruby Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMREwDwYDVQQDDAhkYngt
|
14
14
|
cnVieTEXMBUGCgmSJomT8ixkARkWB21vbmdvZGIxEzARBgoJkiaJk/IsZAEZFgNj
|
15
|
-
|
15
|
+
b20wHhcNMjQwMjA5MTc0NzIyWhcNMjUwMjA4MTc0NzIyWjBBMREwDwYDVQQDDAhk
|
16
16
|
YngtcnVieTEXMBUGCgmSJomT8ixkARkWB21vbmdvZGIxEzARBgoJkiaJk/IsZAEZ
|
17
17
|
FgNjb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC0/Veq9l47cTfX
|
18
18
|
tQ+kHq2NOCwJuJGt1iXWQ/vH/yp7pZ/bLej7gPDl2CfIngAXRjM7r1FkR9ya7VAm
|
@@ -25,17 +25,17 @@ cert_chain:
|
|
25
25
|
D+YQSuB2qYu021FI9zeY9sbZyWysEXBxhwrmTk+XUV0qz+OQZkMCAwEAAaN7MHkw
|
26
26
|
CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFH4nnr4tYlatU57RbExW
|
27
27
|
jG86YM5nMB8GA1UdEQQYMBaBFGRieC1ydWJ5QG1vbmdvZGIuY29tMB8GA1UdEgQY
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
MBaBFGRieC1ydWJ5QG1vbmdvZGIuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQBKGtHA
|
29
|
+
fpi3N/BL1J5O4CBsAjtF4jHDiw2r5MwK+66NzMh3uedjgPI7MoosemLy++SB+8BR
|
30
|
+
SE8bDkb6gfDQQzrI6KSXXyqH2TbQXpY5Tac7/yqXRiu8G2qOrOj4czB/Hq7j09CV
|
31
|
+
YoH88v6hL11i5jt6jPjFh8hXYG0hDQxhi3atRz5Wwd98tUf2DSbyJXJiRgCBeZjl
|
32
|
+
rP7AnKsWMu0C+zPlL+nXtQr+nTFtkKXRWfUJMqePpBqtriQvgQ+Y1ItqYVTSLuiM
|
33
|
+
iwUMcn/rGhdCMBSaKDXdFkIveCHQE2f2WBo2EdErrcTrgEKYYdNfzcb/43j7L1kx
|
34
|
+
AUwyTtk+HFrviBynQbKN82rjbZE+5gukVea5c7idQPkqacPYsoU37DI+hTlUyJkV
|
35
|
+
dcTtfEg44lLlfNukBslfiQf54r+uWbyB0m0rDUN/py7/Ghyzt5GLBU91uCO3dGoI
|
36
|
+
55uFRHMvEcJMTDeImC/nuucPCAiEGMHggr9+NPC0tqpxjGKTo7lS7GzUFjg=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: activemodel
|
@@ -1196,7 +1196,7 @@ metadata:
|
|
1196
1196
|
documentation_uri: https://www.mongodb.com/docs/mongoid/
|
1197
1197
|
homepage_uri: https://mongoid.org/
|
1198
1198
|
source_code_uri: https://github.com/mongodb/mongoid
|
1199
|
-
post_install_message:
|
1199
|
+
post_install_message:
|
1200
1200
|
rdoc_options: []
|
1201
1201
|
require_paths:
|
1202
1202
|
- lib
|
@@ -1211,8 +1211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1211
1211
|
- !ruby/object:Gem::Version
|
1212
1212
|
version: 1.3.6
|
1213
1213
|
requirements: []
|
1214
|
-
rubygems_version: 3.
|
1215
|
-
signing_key:
|
1214
|
+
rubygems_version: 3.5.3
|
1215
|
+
signing_key:
|
1216
1216
|
specification_version: 4
|
1217
1217
|
summary: Elegant Persistence in Ruby for MongoDB.
|
1218
1218
|
test_files:
|
metadata.gz.sig
CHANGED
Binary file
|