mongoid 8.1.11 → 8.1.13
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/config/locales/en.yml +26 -0
- data/lib/mongoid/association/depending.rb +8 -4
- data/lib/mongoid/association/embedded/batchable.rb +11 -10
- data/lib/mongoid/association/embedded/embeds_many/proxy.rb +61 -0
- data/lib/mongoid/association/nested/many.rb +38 -3
- data/lib/mongoid/association/nested/nested_buildable.rb +14 -0
- data/lib/mongoid/association/referenced/has_many/proxy.rb +100 -1
- data/lib/mongoid/clients/factory.rb +4 -0
- data/lib/mongoid/config.rb +62 -0
- data/lib/mongoid/contextual/aggregable/memory.rb +5 -2
- data/lib/mongoid/contextual/memory.rb +18 -7
- data/lib/mongoid/criteria/queryable/mergeable.rb +12 -0
- data/lib/mongoid/criteria/queryable/selectable.rb +109 -0
- data/lib/mongoid/errors/in_memory_regexp_timeout.rb +26 -0
- data/lib/mongoid/errors.rb +1 -0
- data/lib/mongoid/extensions/hash.rb +27 -1
- data/lib/mongoid/field_readable.rb +70 -0
- data/lib/mongoid/matchable.rb +6 -1
- data/lib/mongoid/matcher/eq_impl_with_regexp.rb +3 -5
- data/lib/mongoid/matcher/regex.rb +8 -9
- data/lib/mongoid/matcher/regexp_budget.rb +389 -0
- data/lib/mongoid/matcher.rb +1 -0
- data/lib/mongoid/threaded.rb +3 -0
- data/lib/mongoid/touchable.rb +1 -1
- data/lib/mongoid/version.rb +1 -1
- data/lib/mongoid/warnings.rb +1 -0
- data/spec/integration/app_spec.rb +8 -0
- data/spec/integration/associations/embeds_many_spec.rb +41 -0
- data/spec/integration/associations/has_and_belongs_to_many_spec.rb +17 -2
- data/spec/integration/dots_and_dollars_spec.rb +12 -2
- data/spec/integration/matcher_operator_data/regex.yml +21 -0
- data/spec/integration/matcher_regexp_timeout_spec.rb +215 -0
- data/spec/integration/query_operator_guard_spec.rb +89 -0
- data/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb +48 -0
- data/spec/mongoid/association/referenced/has_many/proxy_spec.rb +145 -0
- data/spec/mongoid/attributes/nested_spec.rb +204 -10
- data/spec/mongoid/clients/factory_spec.rb +30 -0
- data/spec/mongoid/contextual/aggregable/memory_spec.rb +91 -0
- data/spec/mongoid/contextual/memory_spec.rb +177 -0
- data/spec/mongoid/criteria/queryable/selectable_logical_spec.rb +2 -0
- data/spec/mongoid/criteria/queryable/selectable_where_spec.rb +235 -0
- data/spec/mongoid/criteria_spec.rb +2 -0
- data/spec/mongoid/extensions/hash_spec.rb +236 -0
- data/spec/mongoid/matcher/regexp_budget_spec.rb +570 -0
- data/spec/mongoid/touchable_spec.rb +12 -0
- data/spec/shared/CANDIDATE.md +28 -0
- data/spec/shared/lib/mrss/spec_organizer.rb +32 -3
- data/spec/shared/shlib/server.sh +1 -1
- metadata +13 -2
data/spec/shared/shlib/server.sh
CHANGED
|
@@ -78,7 +78,7 @@ install_mlaunch_venv() {
|
|
|
78
78
|
# Debian11/Ubuntu2204 have venv installed, but it is nonfunctional unless
|
|
79
79
|
# the python3-venv package is also installed (it lacks the ensurepip
|
|
80
80
|
# module).
|
|
81
|
-
sudo apt-get install --yes python3-venv
|
|
81
|
+
sudo apt-get update && sudo apt-get install --yes python3-venv
|
|
82
82
|
fi
|
|
83
83
|
if test "$USE_SYSTEM_PYTHON_PACKAGES" = 1 &&
|
|
84
84
|
python3 -m pip list |grep mtools
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The MongoDB Ruby Team
|
|
@@ -286,6 +286,7 @@ files:
|
|
|
286
286
|
- lib/mongoid/errors/empty_config_file.rb
|
|
287
287
|
- lib/mongoid/errors/immutable_attribute.rb
|
|
288
288
|
- lib/mongoid/errors/in_memory_collation_not_supported.rb
|
|
289
|
+
- lib/mongoid/errors/in_memory_regexp_timeout.rb
|
|
289
290
|
- lib/mongoid/errors/invalid_async_query_executor.rb
|
|
290
291
|
- lib/mongoid/errors/invalid_collection.rb
|
|
291
292
|
- lib/mongoid/errors/invalid_config_file.rb
|
|
@@ -365,6 +366,7 @@ files:
|
|
|
365
366
|
- lib/mongoid/extensions/time_with_zone.rb
|
|
366
367
|
- lib/mongoid/extensions/true_class.rb
|
|
367
368
|
- lib/mongoid/factory.rb
|
|
369
|
+
- lib/mongoid/field_readable.rb
|
|
368
370
|
- lib/mongoid/fields.rb
|
|
369
371
|
- lib/mongoid/fields/foreign_key.rb
|
|
370
372
|
- lib/mongoid/fields/localized.rb
|
|
@@ -409,6 +411,7 @@ files:
|
|
|
409
411
|
- lib/mongoid/matcher/not.rb
|
|
410
412
|
- lib/mongoid/matcher/or.rb
|
|
411
413
|
- lib/mongoid/matcher/regex.rb
|
|
414
|
+
- lib/mongoid/matcher/regexp_budget.rb
|
|
412
415
|
- lib/mongoid/matcher/size.rb
|
|
413
416
|
- lib/mongoid/matcher/type.rb
|
|
414
417
|
- lib/mongoid/persistable.rb
|
|
@@ -565,8 +568,10 @@ files:
|
|
|
565
568
|
- spec/integration/matcher_operator_data/type_timestamp.yml
|
|
566
569
|
- spec/integration/matcher_operator_data/type_undefined.yml
|
|
567
570
|
- spec/integration/matcher_operator_spec.rb
|
|
571
|
+
- spec/integration/matcher_regexp_timeout_spec.rb
|
|
568
572
|
- spec/integration/matcher_spec.rb
|
|
569
573
|
- spec/integration/persistence/range_field_spec.rb
|
|
574
|
+
- spec/integration/query_operator_guard_spec.rb
|
|
570
575
|
- spec/integration/server_query_spec.rb
|
|
571
576
|
- spec/integration/shardable_spec.rb
|
|
572
577
|
- spec/integration/stringified_symbol_field_spec.rb
|
|
@@ -810,6 +815,7 @@ files:
|
|
|
810
815
|
- spec/mongoid/matcher/extract_attribute_data/numeric_keys.yml
|
|
811
816
|
- spec/mongoid/matcher/extract_attribute_data/traversal.yml
|
|
812
817
|
- spec/mongoid/matcher/extract_attribute_spec.rb
|
|
818
|
+
- spec/mongoid/matcher/regexp_budget_spec.rb
|
|
813
819
|
- spec/mongoid/mongoizable_spec.rb
|
|
814
820
|
- spec/mongoid/persistable/creatable_spec.rb
|
|
815
821
|
- spec/mongoid/persistable/deletable_spec.rb
|
|
@@ -862,6 +868,7 @@ files:
|
|
|
862
868
|
- spec/mongoid_spec.rb
|
|
863
869
|
- spec/rails/controller_extension/controller_runtime_spec.rb
|
|
864
870
|
- spec/rails/mongoid_spec.rb
|
|
871
|
+
- spec/shared/CANDIDATE.md
|
|
865
872
|
- spec/shared/LICENSE
|
|
866
873
|
- spec/shared/bin/get-mongodb-download-url
|
|
867
874
|
- spec/shared/bin/s3-copy
|
|
@@ -1186,7 +1193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1186
1193
|
- !ruby/object:Gem::Version
|
|
1187
1194
|
version: 1.3.6
|
|
1188
1195
|
requirements: []
|
|
1189
|
-
rubygems_version:
|
|
1196
|
+
rubygems_version: 4.0.21
|
|
1190
1197
|
specification_version: 4
|
|
1191
1198
|
summary: Elegant Persistence in Ruby for MongoDB.
|
|
1192
1199
|
test_files:
|
|
@@ -1284,8 +1291,10 @@ test_files:
|
|
|
1284
1291
|
- spec/integration/matcher_operator_data/type_timestamp.yml
|
|
1285
1292
|
- spec/integration/matcher_operator_data/type_undefined.yml
|
|
1286
1293
|
- spec/integration/matcher_operator_spec.rb
|
|
1294
|
+
- spec/integration/matcher_regexp_timeout_spec.rb
|
|
1287
1295
|
- spec/integration/matcher_spec.rb
|
|
1288
1296
|
- spec/integration/persistence/range_field_spec.rb
|
|
1297
|
+
- spec/integration/query_operator_guard_spec.rb
|
|
1289
1298
|
- spec/integration/server_query_spec.rb
|
|
1290
1299
|
- spec/integration/shardable_spec.rb
|
|
1291
1300
|
- spec/integration/stringified_symbol_field_spec.rb
|
|
@@ -1529,6 +1538,7 @@ test_files:
|
|
|
1529
1538
|
- spec/mongoid/matcher/extract_attribute_data/numeric_keys.yml
|
|
1530
1539
|
- spec/mongoid/matcher/extract_attribute_data/traversal.yml
|
|
1531
1540
|
- spec/mongoid/matcher/extract_attribute_spec.rb
|
|
1541
|
+
- spec/mongoid/matcher/regexp_budget_spec.rb
|
|
1532
1542
|
- spec/mongoid/mongoizable_spec.rb
|
|
1533
1543
|
- spec/mongoid/persistable/creatable_spec.rb
|
|
1534
1544
|
- spec/mongoid/persistable/deletable_spec.rb
|
|
@@ -1581,6 +1591,7 @@ test_files:
|
|
|
1581
1591
|
- spec/mongoid_spec.rb
|
|
1582
1592
|
- spec/rails/controller_extension/controller_runtime_spec.rb
|
|
1583
1593
|
- spec/rails/mongoid_spec.rb
|
|
1594
|
+
- spec/shared/CANDIDATE.md
|
|
1584
1595
|
- spec/shared/LICENSE
|
|
1585
1596
|
- spec/shared/bin/get-mongodb-download-url
|
|
1586
1597
|
- spec/shared/bin/s3-copy
|