mongoid 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mongoid/atomic.rb +3 -3
- data/lib/mongoid/attributes.rb +1 -2
- data/lib/mongoid/attributes/dynamic.rb +3 -2
- data/lib/mongoid/attributes/nested.rb +1 -1
- data/lib/mongoid/attributes/processing.rb +0 -4
- data/lib/mongoid/changeable.rb +1 -1
- data/lib/mongoid/clients/options.rb +1 -1
- data/lib/mongoid/composable.rb +3 -1
- data/lib/mongoid/contextual/atomic.rb +1 -1
- data/lib/mongoid/contextual/geo_near.rb +3 -2
- data/lib/mongoid/contextual/memory.rb +3 -3
- data/lib/mongoid/contextual/mongo.rb +5 -5
- data/lib/mongoid/contextual/none.rb +14 -2
- data/lib/mongoid/copyable.rb +1 -5
- data/lib/mongoid/criteria.rb +2 -2
- data/lib/mongoid/criteria/findable.rb +3 -2
- data/lib/mongoid/criteria/includable.rb +2 -2
- data/lib/mongoid/criteria/queryable/aggregable.rb +1 -1
- data/lib/mongoid/criteria/queryable/extensions/array.rb +1 -1
- data/lib/mongoid/criteria/queryable/extensions/boolean.rb +1 -1
- data/lib/mongoid/criteria/queryable/extensions/hash.rb +4 -4
- data/lib/mongoid/criteria/queryable/extensions/object.rb +4 -4
- data/lib/mongoid/criteria/queryable/extensions/regexp.rb +34 -0
- data/lib/mongoid/criteria/queryable/options.rb +16 -0
- data/lib/mongoid/criteria/queryable/selector.rb +1 -1
- data/lib/mongoid/document.rb +1 -1
- data/lib/mongoid/errors/delete_restriction.rb +2 -2
- data/lib/mongoid/errors/inverse_not_found.rb +1 -1
- data/lib/mongoid/extensions/hash.rb +3 -2
- data/lib/mongoid/extensions/object.rb +2 -2
- data/lib/mongoid/extensions/time.rb +1 -1
- data/lib/mongoid/factory.rb +0 -1
- data/lib/mongoid/fields/foreign_key.rb +2 -2
- data/lib/mongoid/findable.rb +1 -1
- data/lib/mongoid/indexable.rb +3 -2
- data/lib/mongoid/indexable/specification.rb +1 -1
- data/lib/mongoid/interceptable.rb +3 -9
- data/lib/mongoid/loggable.rb +1 -1
- data/lib/mongoid/matchable.rb +16 -9
- data/lib/mongoid/matchable/all.rb +2 -2
- data/lib/mongoid/matchable/and.rb +3 -3
- data/lib/mongoid/matchable/default.rb +2 -2
- data/lib/mongoid/matchable/elem_match.rb +3 -3
- data/lib/mongoid/matchable/exists.rb +2 -2
- data/lib/mongoid/matchable/gt.rb +2 -2
- data/lib/mongoid/matchable/gte.rb +2 -2
- data/lib/mongoid/matchable/in.rb +2 -2
- data/lib/mongoid/matchable/lt.rb +2 -2
- data/lib/mongoid/matchable/lte.rb +2 -2
- data/lib/mongoid/matchable/ne.rb +2 -2
- data/lib/mongoid/matchable/nin.rb +2 -2
- data/lib/mongoid/matchable/or.rb +3 -3
- data/lib/mongoid/matchable/regexp.rb +27 -0
- data/lib/mongoid/matchable/size.rb +2 -2
- data/lib/mongoid/persistable.rb +0 -3
- data/lib/mongoid/persistable/creatable.rb +2 -4
- data/lib/mongoid/persistable/deletable.rb +1 -1
- data/lib/mongoid/persistable/settable.rb +1 -1
- data/lib/mongoid/persistable/upsertable.rb +1 -1
- data/lib/mongoid/persistence_context.rb +2 -3
- data/lib/mongoid/relations/accessors.rb +1 -2
- data/lib/mongoid/relations/bindings/embedded/in.rb +0 -4
- data/lib/mongoid/relations/bindings/embedded/many.rb +1 -8
- data/lib/mongoid/relations/bindings/embedded/one.rb +0 -10
- data/lib/mongoid/relations/bindings/referenced/many.rb +0 -4
- data/lib/mongoid/relations/bindings/referenced/many_to_many.rb +4 -4
- data/lib/mongoid/relations/builders/embedded/one.rb +1 -1
- data/lib/mongoid/relations/builders/nested_attributes/many.rb +1 -1
- data/lib/mongoid/relations/conversions.rb +1 -1
- data/lib/mongoid/relations/counter_cache.rb +10 -10
- data/lib/mongoid/relations/eager.rb +6 -11
- data/lib/mongoid/relations/eager/base.rb +4 -4
- data/lib/mongoid/relations/embedded/batchable.rb +3 -3
- data/lib/mongoid/relations/embedded/in.rb +1 -3
- data/lib/mongoid/relations/embedded/many.rb +12 -9
- data/lib/mongoid/relations/embedded/one.rb +1 -3
- data/lib/mongoid/relations/macros.rb +3 -2
- data/lib/mongoid/relations/metadata.rb +3 -3
- data/lib/mongoid/relations/nested_builder.rb +1 -1
- data/lib/mongoid/relations/proxy.rb +3 -2
- data/lib/mongoid/relations/referenced/in.rb +1 -4
- data/lib/mongoid/relations/referenced/many.rb +5 -7
- data/lib/mongoid/relations/referenced/many_to_many.rb +2 -2
- data/lib/mongoid/relations/referenced/one.rb +0 -2
- data/lib/mongoid/relations/reflections.rb +2 -2
- data/lib/mongoid/relations/synchronization.rb +11 -11
- data/lib/mongoid/scopable.rb +2 -2
- data/lib/mongoid/serializable.rb +4 -3
- data/lib/mongoid/tasks/database.rb +2 -1
- data/lib/mongoid/threaded.rb +4 -4
- data/lib/mongoid/validatable.rb +1 -1
- data/lib/mongoid/validatable/macros.rb +4 -2
- data/lib/mongoid/version.rb +1 -1
- data/lib/rails/generators/mongoid/config/templates/mongoid.yml +12 -2
- data/spec/app/models/book.rb +2 -1
- data/spec/app/models/page.rb +1 -1
- data/spec/mongoid/contextual/none_spec.rb +15 -0
- data/spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb +89 -0
- data/spec/mongoid/criteria/queryable/selectable_spec.rb +15 -0
- data/spec/mongoid/criteria_spec.rb +6 -2
- data/spec/mongoid/interceptable_spec.rb +19 -0
- data/spec/mongoid/matchable/all_spec.rb +4 -4
- data/spec/mongoid/matchable/and_spec.rb +10 -10
- data/spec/mongoid/matchable/default_spec.rb +12 -12
- data/spec/mongoid/matchable/elem_match_spec.rb +11 -11
- data/spec/mongoid/matchable/exists_spec.rb +5 -5
- data/spec/mongoid/matchable/gt_spec.rb +8 -8
- data/spec/mongoid/matchable/gte_spec.rb +8 -8
- data/spec/mongoid/matchable/in_spec.rb +5 -5
- data/spec/mongoid/matchable/lt_spec.rb +8 -8
- data/spec/mongoid/matchable/lte_spec.rb +8 -8
- data/spec/mongoid/matchable/ne_spec.rb +5 -5
- data/spec/mongoid/matchable/nin_spec.rb +5 -5
- data/spec/mongoid/matchable/or_spec.rb +7 -7
- data/spec/mongoid/matchable/regexp_spec.rb +59 -0
- data/spec/mongoid/matchable/size_spec.rb +3 -3
- data/spec/mongoid/matchable_spec.rb +108 -58
- data/spec/mongoid/persistable/deletable_spec.rb +15 -0
- data/spec/mongoid/persistable/settable_spec.rb +16 -0
- data/spec/mongoid/persistence_context_spec.rb +22 -1
- data/spec/mongoid/relations/bindings/referenced/many_to_many_spec.rb +4 -4
- data/spec/mongoid/relations/embedded/many_spec.rb +24 -6
- data/spec/mongoid/relations/referenced/many_to_many_spec.rb +1 -1
- data/spec/mongoid/relations/synchronization_spec.rb +48 -2
- data/spec/mongoid/relations/touchable_spec.rb +40 -0
- data/spec/mongoid/validatable/uniqueness_spec.rb +2 -0
- data/spec/spec_helper.rb +1 -1
- metadata +9 -26
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -1
- metadata.gz.sig +0 -1
@@ -213,6 +213,21 @@ describe Mongoid::Persistable::Deletable do
|
|
213
213
|
expect(removed).to eq(1)
|
214
214
|
end
|
215
215
|
end
|
216
|
+
|
217
|
+
context "when the conditions need to be mongoized" do
|
218
|
+
|
219
|
+
let!(:removed) do
|
220
|
+
Person.delete_all(id: person.id)
|
221
|
+
end
|
222
|
+
|
223
|
+
it "removes the matching documents" do
|
224
|
+
expect(Person.count).to eq(1)
|
225
|
+
end
|
226
|
+
|
227
|
+
it "returns the number of documents removed" do
|
228
|
+
expect(removed).to eq(1)
|
229
|
+
end
|
230
|
+
end
|
216
231
|
end
|
217
232
|
end
|
218
233
|
end
|
@@ -230,6 +230,22 @@ describe Mongoid::Persistable::Settable do
|
|
230
230
|
end
|
231
231
|
end
|
232
232
|
|
233
|
+
context 'when the field is assigned with nil' do
|
234
|
+
|
235
|
+
before do
|
236
|
+
church.location = nil
|
237
|
+
church.set('location.neighborhood' => 'Kreuzberg')
|
238
|
+
end
|
239
|
+
|
240
|
+
it 'updates the hash while keeping existing key and values locally' do
|
241
|
+
expect(church.location).to eq({'neighborhood' => 'Kreuzberg'})
|
242
|
+
end
|
243
|
+
|
244
|
+
it 'updates the hash in the database' do
|
245
|
+
expect(church.reload.location).to eq({'neighborhood' => 'Kreuzberg'})
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
233
249
|
context 'when the field type is String' do
|
234
250
|
|
235
251
|
before do
|
@@ -211,7 +211,28 @@ describe Mongoid::PersistenceContext do
|
|
211
211
|
end
|
212
212
|
|
213
213
|
it 'keeps the other options of the persistence context' do
|
214
|
-
expect(persistence_context.collection(Person.new).
|
214
|
+
expect(persistence_context.collection(Person.new).options[:read]).to eq(options[:read])
|
215
|
+
end
|
216
|
+
|
217
|
+
context 'when the parent object has a client set' do
|
218
|
+
|
219
|
+
let(:file) do
|
220
|
+
File.join(File.dirname(__FILE__), "..", "config", "mongoid.yml")
|
221
|
+
end
|
222
|
+
|
223
|
+
before do
|
224
|
+
Mongoid::Clients.clear
|
225
|
+
Mongoid.load!(file, :test)
|
226
|
+
Person.store_in(client: 'reports')
|
227
|
+
end
|
228
|
+
|
229
|
+
after do
|
230
|
+
Person.reset_storage_options!
|
231
|
+
end
|
232
|
+
|
233
|
+
it 'uses the client of the parent object' do
|
234
|
+
expect(persistence_context.collection(Person.new).client.database.name).to eq('reports')
|
235
|
+
end
|
215
236
|
end
|
216
237
|
end
|
217
238
|
|
@@ -43,11 +43,11 @@ describe Mongoid::Relations::Bindings::Referenced::ManyToMany do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it "syncs the base" do
|
46
|
-
expect(person
|
46
|
+
expect(person._synced?("preference_ids")).to be(true)
|
47
47
|
end
|
48
48
|
|
49
49
|
it "syncs the inverse" do
|
50
|
-
expect(preference_two
|
50
|
+
expect(preference_two._synced?("person_ids")).to be(true)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -98,11 +98,11 @@ describe Mongoid::Relations::Bindings::Referenced::ManyToMany do
|
|
98
98
|
end
|
99
99
|
|
100
100
|
it "syncs the base" do
|
101
|
-
expect(person
|
101
|
+
expect(person._synced?("preference_ids")).to be(true)
|
102
102
|
end
|
103
103
|
|
104
104
|
it "syncs the inverse" do
|
105
|
-
expect(preference
|
105
|
+
expect(preference._synced?("person_ids")).to be(true)
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
@@ -428,22 +428,40 @@ describe Mongoid::Relations::Embedded::Many do
|
|
428
428
|
context "when replacing an existing relation" do
|
429
429
|
|
430
430
|
let(:person) do
|
431
|
-
Person.create(addresses:
|
431
|
+
Person.create(addresses: addresses)
|
432
|
+
end
|
433
|
+
|
434
|
+
let(:addresses) do
|
435
|
+
[
|
432
436
|
Address.new(street: "1st St"),
|
433
437
|
Address.new(street: "2nd St")
|
434
|
-
]
|
438
|
+
]
|
435
439
|
end
|
436
440
|
|
437
441
|
let(:address) do
|
438
442
|
Address.new(street: "3rd St")
|
439
443
|
end
|
440
444
|
|
441
|
-
|
442
|
-
|
445
|
+
context "when the replaced relation is different from the existing relation" do
|
446
|
+
|
447
|
+
before do
|
448
|
+
person.addresses = [ address ]
|
449
|
+
end
|
450
|
+
|
451
|
+
it "deletes the old documents" do
|
452
|
+
expect(person.reload.addresses).to eq([ address ])
|
453
|
+
end
|
443
454
|
end
|
444
455
|
|
445
|
-
|
446
|
-
|
456
|
+
context "when the replaced relation is identical to the existing relation" do
|
457
|
+
|
458
|
+
before do
|
459
|
+
person.addresses = addresses
|
460
|
+
end
|
461
|
+
|
462
|
+
it "does nothing" do
|
463
|
+
expect(person.reload.addresses).to eq(addresses)
|
464
|
+
end
|
447
465
|
end
|
448
466
|
end
|
449
467
|
|
@@ -5,7 +5,7 @@ describe Mongoid::Relations::Referenced::ManyToMany do
|
|
5
5
|
before(:all) do
|
6
6
|
Mongoid.raise_not_found_error = true
|
7
7
|
Person.autosave(Person.relations["preferences"].merge!(autosave: true))
|
8
|
-
Person.
|
8
|
+
Person._synced(Person.relations["preferences"])
|
9
9
|
end
|
10
10
|
|
11
11
|
after(:all) do
|
@@ -4,7 +4,7 @@ describe Mongoid::Relations::Synchronization do
|
|
4
4
|
|
5
5
|
before(:all) do
|
6
6
|
Mongoid.raise_not_found_error = true
|
7
|
-
Person.
|
7
|
+
Person._synced(Person.relations["preferences"])
|
8
8
|
end
|
9
9
|
|
10
10
|
after(:all) do
|
@@ -12,6 +12,52 @@ describe Mongoid::Relations::Synchronization do
|
|
12
12
|
Person.reset_callbacks(:destroy)
|
13
13
|
end
|
14
14
|
|
15
|
+
describe 'Model loading' do
|
16
|
+
|
17
|
+
let(:model_synced) do
|
18
|
+
class TestModel
|
19
|
+
include Mongoid::Document
|
20
|
+
field :_synced
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
let(:model_synced?) do
|
25
|
+
class TestModel
|
26
|
+
include Mongoid::Document
|
27
|
+
field :_synced?
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
let(:model_syncable?) do
|
32
|
+
class TestModel
|
33
|
+
include Mongoid::Document
|
34
|
+
field :_syncable?
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
after do
|
39
|
+
Object.send(:remove_const, :TestModel)
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'prohibits the use of :_sycned as an attribute' do
|
43
|
+
expect {
|
44
|
+
model_synced
|
45
|
+
}.to raise_exception(Mongoid::Errors::InvalidField)
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'prohibits the use of :_synced? as an attribute' do
|
49
|
+
expect {
|
50
|
+
model_synced?
|
51
|
+
}.to raise_exception(Mongoid::Errors::InvalidField)
|
52
|
+
end
|
53
|
+
|
54
|
+
it 'prohibits the use of :_syncable? as an attribute' do
|
55
|
+
expect {
|
56
|
+
model_syncable?
|
57
|
+
}.to raise_exception(Mongoid::Errors::InvalidField)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
15
61
|
describe ".update_inverse_keys" do
|
16
62
|
|
17
63
|
let(:agent) do
|
@@ -119,7 +165,7 @@ describe Mongoid::Relations::Synchronization do
|
|
119
165
|
end
|
120
166
|
|
121
167
|
it "resets the synced flag" do
|
122
|
-
expect(person.
|
168
|
+
expect(person._synced["preference_ids"]).to be false
|
123
169
|
end
|
124
170
|
|
125
171
|
context "when subsequently setting with keys" do
|
@@ -227,6 +227,44 @@ describe Mongoid::Relations::Touchable do
|
|
227
227
|
end
|
228
228
|
end
|
229
229
|
|
230
|
+
context "when the parent of embedded doc has cascade callbacks" do
|
231
|
+
|
232
|
+
let!(:book) do
|
233
|
+
Book.new
|
234
|
+
end
|
235
|
+
|
236
|
+
before do
|
237
|
+
book.pages.new
|
238
|
+
book.save
|
239
|
+
book.unset(:updated_at)
|
240
|
+
book.pages.first.touch
|
241
|
+
end
|
242
|
+
|
243
|
+
it "touches the parent document" do
|
244
|
+
expect(book.updated_at).to be_within(5).of(Time.now)
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
context "when multiple embedded docs with cascade callbacks" do
|
249
|
+
|
250
|
+
let!(:book) do
|
251
|
+
Book.new
|
252
|
+
end
|
253
|
+
|
254
|
+
before do
|
255
|
+
2.times { book.pages.new }
|
256
|
+
book.save
|
257
|
+
book.unset(:updated_at)
|
258
|
+
book.pages.first.content = "foo"
|
259
|
+
book.pages.second.content = "bar"
|
260
|
+
book.pages.first.touch
|
261
|
+
end
|
262
|
+
|
263
|
+
it "touches the parent document" do
|
264
|
+
expect(book.updated_at).to be_within(5).of(Time.now)
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
230
268
|
context "when the relation is nil" do
|
231
269
|
|
232
270
|
let!(:agent) do
|
@@ -343,6 +381,7 @@ describe Mongoid::Relations::Touchable do
|
|
343
381
|
end
|
344
382
|
|
345
383
|
it "does not persist other attribute changes" do
|
384
|
+
expect(band.name).to eq('Nocebo')
|
346
385
|
expect(band.reload.name).not_to eq('Nocebo')
|
347
386
|
end
|
348
387
|
end
|
@@ -354,6 +393,7 @@ describe Mongoid::Relations::Touchable do
|
|
354
393
|
end
|
355
394
|
|
356
395
|
it "does not persist other attribute changes" do
|
396
|
+
expect(band.name).to eq('Nocebo')
|
357
397
|
expect(band.reload.name).not_to eq('Nocebo')
|
358
398
|
end
|
359
399
|
end
|
@@ -2424,6 +2424,7 @@ describe Mongoid::Validatable::UniquenessValidator do
|
|
2424
2424
|
|
2425
2425
|
before do
|
2426
2426
|
Person.validates_uniqueness_of(:username)
|
2427
|
+
Person.index({ ssn: 1 }, { unique: true })
|
2427
2428
|
Person.create_indexes
|
2428
2429
|
end
|
2429
2430
|
|
@@ -2433,6 +2434,7 @@ describe Mongoid::Validatable::UniquenessValidator do
|
|
2433
2434
|
|
2434
2435
|
after do
|
2435
2436
|
Person.reset_callbacks(:validate)
|
2437
|
+
Person.collection.drop
|
2436
2438
|
end
|
2437
2439
|
|
2438
2440
|
it "transfers the options to the cloned client" do
|
data/spec/spec_helper.rb
CHANGED
@@ -36,7 +36,7 @@ require 'support/authorization'
|
|
36
36
|
require 'support/expectations'
|
37
37
|
|
38
38
|
# Give MongoDB time to start up on the travis ci environment.
|
39
|
-
if (ENV['CI'] == 'travis')
|
39
|
+
if (ENV['CI'] == 'travis' || ENV['CI'] == 'evergreen')
|
40
40
|
starting = true
|
41
41
|
client = Mongo::Client.new(['127.0.0.1:27017'])
|
42
42
|
while starting
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Durran Jordan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
|
14
|
-
ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
|
15
|
-
Y29tMB4XDTE2MTIwMTE0MDcxMloXDTE3MTIwMTE0MDcxMlowQjEUMBIGA1UEAwwL
|
16
|
-
ZHJpdmVyLXJ1YnkxFTATBgoJkiaJk/IsZAEZFgUxMGdlbjETMBEGCgmSJomT8ixk
|
17
|
-
ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANFdSAa8fRm1
|
18
|
-
bAM9za6Z0fAH4g02bqM1NGnw8zJQrE/PFrFfY6IFCT2AsLfOwr1maVm7iU1+kdVI
|
19
|
-
IQ+iI/9+E+ArJ+rbGV3dDPQ+SLl3mLT+vXjfjcxMqI2IW6UuVtt2U3Rxd4QU0kdT
|
20
|
-
JxmcPYs5fDN6BgYc6XXgUjy3m+Kwha2pGctdciUOwEfOZ4RmNRlEZKCMLRHdFP8j
|
21
|
-
4WTnJSGfXDiuoXICJb5yOPOZPuaapPSNXp93QkUdsqdKC32I+KMpKKYGBQ6yisfA
|
22
|
-
5MyVPPCzLR1lP5qXVGJPnOqUAkvEUfCahg7EP9tI20qxiXrR6TSEraYhIFXL0EGY
|
23
|
-
u8KAcPHm5KkCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
|
24
|
-
BBYEFFt3WbF+9JpUjAoj62cQBgNb8HzXMCAGA1UdEQQZMBeBFWRyaXZlci1ydWJ5
|
25
|
-
QDEwZ2VuLmNvbTAgBgNVHRIEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5jb20wDQYJ
|
26
|
-
KoZIhvcNAQEFBQADggEBAKBDaVkycCUC1zMfpAkXIgWtji2Nr2ZygYQR53AgxOaE
|
27
|
-
7nqxdh5Lh8pnfwa71/ucrZFJt+g/mEhen9lFNmcizvpP43Hh4rYf8j6T8Y+mQ6tr
|
28
|
-
sp5xWiv93DlLXGmas0hv9VRYDvV1vLFaG05FHOAZKdo6pD2t6jNyMSAn4fMHKctw
|
29
|
-
UoYN5FLt84jacRQF5nhy9gBhfgvA19LcjeMLQC11x3fykDLzCXF2wEe5Q5iYaWvb
|
30
|
-
cGiNQIiHBj/9/xHfOyOthBPUevTiVnuffarDr434z/LGLwYzgaG5EcJFvZqpvUpP
|
31
|
-
fGcAPtAZUMGLXwcOB1BJEFkDxUQIJiEpSmf4YzzZhEM=
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2017-01-26 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: activemodel
|
@@ -258,6 +236,7 @@ files:
|
|
258
236
|
- lib/mongoid/matchable/ne.rb
|
259
237
|
- lib/mongoid/matchable/nin.rb
|
260
238
|
- lib/mongoid/matchable/or.rb
|
239
|
+
- lib/mongoid/matchable/regexp.rb
|
261
240
|
- lib/mongoid/matchable/size.rb
|
262
241
|
- lib/mongoid/persistable.rb
|
263
242
|
- lib/mongoid/persistable/creatable.rb
|
@@ -631,6 +610,7 @@ files:
|
|
631
610
|
- spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
|
632
611
|
- spec/mongoid/criteria/queryable/extensions/object_spec.rb
|
633
612
|
- spec/mongoid/criteria/queryable/extensions/range_spec.rb
|
613
|
+
- spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
|
634
614
|
- spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
|
635
615
|
- spec/mongoid/criteria/queryable/extensions/set_spec.rb
|
636
616
|
- spec/mongoid/criteria/queryable/extensions/string_spec.rb
|
@@ -742,6 +722,7 @@ files:
|
|
742
722
|
- spec/mongoid/matchable/ne_spec.rb
|
743
723
|
- spec/mongoid/matchable/nin_spec.rb
|
744
724
|
- spec/mongoid/matchable/or_spec.rb
|
725
|
+
- spec/mongoid/matchable/regexp_spec.rb
|
745
726
|
- spec/mongoid/matchable/size_spec.rb
|
746
727
|
- spec/mongoid/matchable_spec.rb
|
747
728
|
- spec/mongoid/persistable/creatable_spec.rb
|
@@ -862,7 +843,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
862
843
|
version: 1.3.6
|
863
844
|
requirements: []
|
864
845
|
rubyforge_project: mongoid
|
865
|
-
rubygems_version: 2.
|
846
|
+
rubygems_version: 2.6.11
|
866
847
|
signing_key:
|
867
848
|
specification_version: 4
|
868
849
|
summary: Elegant Persistence in Ruby for MongoDB.
|
@@ -1123,6 +1104,7 @@ test_files:
|
|
1123
1104
|
- spec/mongoid/criteria/queryable/extensions/nil_class_spec.rb
|
1124
1105
|
- spec/mongoid/criteria/queryable/extensions/object_spec.rb
|
1125
1106
|
- spec/mongoid/criteria/queryable/extensions/range_spec.rb
|
1107
|
+
- spec/mongoid/criteria/queryable/extensions/regexp_raw_spec.rb
|
1126
1108
|
- spec/mongoid/criteria/queryable/extensions/regexp_spec.rb
|
1127
1109
|
- spec/mongoid/criteria/queryable/extensions/set_spec.rb
|
1128
1110
|
- spec/mongoid/criteria/queryable/extensions/string_spec.rb
|
@@ -1234,6 +1216,7 @@ test_files:
|
|
1234
1216
|
- spec/mongoid/matchable/ne_spec.rb
|
1235
1217
|
- spec/mongoid/matchable/nin_spec.rb
|
1236
1218
|
- spec/mongoid/matchable/or_spec.rb
|
1219
|
+
- spec/mongoid/matchable/regexp_spec.rb
|
1237
1220
|
- spec/mongoid/matchable/size_spec.rb
|
1238
1221
|
- spec/mongoid/matchable_spec.rb
|
1239
1222
|
- spec/mongoid/persistable/creatable_spec.rb
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
xp���ewE���lSeCQݔ�oNѨ+jSF7���0p�*=-2U����?ЌG�E��`a#K�|#�i�e��Z���cB�?��l=�LL�Q��K�>�bB#w�{B �q�b>$2��(ٛL� k��G���_ ˸,,��%Z�}n��k�2빎$Ґ��&I���"�$oͮ,cIt&b2 :�ܭ���y����vz؟��k�;����l�w>��\�=E��<�ˬ����o��a��
|
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
'���$l��Փ����Z�pkSu�%�)@���Z�$�0�kj�b+�t��tQ�!�Mȹ�����K�d�L0��AS��H���՝���#k@y2�/[`�I�?m� ��V�]U��L��f�`-aЉ�������A>��<�`�x��G[��W0懍2�)�k���6�blW��!����75�|X������f8Z��)+D�6幩�2��T�N�H.^0a����&5\���L�L����C.l
|