mongoid 7.2.0 → 7.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Rakefile +16 -0
  4. data/lib/config/locales/en.yml +2 -2
  5. data/lib/mongoid/association/accessors.rb +1 -1
  6. data/lib/mongoid/association/constrainable.rb +1 -1
  7. data/lib/mongoid/association/depending.rb +4 -4
  8. data/lib/mongoid/association/embedded/batchable.rb +1 -1
  9. data/lib/mongoid/association/embedded/embedded_in.rb +1 -1
  10. data/lib/mongoid/association/embedded/embeds_many/proxy.rb +10 -3
  11. data/lib/mongoid/association/nested/many.rb +1 -1
  12. data/lib/mongoid/association/nested/one.rb +4 -2
  13. data/lib/mongoid/association/proxy.rb +6 -1
  14. data/lib/mongoid/association/referenced/auto_save.rb +2 -2
  15. data/lib/mongoid/association/referenced/has_many/enumerable.rb +493 -495
  16. data/lib/mongoid/association/referenced/has_many/proxy.rb +2 -2
  17. data/lib/mongoid/association/referenced/has_one/nested_builder.rb +2 -2
  18. data/lib/mongoid/attributes/projector.rb +120 -0
  19. data/lib/mongoid/attributes.rb +32 -14
  20. data/lib/mongoid/cacheable.rb +2 -2
  21. data/lib/mongoid/clients/factory.rb +22 -8
  22. data/lib/mongoid/clients.rb +1 -1
  23. data/lib/mongoid/config.rb +19 -2
  24. data/lib/mongoid/contextual/aggregable/mongo.rb +10 -8
  25. data/lib/mongoid/copyable.rb +1 -1
  26. data/lib/mongoid/criteria/findable.rb +1 -1
  27. data/lib/mongoid/criteria/queryable/expandable.rb +0 -24
  28. data/lib/mongoid/criteria/queryable/extensions/boolean.rb +1 -1
  29. data/lib/mongoid/criteria/queryable/extensions.rb +0 -4
  30. data/lib/mongoid/criteria/queryable/mergeable.rb +46 -20
  31. data/lib/mongoid/criteria/queryable/selectable.rb +8 -8
  32. data/lib/mongoid/criteria/queryable/selector.rb +0 -4
  33. data/lib/mongoid/criteria.rb +4 -5
  34. data/lib/mongoid/document.rb +4 -17
  35. data/lib/mongoid/errors/delete_restriction.rb +8 -9
  36. data/lib/mongoid/evolvable.rb +1 -1
  37. data/lib/mongoid/extensions/boolean.rb +1 -2
  38. data/lib/mongoid/extensions/false_class.rb +1 -1
  39. data/lib/mongoid/extensions/hash.rb +2 -2
  40. data/lib/mongoid/extensions/true_class.rb +1 -1
  41. data/lib/mongoid/fields.rb +43 -5
  42. data/lib/mongoid/inspectable.rb +1 -1
  43. data/lib/mongoid/interceptable.rb +3 -1
  44. data/lib/mongoid/matcher/bits.rb +41 -0
  45. data/lib/mongoid/matcher/bits_all_clear.rb +20 -0
  46. data/lib/mongoid/matcher/bits_all_set.rb +20 -0
  47. data/lib/mongoid/matcher/bits_any_clear.rb +20 -0
  48. data/lib/mongoid/matcher/bits_any_set.rb +20 -0
  49. data/lib/mongoid/matcher/elem_match.rb +2 -1
  50. data/lib/mongoid/matcher/expression.rb +9 -14
  51. data/lib/mongoid/matcher/field_expression.rb +4 -5
  52. data/lib/mongoid/matcher/field_operator.rb +13 -11
  53. data/lib/mongoid/matcher/mod.rb +17 -0
  54. data/lib/mongoid/matcher/type.rb +99 -0
  55. data/lib/mongoid/matcher.rb +26 -43
  56. data/lib/mongoid/persistable/deletable.rb +1 -2
  57. data/lib/mongoid/persistable/destroyable.rb +8 -2
  58. data/lib/mongoid/persistable/updatable.rb +27 -2
  59. data/lib/mongoid/query_cache.rb +35 -29
  60. data/lib/mongoid/reloadable.rb +5 -0
  61. data/lib/mongoid/selectable.rb +5 -7
  62. data/lib/mongoid/shardable.rb +21 -5
  63. data/lib/mongoid/touchable.rb +23 -4
  64. data/lib/mongoid/version.rb +1 -1
  65. data/lib/rails/generators/mongoid/config/config_generator.rb +8 -1
  66. data/spec/integration/app_spec.rb +171 -84
  67. data/spec/integration/associations/embeds_many_spec.rb +44 -0
  68. data/spec/integration/associations/has_one_spec.rb +48 -0
  69. data/spec/integration/callbacks_models.rb +49 -0
  70. data/spec/integration/callbacks_spec.rb +216 -0
  71. data/spec/integration/criteria/date_field_spec.rb +1 -1
  72. data/spec/integration/document_spec.rb +30 -0
  73. data/spec/integration/matcher_operator_data/bits_all_clear.yml +159 -0
  74. data/spec/integration/matcher_operator_data/bits_all_set.yml +159 -0
  75. data/spec/integration/matcher_operator_data/bits_any_clear.yml +159 -0
  76. data/spec/integration/matcher_operator_data/bits_any_set.yml +159 -0
  77. data/spec/integration/matcher_operator_data/comment.yml +22 -0
  78. data/spec/integration/matcher_operator_data/elem_match.yml +46 -0
  79. data/spec/integration/matcher_operator_data/gt_types.yml +63 -0
  80. data/spec/integration/matcher_operator_data/gte_types.yml +15 -0
  81. data/spec/integration/matcher_operator_data/implicit_traversal.yml +96 -0
  82. data/spec/integration/matcher_operator_data/in.yml +16 -0
  83. data/spec/integration/matcher_operator_data/lt_types.yml +15 -0
  84. data/spec/integration/matcher_operator_data/lte_types.yml +15 -0
  85. data/spec/integration/matcher_operator_data/mod.yml +55 -0
  86. data/spec/integration/matcher_operator_data/ne_types.yml +15 -0
  87. data/spec/integration/matcher_operator_data/type.yml +70 -0
  88. data/spec/integration/matcher_operator_data/type_array.yml +16 -0
  89. data/spec/integration/matcher_operator_data/type_binary.yml +18 -0
  90. data/spec/integration/matcher_operator_data/type_boolean.yml +39 -0
  91. data/spec/integration/matcher_operator_data/type_code.yml +26 -0
  92. data/spec/integration/matcher_operator_data/type_code_with_scope.yml +26 -0
  93. data/spec/integration/matcher_operator_data/type_date.yml +39 -0
  94. data/spec/integration/matcher_operator_data/type_db_pointer.yml +19 -0
  95. data/spec/integration/matcher_operator_data/type_decimal.yml +40 -0
  96. data/spec/integration/matcher_operator_data/type_double.yml +15 -0
  97. data/spec/integration/matcher_operator_data/type_int32.yml +33 -0
  98. data/spec/integration/matcher_operator_data/type_int64.yml +33 -0
  99. data/spec/integration/matcher_operator_data/type_max_key.yml +17 -0
  100. data/spec/integration/matcher_operator_data/type_min_key.yml +17 -0
  101. data/spec/integration/matcher_operator_data/type_null.yml +23 -0
  102. data/spec/integration/matcher_operator_data/type_object.yml +23 -0
  103. data/spec/integration/matcher_operator_data/type_object_id.yml +25 -0
  104. data/spec/integration/matcher_operator_data/type_regex.yml +44 -0
  105. data/spec/integration/matcher_operator_data/type_string.yml +15 -0
  106. data/spec/integration/matcher_operator_data/type_symbol.yml +32 -0
  107. data/spec/integration/matcher_operator_data/type_timestamp.yml +25 -0
  108. data/spec/integration/matcher_operator_data/type_undefined.yml +17 -0
  109. data/spec/lite_spec_helper.rb +5 -4
  110. data/spec/mongoid/association/depending_spec.rb +391 -352
  111. data/spec/mongoid/association/embedded/embedded_in/proxy_spec.rb +50 -0
  112. data/spec/mongoid/association/nested/one_spec.rb +18 -14
  113. data/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb +25 -8
  114. data/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb +1 -1
  115. data/spec/mongoid/association/referenced/has_many/binding_spec.rb +1 -1
  116. data/spec/mongoid/association/referenced/has_many/enumerable_spec.rb +1 -1
  117. data/spec/mongoid/association/referenced/has_one_models.rb +8 -0
  118. data/spec/mongoid/atomic/paths_spec.rb +105 -12
  119. data/spec/mongoid/attributes/projector_data/embedded.yml +105 -0
  120. data/spec/mongoid/attributes/projector_data/fields.yml +93 -0
  121. data/spec/mongoid/attributes/projector_spec.rb +41 -0
  122. data/spec/mongoid/attributes_spec.rb +333 -0
  123. data/spec/mongoid/clients/factory_spec.rb +48 -0
  124. data/spec/mongoid/config_spec.rb +32 -0
  125. data/spec/mongoid/contextual/atomic_spec.rb +17 -4
  126. data/spec/mongoid/contextual/mongo_spec.rb +2 -2
  127. data/spec/mongoid/criteria/modifiable_spec.rb +1 -1
  128. data/spec/mongoid/criteria/queryable/expandable_spec.rb +0 -73
  129. data/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb +1 -1
  130. data/spec/mongoid/criteria/queryable/mergeable_spec.rb +105 -7
  131. data/spec/mongoid/criteria/queryable/selectable_logical_spec.rb +265 -24
  132. data/spec/mongoid/criteria/queryable/selectable_shared_examples.rb +39 -0
  133. data/spec/mongoid/criteria/queryable/selectable_spec.rb +1 -565
  134. data/spec/mongoid/criteria/queryable/selectable_where_spec.rb +590 -0
  135. data/spec/mongoid/criteria_projection_spec.rb +411 -0
  136. data/spec/mongoid/criteria_spec.rb +0 -275
  137. data/spec/mongoid/document_fields_spec.rb +26 -0
  138. data/spec/mongoid/document_spec.rb +13 -13
  139. data/spec/mongoid/errors/delete_restriction_spec.rb +1 -1
  140. data/spec/mongoid/extensions/false_class_spec.rb +1 -1
  141. data/spec/mongoid/extensions/string_spec.rb +5 -5
  142. data/spec/mongoid/extensions/true_class_spec.rb +1 -1
  143. data/spec/mongoid/fields/localized_spec.rb +4 -4
  144. data/spec/mongoid/fields_spec.rb +4 -4
  145. data/spec/mongoid/inspectable_spec.rb +12 -4
  146. data/spec/mongoid/matcher/extract_attribute_data/numeric_keys.yml +104 -0
  147. data/spec/mongoid/matcher/extract_attribute_data/traversal.yml +68 -88
  148. data/spec/mongoid/matcher/extract_attribute_spec.rb +3 -13
  149. data/spec/mongoid/persistable/deletable_spec.rb +175 -1
  150. data/spec/mongoid/persistable/destroyable_spec.rb +191 -3
  151. data/spec/mongoid/persistable/savable_spec.rb +3 -5
  152. data/spec/mongoid/persistable/settable_spec.rb +30 -0
  153. data/spec/mongoid/persistable/upsertable_spec.rb +1 -1
  154. data/spec/mongoid/query_cache_middleware_spec.rb +8 -0
  155. data/spec/mongoid/reloadable_spec.rb +18 -1
  156. data/spec/mongoid/shardable_spec.rb +44 -0
  157. data/spec/mongoid/touchable_spec.rb +104 -16
  158. data/spec/mongoid/touchable_spec_models.rb +52 -0
  159. data/spec/mongoid/validatable_spec.rb +1 -1
  160. data/spec/shared/bin/get-mongodb-download-url +17 -0
  161. data/spec/shared/lib/mrss/cluster_config.rb +221 -0
  162. data/spec/shared/lib/mrss/constraints.rb +51 -0
  163. data/spec/shared/lib/mrss/docker_runner.rb +265 -0
  164. data/spec/shared/lib/mrss/lite_constraints.rb +16 -0
  165. data/spec/shared/lib/mrss/server_version_registry.rb +115 -0
  166. data/spec/shared/lib/mrss/spec_organizer.rb +14 -1
  167. data/spec/shared/lib/mrss/utils.rb +15 -0
  168. data/spec/shared/share/Dockerfile.erb +231 -0
  169. data/spec/shared/shlib/distro.sh +73 -0
  170. data/spec/shared/shlib/server.sh +290 -0
  171. data/spec/shared/shlib/set_env.sh +128 -0
  172. data/spec/spec_helper.rb +6 -2
  173. data/spec/support/client_registry.rb +9 -0
  174. data/spec/support/models/bolt.rb +8 -0
  175. data/spec/support/models/customer.rb +11 -0
  176. data/spec/support/models/customer_address.rb +12 -0
  177. data/spec/support/models/dictionary.rb +6 -0
  178. data/spec/support/models/hole.rb +13 -0
  179. data/spec/support/models/mop.rb +9 -0
  180. data/spec/support/models/nut.rb +8 -0
  181. data/spec/support/models/person.rb +6 -0
  182. data/spec/support/models/sealer.rb +8 -0
  183. data/spec/support/models/shirt.rb +12 -0
  184. data/spec/support/models/spacer.rb +8 -0
  185. data/spec/support/models/threadlocker.rb +8 -0
  186. data/spec/support/models/washer.rb +8 -0
  187. data/spec/support/spec_config.rb +8 -0
  188. data.tar.gz.sig +0 -0
  189. metadata +146 -14
  190. metadata.gz.sig +5 -2
  191. data/spec/support/cluster_config.rb +0 -158
data.tar.gz.sig CHANGED
Binary file
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: 7.2.0
4
+ version: 7.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
@@ -11,8 +11,8 @@ cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtkcml2
14
- ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
15
- MTkzNjAxWjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
14
+ ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjEwMjA5MTQxOTU3WhcNMjIwMjA5
15
+ MTQxOTU3WjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
16
16
  ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRXUgGvH0ZtWwDPc2umdHw
17
17
  B+INNm6jNTRp8PMyUKxPzxaxX2OiBQk9gLC3zsK9ZmlZu4lNfpHVSCEPoiP/fhPg
18
18
  Kyfq2xld3Qz0Pki5d5i0/r14343MTKiNiFulLlbbdlN0cXeEFNJHUycZnD2LOXwz
@@ -22,14 +22,14 @@ cert_chain:
22
22
  AgMBAAGjfTB7MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRbd1mx
23
23
  fvSaVIwKI+tnEAYDW/B81zAgBgNVHREEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5j
24
24
  b20wIAYDVR0SBBkwF4EVZHJpdmVyLXJ1YnlAMTBnZW4uY29tMA0GCSqGSIb3DQEB
25
- CwUAA4IBAQBfX4dwxG5PhtxES/LDEOaZIZXyaX6CKe367zhW+HxWbSOXMQJFkIQj
26
- m7tzT+sDFJXyiOv5cPtfpUam5pTiryzRw5HD6oxlPIt5vO15EJ69v++3m7shMLbw
27
- amZOajKXmu2ZGZfhOtj7bOTwmOj1AnWLKeOQIR3STvvfZCD+6dt1XenW7CdjCsxE
28
- ifervPjLFqFPsMOgaxikhgPK6bRtszrQhJSYlifKKzxbX1hYAsmGL7IxjubFSV5r
29
- gpvfPNWMwyBDlHaNS3GfO6cRRxBOvEG05GUCsvtTY4Bpe8yjE64wg1ymb47LMOnv
30
- Qb1lGORmf/opg45mluKUYl7pQNZHD0d3
25
+ CwUAA4IBAQCYGRgQbtk+g+Nuwg15p8jb+8bJlwHFHkb8rkLn00OPXLk3uBhImOKZ
26
+ mhwwr/8ZBkeE/PBDxkQjeua+NpqSaPr1lvXQaGpHxJzpR/BmSteeoF49jBu0dHaz
27
+ MRghinst6ROS1qVRae0z+wkbnufpH/NxdCUufb639nAlZguT2rGqvM6VZCC8eSO9
28
+ KfJA7/MEE+qQtiQgJaAUVRaGC8fLtmS555BPjNVITJs+BcGDYWh2clWuqlzjHOp3
29
+ YoFhlyUEi7VLlqNH0H/JFttVZK6+qmLelkVNcIYVLeWOB4Lf4VxEiYGEK1ORxsrY
30
+ iyYKJJALWY1FAInGRIlvkN+B8o3yIhq1
31
31
  -----END CERTIFICATE-----
32
- date: 2020-12-01 00:00:00.000000000 Z
32
+ date: 2021-05-08 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activemodel
@@ -40,7 +40,7 @@ dependencies:
40
40
  version: '5.1'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
- version: '6.1'
43
+ version: '6.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  version: '5.1'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.1'
53
+ version: '6.2'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: mongo
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -176,6 +176,7 @@ files:
176
176
  - lib/mongoid/attributes/dynamic.rb
177
177
  - lib/mongoid/attributes/nested.rb
178
178
  - lib/mongoid/attributes/processing.rb
179
+ - lib/mongoid/attributes/projector.rb
179
180
  - lib/mongoid/attributes/readonly.rb
180
181
  - lib/mongoid/cacheable.rb
181
182
  - lib/mongoid/changeable.rb
@@ -346,6 +347,11 @@ files:
346
347
  - lib/mongoid/matcher.rb
347
348
  - lib/mongoid/matcher/all.rb
348
349
  - lib/mongoid/matcher/and.rb
350
+ - lib/mongoid/matcher/bits.rb
351
+ - lib/mongoid/matcher/bits_all_clear.rb
352
+ - lib/mongoid/matcher/bits_all_set.rb
353
+ - lib/mongoid/matcher/bits_any_clear.rb
354
+ - lib/mongoid/matcher/bits_any_set.rb
349
355
  - lib/mongoid/matcher/elem_match.rb
350
356
  - lib/mongoid/matcher/elem_match_expression.rb
351
357
  - lib/mongoid/matcher/eq.rb
@@ -361,6 +367,7 @@ files:
361
367
  - lib/mongoid/matcher/in.rb
362
368
  - lib/mongoid/matcher/lt.rb
363
369
  - lib/mongoid/matcher/lte.rb
370
+ - lib/mongoid/matcher/mod.rb
364
371
  - lib/mongoid/matcher/ne.rb
365
372
  - lib/mongoid/matcher/nin.rb
366
373
  - lib/mongoid/matcher/nor.rb
@@ -368,6 +375,7 @@ files:
368
375
  - lib/mongoid/matcher/or.rb
369
376
  - lib/mongoid/matcher/regex.rb
370
377
  - lib/mongoid/matcher/size.rb
378
+ - lib/mongoid/matcher/type.rb
371
379
  - lib/mongoid/persistable.rb
372
380
  - lib/mongoid/persistable/creatable.rb
373
381
  - lib/mongoid/persistable/deletable.rb
@@ -442,6 +450,8 @@ files:
442
450
  - spec/integration/associations/reverse_population_spec_models.rb
443
451
  - spec/integration/atomic/modifiers_spec.rb
444
452
  - spec/integration/bson_regexp_raw_spec.rb
453
+ - spec/integration/callbacks_models.rb
454
+ - spec/integration/callbacks_spec.rb
445
455
  - spec/integration/criteria/date_field_spec.rb
446
456
  - spec/integration/criteria/default_scope_spec.rb
447
457
  - spec/integration/criteria/logical_spec.rb
@@ -453,22 +463,33 @@ files:
453
463
  - spec/integration/matcher_examples_spec.rb
454
464
  - spec/integration/matcher_operator_data/all.yml
455
465
  - spec/integration/matcher_operator_data/and.yml
466
+ - spec/integration/matcher_operator_data/bits_all_clear.yml
467
+ - spec/integration/matcher_operator_data/bits_all_set.yml
468
+ - spec/integration/matcher_operator_data/bits_any_clear.yml
469
+ - spec/integration/matcher_operator_data/bits_any_set.yml
470
+ - spec/integration/matcher_operator_data/comment.yml
456
471
  - spec/integration/matcher_operator_data/elem_match.yml
457
472
  - spec/integration/matcher_operator_data/elem_match_expr.yml
458
473
  - spec/integration/matcher_operator_data/eq.yml
459
474
  - spec/integration/matcher_operator_data/exists.yml
460
475
  - spec/integration/matcher_operator_data/generic_op.yml
461
476
  - spec/integration/matcher_operator_data/gt.yml
477
+ - spec/integration/matcher_operator_data/gt_types.yml
462
478
  - spec/integration/matcher_operator_data/gte.yml
479
+ - spec/integration/matcher_operator_data/gte_types.yml
463
480
  - spec/integration/matcher_operator_data/implicit.yml
464
481
  - spec/integration/matcher_operator_data/implicit_traversal.yml
465
482
  - spec/integration/matcher_operator_data/in.yml
466
483
  - spec/integration/matcher_operator_data/invalid_op.yml
467
484
  - spec/integration/matcher_operator_data/invalid_syntax.yml
468
485
  - spec/integration/matcher_operator_data/lt.yml
486
+ - spec/integration/matcher_operator_data/lt_types.yml
469
487
  - spec/integration/matcher_operator_data/lte.yml
488
+ - spec/integration/matcher_operator_data/lte_types.yml
489
+ - spec/integration/matcher_operator_data/mod.yml
470
490
  - spec/integration/matcher_operator_data/multiple.yml
471
491
  - spec/integration/matcher_operator_data/ne.yml
492
+ - spec/integration/matcher_operator_data/ne_types.yml
472
493
  - spec/integration/matcher_operator_data/nin.yml
473
494
  - spec/integration/matcher_operator_data/nor.yml
474
495
  - spec/integration/matcher_operator_data/not.yml
@@ -476,6 +497,28 @@ files:
476
497
  - spec/integration/matcher_operator_data/regex.yml
477
498
  - spec/integration/matcher_operator_data/regex_options.yml
478
499
  - spec/integration/matcher_operator_data/size.yml
500
+ - spec/integration/matcher_operator_data/type.yml
501
+ - spec/integration/matcher_operator_data/type_array.yml
502
+ - spec/integration/matcher_operator_data/type_binary.yml
503
+ - spec/integration/matcher_operator_data/type_boolean.yml
504
+ - spec/integration/matcher_operator_data/type_code.yml
505
+ - spec/integration/matcher_operator_data/type_code_with_scope.yml
506
+ - spec/integration/matcher_operator_data/type_date.yml
507
+ - spec/integration/matcher_operator_data/type_db_pointer.yml
508
+ - spec/integration/matcher_operator_data/type_decimal.yml
509
+ - spec/integration/matcher_operator_data/type_double.yml
510
+ - spec/integration/matcher_operator_data/type_int32.yml
511
+ - spec/integration/matcher_operator_data/type_int64.yml
512
+ - spec/integration/matcher_operator_data/type_max_key.yml
513
+ - spec/integration/matcher_operator_data/type_min_key.yml
514
+ - spec/integration/matcher_operator_data/type_null.yml
515
+ - spec/integration/matcher_operator_data/type_object.yml
516
+ - spec/integration/matcher_operator_data/type_object_id.yml
517
+ - spec/integration/matcher_operator_data/type_regex.yml
518
+ - spec/integration/matcher_operator_data/type_string.yml
519
+ - spec/integration/matcher_operator_data/type_symbol.yml
520
+ - spec/integration/matcher_operator_data/type_timestamp.yml
521
+ - spec/integration/matcher_operator_data/type_undefined.yml
479
522
  - spec/integration/matcher_operator_spec.rb
480
523
  - spec/integration/matcher_spec.rb
481
524
  - spec/integration/server_query_spec.rb
@@ -554,6 +597,9 @@ files:
554
597
  - spec/mongoid/atomic_spec.rb
555
598
  - spec/mongoid/attributes/dynamic_spec.rb
556
599
  - spec/mongoid/attributes/nested_spec.rb
600
+ - spec/mongoid/attributes/projector_data/embedded.yml
601
+ - spec/mongoid/attributes/projector_data/fields.yml
602
+ - spec/mongoid/attributes/projector_spec.rb
557
603
  - spec/mongoid/attributes/readonly_spec.rb
558
604
  - spec/mongoid/attributes_spec.rb
559
605
  - spec/mongoid/cacheable_spec.rb
@@ -612,11 +658,14 @@ files:
612
658
  - spec/mongoid/criteria/queryable/pipeline_spec.rb
613
659
  - spec/mongoid/criteria/queryable/queryable_spec.rb
614
660
  - spec/mongoid/criteria/queryable/selectable_logical_spec.rb
661
+ - spec/mongoid/criteria/queryable/selectable_shared_examples.rb
615
662
  - spec/mongoid/criteria/queryable/selectable_spec.rb
663
+ - spec/mongoid/criteria/queryable/selectable_where_spec.rb
616
664
  - spec/mongoid/criteria/queryable/selector_spec.rb
617
665
  - spec/mongoid/criteria/queryable/smash_spec.rb
618
666
  - spec/mongoid/criteria/queryable/storable_spec.rb
619
667
  - spec/mongoid/criteria/scopable_spec.rb
668
+ - spec/mongoid/criteria_projection_spec.rb
620
669
  - spec/mongoid/criteria_spec.rb
621
670
  - spec/mongoid/document_fields_spec.rb
622
671
  - spec/mongoid/document_persistence_context_spec.rb
@@ -702,6 +751,7 @@ files:
702
751
  - spec/mongoid/interceptable_spec.rb
703
752
  - spec/mongoid/interceptable_spec_models.rb
704
753
  - spec/mongoid/loggable_spec.rb
754
+ - spec/mongoid/matcher/extract_attribute_data/numeric_keys.yml
705
755
  - spec/mongoid/matcher/extract_attribute_data/traversal.yml
706
756
  - spec/mongoid/matcher/extract_attribute_spec.rb
707
757
  - spec/mongoid/persistable/creatable_spec.rb
@@ -741,6 +791,7 @@ files:
741
791
  - spec/mongoid/timestamps/updated_spec.rb
742
792
  - spec/mongoid/timestamps_spec.rb
743
793
  - spec/mongoid/touchable_spec.rb
794
+ - spec/mongoid/touchable_spec_models.rb
744
795
  - spec/mongoid/traversable_spec.rb
745
796
  - spec/mongoid/validatable/associated_spec.rb
746
797
  - spec/mongoid/validatable/format_spec.rb
@@ -753,13 +804,22 @@ files:
753
804
  - spec/rails/controller_extension/controller_runtime_spec.rb
754
805
  - spec/rails/mongoid_spec.rb
755
806
  - spec/shared/LICENSE
807
+ - spec/shared/bin/get-mongodb-download-url
756
808
  - spec/shared/lib/mrss/child_process_helper.rb
809
+ - spec/shared/lib/mrss/cluster_config.rb
757
810
  - spec/shared/lib/mrss/constraints.rb
811
+ - spec/shared/lib/mrss/docker_runner.rb
758
812
  - spec/shared/lib/mrss/lite_constraints.rb
813
+ - spec/shared/lib/mrss/server_version_registry.rb
759
814
  - spec/shared/lib/mrss/spec_organizer.rb
815
+ - spec/shared/lib/mrss/utils.rb
816
+ - spec/shared/share/Dockerfile.erb
817
+ - spec/shared/shlib/distro.sh
818
+ - spec/shared/shlib/server.sh
819
+ - spec/shared/shlib/set_env.sh
760
820
  - spec/spec_helper.rb
761
821
  - spec/support/authorization.rb
762
- - spec/support/cluster_config.rb
822
+ - spec/support/client_registry.rb
763
823
  - spec/support/constraints.rb
764
824
  - spec/support/expectations.rb
765
825
  - spec/support/helpers.rb
@@ -793,6 +853,7 @@ files:
793
853
  - spec/support/models/bed.rb
794
854
  - spec/support/models/big_palette.rb
795
855
  - spec/support/models/birthday.rb
856
+ - spec/support/models/bolt.rb
796
857
  - spec/support/models/bomb.rb
797
858
  - spec/support/models/book.rb
798
859
  - spec/support/models/breed.rb
@@ -824,6 +885,8 @@ files:
824
885
  - spec/support/models/country_code.rb
825
886
  - spec/support/models/courier_job.rb
826
887
  - spec/support/models/crate.rb
888
+ - spec/support/models/customer.rb
889
+ - spec/support/models/customer_address.rb
827
890
  - spec/support/models/deed.rb
828
891
  - spec/support/models/definition.rb
829
892
  - spec/support/models/delegating_patient.rb
@@ -862,6 +925,7 @@ files:
862
925
  - spec/support/models/game.rb
863
926
  - spec/support/models/ghost.rb
864
927
  - spec/support/models/guitar.rb
928
+ - spec/support/models/hole.rb
865
929
  - spec/support/models/home.rb
866
930
  - spec/support/models/house.rb
867
931
  - spec/support/models/html_writer.rb
@@ -895,6 +959,7 @@ files:
895
959
  - spec/support/models/name_only.rb
896
960
  - spec/support/models/node.rb
897
961
  - spec/support/models/note.rb
962
+ - spec/support/models/nut.rb
898
963
  - spec/support/models/odd.rb
899
964
  - spec/support/models/order.rb
900
965
  - spec/support/models/ordered_post.rb
@@ -944,6 +1009,7 @@ files:
944
1009
  - spec/support/models/sandwich.rb
945
1010
  - spec/support/models/scheduler.rb
946
1011
  - spec/support/models/scribe.rb
1012
+ - spec/support/models/sealer.rb
947
1013
  - spec/support/models/seat.rb
948
1014
  - spec/support/models/seo.rb
949
1015
  - spec/support/models/series.rb
@@ -954,6 +1020,7 @@ files:
954
1020
  - spec/support/models/shipment_address.rb
955
1021
  - spec/support/models/shipping_container.rb
956
1022
  - spec/support/models/shipping_pack.rb
1023
+ - spec/support/models/shirt.rb
957
1024
  - spec/support/models/shop.rb
958
1025
  - spec/support/models/short_agent.rb
959
1026
  - spec/support/models/short_quiz.rb
@@ -961,6 +1028,7 @@ files:
961
1028
  - spec/support/models/slave.rb
962
1029
  - spec/support/models/song.rb
963
1030
  - spec/support/models/sound.rb
1031
+ - spec/support/models/spacer.rb
964
1032
  - spec/support/models/square.rb
965
1033
  - spec/support/models/staff.rb
966
1034
  - spec/support/models/store_as_dup_test1.rb
@@ -977,6 +1045,7 @@ files:
977
1045
  - spec/support/models/target.rb
978
1046
  - spec/support/models/template.rb
979
1047
  - spec/support/models/thing.rb
1048
+ - spec/support/models/threadlocker.rb
980
1049
  - spec/support/models/title.rb
981
1050
  - spec/support/models/tool.rb
982
1051
  - spec/support/models/topping.rb
@@ -995,6 +1064,7 @@ files:
995
1064
  - spec/support/models/vet_visit.rb
996
1065
  - spec/support/models/video.rb
997
1066
  - spec/support/models/video_game.rb
1067
+ - spec/support/models/washer.rb
998
1068
  - spec/support/models/weapon.rb
999
1069
  - spec/support/models/wiki_page.rb
1000
1070
  - spec/support/models/word.rb
@@ -1102,9 +1172,11 @@ test_files:
1102
1172
  - spec/mongoid/association/referenced/has_many_spec.rb
1103
1173
  - spec/mongoid/association/options_spec.rb
1104
1174
  - spec/mongoid/association/reflections_spec.rb
1175
+ - spec/mongoid/touchable_spec_models.rb
1105
1176
  - spec/mongoid/reloadable_spec.rb
1106
1177
  - spec/mongoid/indexable/specification_spec.rb
1107
1178
  - spec/mongoid/document_persistence_context_spec.rb
1179
+ - spec/mongoid/criteria_projection_spec.rb
1108
1180
  - spec/mongoid/extensions/date_class_mongoize_spec.rb
1109
1181
  - spec/mongoid/extensions/time_spec.rb
1110
1182
  - spec/mongoid/extensions/array_spec.rb
@@ -1244,6 +1316,7 @@ test_files:
1244
1316
  - spec/mongoid/errors/delete_restriction_spec.rb
1245
1317
  - spec/mongoid/matcher/extract_attribute_spec.rb
1246
1318
  - spec/mongoid/matcher/extract_attribute_data/traversal.yml
1319
+ - spec/mongoid/matcher/extract_attribute_data/numeric_keys.yml
1247
1320
  - spec/mongoid/traversable_spec.rb
1248
1321
  - spec/mongoid/atomic_spec.rb
1249
1322
  - spec/mongoid/shardable_spec.rb
@@ -1272,6 +1345,7 @@ test_files:
1272
1345
  - spec/mongoid/criteria/queryable/storable_spec.rb
1273
1346
  - spec/mongoid/criteria/queryable/pipeline_spec.rb
1274
1347
  - spec/mongoid/criteria/queryable/selectable_logical_spec.rb
1348
+ - spec/mongoid/criteria/queryable/selectable_where_spec.rb
1275
1349
  - spec/mongoid/criteria/queryable/optional_spec.rb
1276
1350
  - spec/mongoid/criteria/queryable/mergeable_spec.rb
1277
1351
  - spec/mongoid/criteria/queryable/queryable_spec.rb
@@ -1280,6 +1354,7 @@ test_files:
1280
1354
  - spec/mongoid/criteria/queryable/smash_spec.rb
1281
1355
  - spec/mongoid/criteria/queryable/key_spec.rb
1282
1356
  - spec/mongoid/criteria/queryable/options_spec.rb
1357
+ - spec/mongoid/criteria/queryable/selectable_shared_examples.rb
1283
1358
  - spec/mongoid/criteria/queryable/selectable_spec.rb
1284
1359
  - spec/mongoid/criteria/marshalable_spec.rb
1285
1360
  - spec/mongoid/criteria/findable_spec.rb
@@ -1293,20 +1368,32 @@ test_files:
1293
1368
  - spec/mongoid/timestamps_spec.rb
1294
1369
  - spec/mongoid/changeable_spec.rb
1295
1370
  - spec/mongoid/stateful_spec.rb
1371
+ - spec/mongoid/attributes/projector_spec.rb
1296
1372
  - spec/mongoid/attributes/readonly_spec.rb
1297
1373
  - spec/mongoid/attributes/nested_spec.rb
1298
1374
  - spec/mongoid/attributes/dynamic_spec.rb
1375
+ - spec/mongoid/attributes/projector_data/fields.yml
1376
+ - spec/mongoid/attributes/projector_data/embedded.yml
1299
1377
  - spec/mongoid/interceptable_spec_models.rb
1300
1378
  - spec/mongoid/indexable_spec.rb
1301
1379
  - spec/mongoid/document_query_spec.rb
1302
1380
  - spec/mongoid/selectable_spec.rb
1303
1381
  - spec/mongoid/copyable_spec.rb
1304
1382
  - spec/mongoid/threaded_spec.rb
1383
+ - spec/shared/shlib/server.sh
1384
+ - spec/shared/shlib/distro.sh
1385
+ - spec/shared/shlib/set_env.sh
1305
1386
  - spec/shared/lib/mrss/constraints.rb
1387
+ - spec/shared/lib/mrss/server_version_registry.rb
1388
+ - spec/shared/lib/mrss/docker_runner.rb
1389
+ - spec/shared/lib/mrss/utils.rb
1390
+ - spec/shared/lib/mrss/cluster_config.rb
1306
1391
  - spec/shared/lib/mrss/lite_constraints.rb
1307
1392
  - spec/shared/lib/mrss/child_process_helper.rb
1308
1393
  - spec/shared/lib/mrss/spec_organizer.rb
1309
1394
  - spec/shared/LICENSE
1395
+ - spec/shared/bin/get-mongodb-download-url
1396
+ - spec/shared/share/Dockerfile.erb
1310
1397
  - spec/README.md
1311
1398
  - spec/lite_spec_helper.rb
1312
1399
  - spec/support/authorization.rb
@@ -1333,15 +1420,18 @@ test_files:
1333
1420
  - spec/support/models/shape.rb
1334
1421
  - spec/support/models/definition.rb
1335
1422
  - spec/support/models/pet.rb
1423
+ - spec/support/models/threadlocker.rb
1336
1424
  - spec/support/models/pdf_writer.rb
1337
1425
  - spec/support/models/pet_owner.rb
1338
1426
  - spec/support/models/courier_job.rb
1339
1427
  - spec/support/models/store_as_dup_test2.rb
1428
+ - spec/support/models/spacer.rb
1340
1429
  - spec/support/models/powerup.rb
1341
1430
  - spec/support/models/role.rb
1342
1431
  - spec/support/models/eye.rb
1343
1432
  - spec/support/models/business.rb
1344
1433
  - spec/support/models/dungeon.rb
1434
+ - spec/support/models/customer.rb
1345
1435
  - spec/support/models/author.rb
1346
1436
  - spec/support/models/address_component.rb
1347
1437
  - spec/support/models/guitar.rb
@@ -1349,6 +1439,7 @@ test_files:
1349
1439
  - spec/support/models/code.rb
1350
1440
  - spec/support/models/account.rb
1351
1441
  - spec/support/models/store_as_dup_test1.rb
1442
+ - spec/support/models/shirt.rb
1352
1443
  - spec/support/models/entry.rb
1353
1444
  - spec/support/models/folder.rb
1354
1445
  - spec/support/models/contractor.rb
@@ -1367,6 +1458,7 @@ test_files:
1367
1458
  - spec/support/models/id_key.rb
1368
1459
  - spec/support/models/override.rb
1369
1460
  - spec/support/models/parent_doc.rb
1461
+ - spec/support/models/hole.rb
1370
1462
  - spec/support/models/scribe.rb
1371
1463
  - spec/support/models/band.rb
1372
1464
  - spec/support/models/address_number.rb
@@ -1379,6 +1471,7 @@ test_files:
1379
1471
  - spec/support/models/employer.rb
1380
1472
  - spec/support/models/sound.rb
1381
1473
  - spec/support/models/scheduler.rb
1474
+ - spec/support/models/nut.rb
1382
1475
  - spec/support/models/series.rb
1383
1476
  - spec/support/models/rating.rb
1384
1477
  - spec/support/models/manufacturer.rb
@@ -1399,6 +1492,7 @@ test_files:
1399
1492
  - spec/support/models/login.rb
1400
1493
  - spec/support/models/cat.rb
1401
1494
  - spec/support/models/word.rb
1495
+ - spec/support/models/customer_address.rb
1402
1496
  - spec/support/models/tool.rb
1403
1497
  - spec/support/models/shipment_address.rb
1404
1498
  - spec/support/models/minim.rb
@@ -1446,10 +1540,12 @@ test_files:
1446
1540
  - spec/support/models/thing.rb
1447
1541
  - spec/support/models/church.rb
1448
1542
  - spec/support/models/league.rb
1543
+ - spec/support/models/bolt.rb
1449
1544
  - spec/support/models/toy.rb
1450
1545
  - spec/support/models/vehicle.rb
1451
1546
  - spec/support/models/seat.rb
1452
1547
  - spec/support/models/home.rb
1548
+ - spec/support/models/washer.rb
1453
1549
  - spec/support/models/circus.rb
1454
1550
  - spec/support/models/callback_test.rb
1455
1551
  - spec/support/models/vertex.rb
@@ -1482,6 +1578,7 @@ test_files:
1482
1578
  - spec/support/models/division.rb
1483
1579
  - spec/support/models/coding.rb
1484
1580
  - spec/support/models/sandwich.rb
1581
+ - spec/support/models/sealer.rb
1485
1582
  - spec/support/models/video_game.rb
1486
1583
  - spec/support/models/baby.rb
1487
1584
  - spec/support/models/question.rb
@@ -1552,7 +1649,7 @@ test_files:
1552
1649
  - spec/support/macros.rb
1553
1650
  - spec/support/expectations.rb
1554
1651
  - spec/support/constraints.rb
1555
- - spec/support/cluster_config.rb
1652
+ - spec/support/client_registry.rb
1556
1653
  - spec/support/spec_config.rb
1557
1654
  - spec/integration/bson_regexp_raw_spec.rb
1558
1655
  - spec/integration/document_spec.rb
@@ -1569,31 +1666,65 @@ test_files:
1569
1666
  - spec/integration/associations/belongs_to_spec.rb
1570
1667
  - spec/integration/associations/foreign_key_spec.rb
1571
1668
  - spec/integration/associations/has_many_spec.rb
1669
+ - spec/integration/matcher_operator_data/bits_any_set.yml
1572
1670
  - spec/integration/matcher_operator_data/elem_match_expr.yml
1671
+ - spec/integration/matcher_operator_data/type_binary.yml
1573
1672
  - spec/integration/matcher_operator_data/eq.yml
1673
+ - spec/integration/matcher_operator_data/bits_any_clear.yml
1674
+ - spec/integration/matcher_operator_data/gt_types.yml
1574
1675
  - spec/integration/matcher_operator_data/regex_options.yml
1575
1676
  - spec/integration/matcher_operator_data/exists.yml
1576
1677
  - spec/integration/matcher_operator_data/nor.yml
1577
1678
  - spec/integration/matcher_operator_data/multiple.yml
1679
+ - spec/integration/matcher_operator_data/bits_all_clear.yml
1578
1680
  - spec/integration/matcher_operator_data/lt.yml
1681
+ - spec/integration/matcher_operator_data/mod.yml
1682
+ - spec/integration/matcher_operator_data/type_timestamp.yml
1683
+ - spec/integration/matcher_operator_data/bits_all_set.yml
1684
+ - spec/integration/matcher_operator_data/type_array.yml
1685
+ - spec/integration/matcher_operator_data/lt_types.yml
1579
1686
  - spec/integration/matcher_operator_data/invalid_syntax.yml
1687
+ - spec/integration/matcher_operator_data/comment.yml
1580
1688
  - spec/integration/matcher_operator_data/not.yml
1689
+ - spec/integration/matcher_operator_data/type_boolean.yml
1690
+ - spec/integration/matcher_operator_data/type_decimal.yml
1691
+ - spec/integration/matcher_operator_data/gte_types.yml
1581
1692
  - spec/integration/matcher_operator_data/invalid_op.yml
1693
+ - spec/integration/matcher_operator_data/type_min_key.yml
1582
1694
  - spec/integration/matcher_operator_data/ne.yml
1695
+ - spec/integration/matcher_operator_data/type_date.yml
1696
+ - spec/integration/matcher_operator_data/type_int64.yml
1583
1697
  - spec/integration/matcher_operator_data/size.yml
1698
+ - spec/integration/matcher_operator_data/type.yml
1584
1699
  - spec/integration/matcher_operator_data/or.yml
1700
+ - spec/integration/matcher_operator_data/type_object.yml
1701
+ - spec/integration/matcher_operator_data/ne_types.yml
1702
+ - spec/integration/matcher_operator_data/type_int32.yml
1585
1703
  - spec/integration/matcher_operator_data/gte.yml
1586
1704
  - spec/integration/matcher_operator_data/nin.yml
1705
+ - spec/integration/matcher_operator_data/type_code.yml
1706
+ - spec/integration/matcher_operator_data/type_symbol.yml
1707
+ - spec/integration/matcher_operator_data/type_regex.yml
1708
+ - spec/integration/matcher_operator_data/lte_types.yml
1587
1709
  - spec/integration/matcher_operator_data/in.yml
1710
+ - spec/integration/matcher_operator_data/type_code_with_scope.yml
1588
1711
  - spec/integration/matcher_operator_data/all.yml
1589
1712
  - spec/integration/matcher_operator_data/lte.yml
1590
1713
  - spec/integration/matcher_operator_data/and.yml
1714
+ - spec/integration/matcher_operator_data/type_db_pointer.yml
1591
1715
  - spec/integration/matcher_operator_data/implicit_traversal.yml
1592
1716
  - spec/integration/matcher_operator_data/gt.yml
1717
+ - spec/integration/matcher_operator_data/type_double.yml
1718
+ - spec/integration/matcher_operator_data/type_string.yml
1719
+ - spec/integration/matcher_operator_data/type_null.yml
1593
1720
  - spec/integration/matcher_operator_data/regex.yml
1721
+ - spec/integration/matcher_operator_data/type_object_id.yml
1722
+ - spec/integration/matcher_operator_data/type_max_key.yml
1594
1723
  - spec/integration/matcher_operator_data/implicit.yml
1595
1724
  - spec/integration/matcher_operator_data/elem_match.yml
1596
1725
  - spec/integration/matcher_operator_data/generic_op.yml
1726
+ - spec/integration/matcher_operator_data/type_undefined.yml
1727
+ - spec/integration/callbacks_models.rb
1597
1728
  - spec/integration/matcher_spec.rb
1598
1729
  - spec/integration/shardable_spec.rb
1599
1730
  - spec/integration/criteria/default_scope_spec.rb
@@ -1604,6 +1735,7 @@ test_files:
1604
1735
  - spec/integration/discriminator_key_spec.rb
1605
1736
  - spec/integration/app_spec.rb
1606
1737
  - spec/integration/discriminator_value_spec.rb
1738
+ - spec/integration/callbacks_spec.rb
1607
1739
  - spec/integration/matcher_operator_spec.rb
1608
1740
  - spec/integration/matcher_examples_spec.rb
1609
1741
  - spec/integration/server_query_spec.rb
metadata.gz.sig CHANGED
@@ -1,2 +1,5 @@
1
- 9����Jm���|a8Q ���G����꺐�i+� ���#z(��i��,�7��p���@x���'��
2
- �٘uv�=7���YHʭ ��X�!�+�����Lq����ߘ�Z�kw����?zۺK ?2�(�y,(۳���:�E�U/䏿���A%�tu�;-�bd������T2'L�!�y@X�,��G���1���T���ID�AG Z��N�
1
+ 6�}X��j0�wE��?B�&��v3�ϳl��DK��()�H�$vୁ`U�
2
+ ��^&h�>�Ĭ��ی,��}
3
+ ,UM;Y䆝�݉�"���IS�%
4
+ ���h6��{&���U`�Va�A��?��(?��9��i��,}{���)� t����"
5
+ ����?