mongoid 7.2.4 → 7.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Rakefile +16 -0
  5. data/lib/config/locales/en.yml +2 -2
  6. data/lib/mongoid.rb +1 -0
  7. data/lib/mongoid/association/accessors.rb +13 -1
  8. data/lib/mongoid/association/constrainable.rb +1 -1
  9. data/lib/mongoid/association/depending.rb +4 -4
  10. data/lib/mongoid/association/embedded/batchable.rb +1 -1
  11. data/lib/mongoid/association/embedded/embedded_in.rb +1 -1
  12. data/lib/mongoid/association/embedded/embeds_many/proxy.rb +11 -4
  13. data/lib/mongoid/association/nested/many.rb +1 -1
  14. data/lib/mongoid/association/nested/one.rb +4 -2
  15. data/lib/mongoid/association/proxy.rb +7 -2
  16. data/lib/mongoid/association/referenced/auto_save.rb +2 -2
  17. data/lib/mongoid/association/referenced/has_many/enumerable.rb +493 -495
  18. data/lib/mongoid/association/referenced/has_many/proxy.rb +3 -3
  19. data/lib/mongoid/association/referenced/has_one/nested_builder.rb +2 -2
  20. data/lib/mongoid/attributes.rb +24 -13
  21. data/lib/mongoid/attributes/projector.rb +120 -0
  22. data/lib/mongoid/cacheable.rb +2 -2
  23. data/lib/mongoid/clients.rb +1 -1
  24. data/lib/mongoid/clients/factory.rb +22 -8
  25. data/lib/mongoid/config.rb +19 -2
  26. data/lib/mongoid/contextual/aggregable/mongo.rb +10 -8
  27. data/lib/mongoid/copyable.rb +1 -1
  28. data/lib/mongoid/criteria.rb +5 -6
  29. data/lib/mongoid/criteria/findable.rb +1 -1
  30. data/lib/mongoid/criteria/queryable/expandable.rb +0 -24
  31. data/lib/mongoid/criteria/queryable/extensions.rb +0 -4
  32. data/lib/mongoid/criteria/queryable/extensions/boolean.rb +1 -1
  33. data/lib/mongoid/criteria/queryable/mergeable.rb +46 -20
  34. data/lib/mongoid/criteria/queryable/selectable.rb +8 -8
  35. data/lib/mongoid/document.rb +1 -15
  36. data/lib/mongoid/errors/delete_restriction.rb +8 -9
  37. data/lib/mongoid/evolvable.rb +1 -1
  38. data/lib/mongoid/extensions/boolean.rb +1 -2
  39. data/lib/mongoid/extensions/false_class.rb +1 -1
  40. data/lib/mongoid/extensions/hash.rb +2 -2
  41. data/lib/mongoid/extensions/true_class.rb +1 -1
  42. data/lib/mongoid/fields.rb +43 -5
  43. data/lib/mongoid/inspectable.rb +1 -1
  44. data/lib/mongoid/interceptable.rb +1 -1
  45. data/lib/mongoid/matcher.rb +7 -0
  46. data/lib/mongoid/matcher/bits.rb +41 -0
  47. data/lib/mongoid/matcher/bits_all_clear.rb +20 -0
  48. data/lib/mongoid/matcher/bits_all_set.rb +20 -0
  49. data/lib/mongoid/matcher/bits_any_clear.rb +20 -0
  50. data/lib/mongoid/matcher/bits_any_set.rb +20 -0
  51. data/lib/mongoid/matcher/expression.rb +4 -0
  52. data/lib/mongoid/matcher/field_operator.rb +6 -0
  53. data/lib/mongoid/matcher/mod.rb +17 -0
  54. data/lib/mongoid/matcher/type.rb +99 -0
  55. data/lib/mongoid/persistable/deletable.rb +1 -2
  56. data/lib/mongoid/persistable/destroyable.rb +8 -2
  57. data/lib/mongoid/persistable/updatable.rb +27 -2
  58. data/lib/mongoid/query_cache.rb +35 -29
  59. data/lib/mongoid/selectable.rb +5 -7
  60. data/lib/mongoid/shardable.rb +21 -5
  61. data/lib/mongoid/touchable.rb +23 -4
  62. data/lib/mongoid/version.rb +1 -1
  63. data/spec/integration/associations/embeds_many_spec.rb +44 -0
  64. data/spec/integration/associations/has_one_spec.rb +48 -0
  65. data/spec/integration/criteria/date_field_spec.rb +1 -1
  66. data/spec/integration/document_spec.rb +9 -0
  67. data/spec/integration/matcher_operator_data/bits_all_clear.yml +159 -0
  68. data/spec/integration/matcher_operator_data/bits_all_set.yml +159 -0
  69. data/spec/integration/matcher_operator_data/bits_any_clear.yml +159 -0
  70. data/spec/integration/matcher_operator_data/bits_any_set.yml +159 -0
  71. data/spec/integration/matcher_operator_data/comment.yml +22 -0
  72. data/spec/integration/matcher_operator_data/in.yml +16 -0
  73. data/spec/integration/matcher_operator_data/mod.yml +55 -0
  74. data/spec/integration/matcher_operator_data/type.yml +70 -0
  75. data/spec/integration/matcher_operator_data/type_array.yml +16 -0
  76. data/spec/integration/matcher_operator_data/type_binary.yml +18 -0
  77. data/spec/integration/matcher_operator_data/type_boolean.yml +39 -0
  78. data/spec/integration/matcher_operator_data/type_code.yml +26 -0
  79. data/spec/integration/matcher_operator_data/type_code_with_scope.yml +26 -0
  80. data/spec/integration/matcher_operator_data/type_date.yml +39 -0
  81. data/spec/integration/matcher_operator_data/type_db_pointer.yml +19 -0
  82. data/spec/integration/matcher_operator_data/type_decimal.yml +40 -0
  83. data/spec/integration/matcher_operator_data/type_double.yml +15 -0
  84. data/spec/integration/matcher_operator_data/type_int32.yml +33 -0
  85. data/spec/integration/matcher_operator_data/type_int64.yml +33 -0
  86. data/spec/integration/matcher_operator_data/type_max_key.yml +17 -0
  87. data/spec/integration/matcher_operator_data/type_min_key.yml +17 -0
  88. data/spec/integration/matcher_operator_data/type_null.yml +23 -0
  89. data/spec/integration/matcher_operator_data/type_object.yml +23 -0
  90. data/spec/integration/matcher_operator_data/type_object_id.yml +25 -0
  91. data/spec/integration/matcher_operator_data/type_regex.yml +44 -0
  92. data/spec/integration/matcher_operator_data/type_string.yml +15 -0
  93. data/spec/integration/matcher_operator_data/type_symbol.yml +32 -0
  94. data/spec/integration/matcher_operator_data/type_timestamp.yml +25 -0
  95. data/spec/integration/matcher_operator_data/type_undefined.yml +17 -0
  96. data/spec/lite_spec_helper.rb +2 -0
  97. data/spec/mongoid/association/depending_spec.rb +391 -352
  98. data/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb +17 -4
  99. data/spec/mongoid/association/nested/one_spec.rb +18 -14
  100. data/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb +42 -8
  101. data/spec/mongoid/association/referenced/has_and_belongs_to_many/binding_spec.rb +1 -1
  102. data/spec/mongoid/association/referenced/has_many/binding_spec.rb +1 -1
  103. data/spec/mongoid/association/referenced/has_many/enumerable_spec.rb +1 -1
  104. data/spec/mongoid/association/referenced/has_one_models.rb +8 -0
  105. data/spec/mongoid/atomic/paths_spec.rb +64 -12
  106. data/spec/mongoid/attributes/projector_data/embedded.yml +105 -0
  107. data/spec/mongoid/attributes/projector_data/fields.yml +93 -0
  108. data/spec/mongoid/attributes/projector_spec.rb +41 -0
  109. data/spec/mongoid/attributes_spec.rb +98 -6
  110. data/spec/mongoid/clients/factory_spec.rb +48 -0
  111. data/spec/mongoid/clients/options_spec.rb +2 -0
  112. data/spec/mongoid/config_spec.rb +32 -0
  113. data/spec/mongoid/contextual/mongo_spec.rb +2 -2
  114. data/spec/mongoid/criteria/modifiable_spec.rb +1 -1
  115. data/spec/mongoid/criteria/queryable/expandable_spec.rb +0 -73
  116. data/spec/mongoid/criteria/queryable/extensions/boolean_spec.rb +1 -1
  117. data/spec/mongoid/criteria/queryable/mergeable_spec.rb +105 -7
  118. data/spec/mongoid/criteria/queryable/selectable_logical_spec.rb +229 -24
  119. data/spec/mongoid/criteria/queryable/selectable_shared_examples.rb +39 -0
  120. data/spec/mongoid/criteria/queryable/selectable_spec.rb +1 -565
  121. data/spec/mongoid/criteria/queryable/selectable_where_spec.rb +590 -0
  122. data/spec/mongoid/criteria_projection_spec.rb +411 -0
  123. data/spec/mongoid/criteria_spec.rb +4 -275
  124. data/spec/mongoid/document_spec.rb +13 -13
  125. data/spec/mongoid/errors/delete_restriction_spec.rb +1 -1
  126. data/spec/mongoid/extensions/false_class_spec.rb +1 -1
  127. data/spec/mongoid/extensions/string_spec.rb +5 -5
  128. data/spec/mongoid/extensions/true_class_spec.rb +1 -1
  129. data/spec/mongoid/fields/localized_spec.rb +4 -4
  130. data/spec/mongoid/fields_spec.rb +4 -4
  131. data/spec/mongoid/inspectable_spec.rb +12 -4
  132. data/spec/mongoid/persistable/deletable_spec.rb +175 -1
  133. data/spec/mongoid/persistable/destroyable_spec.rb +191 -3
  134. data/spec/mongoid/persistable/savable_spec.rb +3 -5
  135. data/spec/mongoid/persistable/upsertable_spec.rb +1 -1
  136. data/spec/mongoid/query_cache_middleware_spec.rb +8 -0
  137. data/spec/mongoid/reloadable_spec.rb +18 -1
  138. data/spec/mongoid/shardable_spec.rb +44 -0
  139. data/spec/mongoid/touchable_spec.rb +104 -16
  140. data/spec/mongoid/touchable_spec_models.rb +52 -0
  141. data/spec/mongoid/validatable_spec.rb +1 -1
  142. data/spec/spec_helper.rb +6 -2
  143. data/spec/support/client_registry.rb +9 -0
  144. data/spec/support/models/address.rb +4 -0
  145. data/spec/support/models/bolt.rb +8 -0
  146. data/spec/support/models/hole.rb +13 -0
  147. data/spec/support/models/mop.rb +0 -1
  148. data/spec/support/models/nut.rb +8 -0
  149. data/spec/support/models/person.rb +15 -0
  150. data/spec/support/models/sealer.rb +8 -0
  151. data/spec/support/models/shirt.rb +12 -0
  152. data/spec/support/models/spacer.rb +8 -0
  153. data/spec/support/models/threadlocker.rb +8 -0
  154. data/spec/support/models/washer.rb +8 -0
  155. metadata +112 -4
  156. metadata.gz.sig +0 -0
  157. data/spec/support/cluster_config.rb +0 -158
@@ -136,6 +136,10 @@ class Person
136
136
  scope :without_ssn, ->{ without(:ssn) }
137
137
  scope :search, ->(query){ any_of({ title: query }) }
138
138
 
139
+ def self.older_than(age:)
140
+ where(:age.gt => age)
141
+ end
142
+
139
143
  def score_with_rescoring=(score)
140
144
  @rescored = score.to_i + 20
141
145
  self.score_without_rescoring = score
@@ -206,10 +210,21 @@ class Person
206
210
  self.map_with_default["key"] = value
207
211
  end
208
212
 
213
+ def set_personal_data(ssn:, age:)
214
+ self.ssn = ssn
215
+ self.age = age
216
+ end
217
+
209
218
  reset_callbacks(:validate)
210
219
  reset_callbacks(:create)
211
220
  reset_callbacks(:save)
212
221
  reset_callbacks(:destroy)
222
+
223
+ private
224
+
225
+ def secret_name
226
+ "secret"
227
+ end
213
228
  end
214
229
 
215
230
  require "support/models/doctor"
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ class Sealer
5
+ include Mongoid::Document
6
+
7
+ belongs_to :hole
8
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ class Shirt
5
+ include Mongoid::Document
6
+
7
+ field :color, type: String
8
+
9
+ unalias_attribute :id
10
+
11
+ field :id, type: String
12
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ class Spacer
5
+ include Mongoid::Document
6
+
7
+ belongs_to :hole
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ class Threadlocker
5
+ include Mongoid::Document
6
+
7
+ belongs_to :hole
8
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ class Washer
5
+ include Mongoid::Document
6
+
7
+ belongs_to :hole
8
+ end
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.4
4
+ version: 7.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Durran Jordan
@@ -29,7 +29,7 @@ cert_chain:
29
29
  YoFhlyUEi7VLlqNH0H/JFttVZK6+qmLelkVNcIYVLeWOB4Lf4VxEiYGEK1ORxsrY
30
30
  iyYKJJALWY1FAInGRIlvkN+B8o3yIhq1
31
31
  -----END CERTIFICATE-----
32
- date: 2021-07-15 00:00:00.000000000 Z
32
+ date: 2021-08-03 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activemodel
@@ -71,6 +71,20 @@ dependencies:
71
71
  - - "<"
72
72
  - !ruby/object:Gem::Version
73
73
  version: 3.0.0
74
+ - !ruby/object:Gem::Dependency
75
+ name: ruby2_keywords
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: 0.0.5
81
+ type: :runtime
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: 0.0.5
74
88
  - !ruby/object:Gem::Dependency
75
89
  name: bson
76
90
  requirement: !ruby/object:Gem::Requirement
@@ -176,6 +190,7 @@ files:
176
190
  - lib/mongoid/attributes/dynamic.rb
177
191
  - lib/mongoid/attributes/nested.rb
178
192
  - lib/mongoid/attributes/processing.rb
193
+ - lib/mongoid/attributes/projector.rb
179
194
  - lib/mongoid/attributes/readonly.rb
180
195
  - lib/mongoid/cacheable.rb
181
196
  - lib/mongoid/changeable.rb
@@ -346,6 +361,11 @@ files:
346
361
  - lib/mongoid/matcher.rb
347
362
  - lib/mongoid/matcher/all.rb
348
363
  - lib/mongoid/matcher/and.rb
364
+ - lib/mongoid/matcher/bits.rb
365
+ - lib/mongoid/matcher/bits_all_clear.rb
366
+ - lib/mongoid/matcher/bits_all_set.rb
367
+ - lib/mongoid/matcher/bits_any_clear.rb
368
+ - lib/mongoid/matcher/bits_any_set.rb
349
369
  - lib/mongoid/matcher/elem_match.rb
350
370
  - lib/mongoid/matcher/elem_match_expression.rb
351
371
  - lib/mongoid/matcher/eq.rb
@@ -361,6 +381,7 @@ files:
361
381
  - lib/mongoid/matcher/in.rb
362
382
  - lib/mongoid/matcher/lt.rb
363
383
  - lib/mongoid/matcher/lte.rb
384
+ - lib/mongoid/matcher/mod.rb
364
385
  - lib/mongoid/matcher/ne.rb
365
386
  - lib/mongoid/matcher/nin.rb
366
387
  - lib/mongoid/matcher/nor.rb
@@ -368,6 +389,7 @@ files:
368
389
  - lib/mongoid/matcher/or.rb
369
390
  - lib/mongoid/matcher/regex.rb
370
391
  - lib/mongoid/matcher/size.rb
392
+ - lib/mongoid/matcher/type.rb
371
393
  - lib/mongoid/persistable.rb
372
394
  - lib/mongoid/persistable/creatable.rb
373
395
  - lib/mongoid/persistable/deletable.rb
@@ -455,6 +477,11 @@ files:
455
477
  - spec/integration/matcher_examples_spec.rb
456
478
  - spec/integration/matcher_operator_data/all.yml
457
479
  - spec/integration/matcher_operator_data/and.yml
480
+ - spec/integration/matcher_operator_data/bits_all_clear.yml
481
+ - spec/integration/matcher_operator_data/bits_all_set.yml
482
+ - spec/integration/matcher_operator_data/bits_any_clear.yml
483
+ - spec/integration/matcher_operator_data/bits_any_set.yml
484
+ - spec/integration/matcher_operator_data/comment.yml
458
485
  - spec/integration/matcher_operator_data/elem_match.yml
459
486
  - spec/integration/matcher_operator_data/elem_match_expr.yml
460
487
  - spec/integration/matcher_operator_data/eq.yml
@@ -473,6 +500,7 @@ files:
473
500
  - spec/integration/matcher_operator_data/lt_types.yml
474
501
  - spec/integration/matcher_operator_data/lte.yml
475
502
  - spec/integration/matcher_operator_data/lte_types.yml
503
+ - spec/integration/matcher_operator_data/mod.yml
476
504
  - spec/integration/matcher_operator_data/multiple.yml
477
505
  - spec/integration/matcher_operator_data/ne.yml
478
506
  - spec/integration/matcher_operator_data/ne_types.yml
@@ -483,6 +511,28 @@ files:
483
511
  - spec/integration/matcher_operator_data/regex.yml
484
512
  - spec/integration/matcher_operator_data/regex_options.yml
485
513
  - spec/integration/matcher_operator_data/size.yml
514
+ - spec/integration/matcher_operator_data/type.yml
515
+ - spec/integration/matcher_operator_data/type_array.yml
516
+ - spec/integration/matcher_operator_data/type_binary.yml
517
+ - spec/integration/matcher_operator_data/type_boolean.yml
518
+ - spec/integration/matcher_operator_data/type_code.yml
519
+ - spec/integration/matcher_operator_data/type_code_with_scope.yml
520
+ - spec/integration/matcher_operator_data/type_date.yml
521
+ - spec/integration/matcher_operator_data/type_db_pointer.yml
522
+ - spec/integration/matcher_operator_data/type_decimal.yml
523
+ - spec/integration/matcher_operator_data/type_double.yml
524
+ - spec/integration/matcher_operator_data/type_int32.yml
525
+ - spec/integration/matcher_operator_data/type_int64.yml
526
+ - spec/integration/matcher_operator_data/type_max_key.yml
527
+ - spec/integration/matcher_operator_data/type_min_key.yml
528
+ - spec/integration/matcher_operator_data/type_null.yml
529
+ - spec/integration/matcher_operator_data/type_object.yml
530
+ - spec/integration/matcher_operator_data/type_object_id.yml
531
+ - spec/integration/matcher_operator_data/type_regex.yml
532
+ - spec/integration/matcher_operator_data/type_string.yml
533
+ - spec/integration/matcher_operator_data/type_symbol.yml
534
+ - spec/integration/matcher_operator_data/type_timestamp.yml
535
+ - spec/integration/matcher_operator_data/type_undefined.yml
486
536
  - spec/integration/matcher_operator_spec.rb
487
537
  - spec/integration/matcher_spec.rb
488
538
  - spec/integration/server_query_spec.rb
@@ -561,6 +611,9 @@ files:
561
611
  - spec/mongoid/atomic_spec.rb
562
612
  - spec/mongoid/attributes/dynamic_spec.rb
563
613
  - spec/mongoid/attributes/nested_spec.rb
614
+ - spec/mongoid/attributes/projector_data/embedded.yml
615
+ - spec/mongoid/attributes/projector_data/fields.yml
616
+ - spec/mongoid/attributes/projector_spec.rb
564
617
  - spec/mongoid/attributes/readonly_spec.rb
565
618
  - spec/mongoid/attributes_spec.rb
566
619
  - spec/mongoid/cacheable_spec.rb
@@ -619,11 +672,14 @@ files:
619
672
  - spec/mongoid/criteria/queryable/pipeline_spec.rb
620
673
  - spec/mongoid/criteria/queryable/queryable_spec.rb
621
674
  - spec/mongoid/criteria/queryable/selectable_logical_spec.rb
675
+ - spec/mongoid/criteria/queryable/selectable_shared_examples.rb
622
676
  - spec/mongoid/criteria/queryable/selectable_spec.rb
677
+ - spec/mongoid/criteria/queryable/selectable_where_spec.rb
623
678
  - spec/mongoid/criteria/queryable/selector_spec.rb
624
679
  - spec/mongoid/criteria/queryable/smash_spec.rb
625
680
  - spec/mongoid/criteria/queryable/storable_spec.rb
626
681
  - spec/mongoid/criteria/scopable_spec.rb
682
+ - spec/mongoid/criteria_projection_spec.rb
627
683
  - spec/mongoid/criteria_spec.rb
628
684
  - spec/mongoid/document_fields_spec.rb
629
685
  - spec/mongoid/document_persistence_context_spec.rb
@@ -749,6 +805,7 @@ files:
749
805
  - spec/mongoid/timestamps/updated_spec.rb
750
806
  - spec/mongoid/timestamps_spec.rb
751
807
  - spec/mongoid/touchable_spec.rb
808
+ - spec/mongoid/touchable_spec_models.rb
752
809
  - spec/mongoid/traversable_spec.rb
753
810
  - spec/mongoid/validatable/associated_spec.rb
754
811
  - spec/mongoid/validatable/format_spec.rb
@@ -780,7 +837,7 @@ files:
780
837
  - spec/shared/shlib/set_env.sh
781
838
  - spec/spec_helper.rb
782
839
  - spec/support/authorization.rb
783
- - spec/support/cluster_config.rb
840
+ - spec/support/client_registry.rb
784
841
  - spec/support/constraints.rb
785
842
  - spec/support/expectations.rb
786
843
  - spec/support/helpers.rb
@@ -814,6 +871,7 @@ files:
814
871
  - spec/support/models/bed.rb
815
872
  - spec/support/models/big_palette.rb
816
873
  - spec/support/models/birthday.rb
874
+ - spec/support/models/bolt.rb
817
875
  - spec/support/models/bomb.rb
818
876
  - spec/support/models/book.rb
819
877
  - spec/support/models/breed.rb
@@ -885,6 +943,7 @@ files:
885
943
  - spec/support/models/game.rb
886
944
  - spec/support/models/ghost.rb
887
945
  - spec/support/models/guitar.rb
946
+ - spec/support/models/hole.rb
888
947
  - spec/support/models/home.rb
889
948
  - spec/support/models/house.rb
890
949
  - spec/support/models/html_writer.rb
@@ -918,6 +977,7 @@ files:
918
977
  - spec/support/models/name_only.rb
919
978
  - spec/support/models/node.rb
920
979
  - spec/support/models/note.rb
980
+ - spec/support/models/nut.rb
921
981
  - spec/support/models/odd.rb
922
982
  - spec/support/models/order.rb
923
983
  - spec/support/models/ordered_post.rb
@@ -967,6 +1027,7 @@ files:
967
1027
  - spec/support/models/sandwich.rb
968
1028
  - spec/support/models/scheduler.rb
969
1029
  - spec/support/models/scribe.rb
1030
+ - spec/support/models/sealer.rb
970
1031
  - spec/support/models/seat.rb
971
1032
  - spec/support/models/seo.rb
972
1033
  - spec/support/models/series.rb
@@ -977,6 +1038,7 @@ files:
977
1038
  - spec/support/models/shipment_address.rb
978
1039
  - spec/support/models/shipping_container.rb
979
1040
  - spec/support/models/shipping_pack.rb
1041
+ - spec/support/models/shirt.rb
980
1042
  - spec/support/models/shop.rb
981
1043
  - spec/support/models/short_agent.rb
982
1044
  - spec/support/models/short_quiz.rb
@@ -984,6 +1046,7 @@ files:
984
1046
  - spec/support/models/slave.rb
985
1047
  - spec/support/models/song.rb
986
1048
  - spec/support/models/sound.rb
1049
+ - spec/support/models/spacer.rb
987
1050
  - spec/support/models/square.rb
988
1051
  - spec/support/models/staff.rb
989
1052
  - spec/support/models/store_as_dup_test1.rb
@@ -1000,6 +1063,7 @@ files:
1000
1063
  - spec/support/models/target.rb
1001
1064
  - spec/support/models/template.rb
1002
1065
  - spec/support/models/thing.rb
1066
+ - spec/support/models/threadlocker.rb
1003
1067
  - spec/support/models/title.rb
1004
1068
  - spec/support/models/tool.rb
1005
1069
  - spec/support/models/topping.rb
@@ -1018,6 +1082,7 @@ files:
1018
1082
  - spec/support/models/vet_visit.rb
1019
1083
  - spec/support/models/video.rb
1020
1084
  - spec/support/models/video_game.rb
1085
+ - spec/support/models/washer.rb
1021
1086
  - spec/support/models/weapon.rb
1022
1087
  - spec/support/models/wiki_page.rb
1023
1088
  - spec/support/models/word.rb
@@ -1064,6 +1129,7 @@ test_files:
1064
1129
  - spec/mongoid/tasks/database_spec.rb
1065
1130
  - spec/mongoid/tasks/database_rake_spec.rb
1066
1131
  - spec/mongoid/changeable_spec.rb
1132
+ - spec/mongoid/touchable_spec_models.rb
1067
1133
  - spec/mongoid/threaded_spec.rb
1068
1134
  - spec/mongoid/document_fields_spec.rb
1069
1135
  - spec/mongoid/extensions/true_class_spec.rb
@@ -1114,6 +1180,9 @@ test_files:
1114
1180
  - spec/mongoid/association_spec.rb
1115
1181
  - spec/mongoid/attributes/nested_spec.rb
1116
1182
  - spec/mongoid/attributes/readonly_spec.rb
1183
+ - spec/mongoid/attributes/projector_data/embedded.yml
1184
+ - spec/mongoid/attributes/projector_data/fields.yml
1185
+ - spec/mongoid/attributes/projector_spec.rb
1117
1186
  - spec/mongoid/attributes/dynamic_spec.rb
1118
1187
  - spec/mongoid/atomic/paths/embedded/many_spec.rb
1119
1188
  - spec/mongoid/atomic/paths/embedded/one_spec.rb
@@ -1309,11 +1378,13 @@ test_files:
1309
1378
  - spec/mongoid/criteria/queryable/storable_spec.rb
1310
1379
  - spec/mongoid/criteria/queryable/options_spec.rb
1311
1380
  - spec/mongoid/criteria/queryable/selectable_spec.rb
1381
+ - spec/mongoid/criteria/queryable/selectable_where_spec.rb
1312
1382
  - spec/mongoid/criteria/queryable/expandable_spec.rb
1313
1383
  - spec/mongoid/criteria/queryable/pipeline_spec.rb
1314
1384
  - spec/mongoid/criteria/queryable/queryable_spec.rb
1315
1385
  - spec/mongoid/criteria/queryable/selectable_logical_spec.rb
1316
1386
  - spec/mongoid/criteria/queryable/optional_spec.rb
1387
+ - spec/mongoid/criteria/queryable/selectable_shared_examples.rb
1317
1388
  - spec/mongoid/criteria/queryable/selector_spec.rb
1318
1389
  - spec/mongoid/criteria/queryable/key_spec.rb
1319
1390
  - spec/mongoid/criteria/marshalable_spec.rb
@@ -1326,6 +1397,7 @@ test_files:
1326
1397
  - spec/mongoid/shardable_spec.rb
1327
1398
  - spec/mongoid/stateful_spec.rb
1328
1399
  - spec/mongoid/attributes_spec.rb
1400
+ - spec/mongoid/criteria_projection_spec.rb
1329
1401
  - spec/README.md
1330
1402
  - spec/lite_spec_helper.rb
1331
1403
  - spec/mongoid_spec.rb
@@ -1359,43 +1431,71 @@ test_files:
1359
1431
  - spec/integration/criteria/logical_spec.rb
1360
1432
  - spec/integration/matcher_examples_spec.rb
1361
1433
  - spec/integration/matcher_operator_data/not.yml
1434
+ - spec/integration/matcher_operator_data/type_min_key.yml
1362
1435
  - spec/integration/matcher_operator_data/generic_op.yml
1436
+ - spec/integration/matcher_operator_data/type_object.yml
1437
+ - spec/integration/matcher_operator_data/type_null.yml
1438
+ - spec/integration/matcher_operator_data/type_int64.yml
1439
+ - spec/integration/matcher_operator_data/type_symbol.yml
1440
+ - spec/integration/matcher_operator_data/bits_all_clear.yml
1363
1441
  - spec/integration/matcher_operator_data/elem_match_expr.yml
1364
1442
  - spec/integration/matcher_operator_data/gt_types.yml
1365
1443
  - spec/integration/matcher_operator_data/ne.yml
1366
1444
  - spec/integration/matcher_operator_data/exists.yml
1445
+ - spec/integration/matcher_operator_data/type_boolean.yml
1446
+ - spec/integration/matcher_operator_data/type_binary.yml
1367
1447
  - spec/integration/matcher_operator_data/nin.yml
1448
+ - spec/integration/matcher_operator_data/bits_any_set.yml
1368
1449
  - spec/integration/matcher_operator_data/elem_match.yml
1450
+ - spec/integration/matcher_operator_data/type_timestamp.yml
1369
1451
  - spec/integration/matcher_operator_data/nor.yml
1370
1452
  - spec/integration/matcher_operator_data/regex_options.yml
1371
1453
  - spec/integration/matcher_operator_data/implicit.yml
1372
1454
  - spec/integration/matcher_operator_data/gt.yml
1455
+ - spec/integration/matcher_operator_data/comment.yml
1373
1456
  - spec/integration/matcher_operator_data/eq.yml
1457
+ - spec/integration/matcher_operator_data/type_undefined.yml
1374
1458
  - spec/integration/matcher_operator_data/all.yml
1375
1459
  - spec/integration/matcher_operator_data/invalid_op.yml
1376
1460
  - spec/integration/matcher_operator_data/implicit_traversal.yml
1461
+ - spec/integration/matcher_operator_data/type_max_key.yml
1377
1462
  - spec/integration/matcher_operator_data/gte_types.yml
1378
1463
  - spec/integration/matcher_operator_data/or.yml
1464
+ - spec/integration/matcher_operator_data/type_code.yml
1465
+ - spec/integration/matcher_operator_data/type_db_pointer.yml
1466
+ - spec/integration/matcher_operator_data/type_int32.yml
1379
1467
  - spec/integration/matcher_operator_data/multiple.yml
1380
1468
  - spec/integration/matcher_operator_data/regex.yml
1469
+ - spec/integration/matcher_operator_data/type_regex.yml
1381
1470
  - spec/integration/matcher_operator_data/lte_types.yml
1471
+ - spec/integration/matcher_operator_data/bits_all_set.yml
1472
+ - spec/integration/matcher_operator_data/mod.yml
1382
1473
  - spec/integration/matcher_operator_data/invalid_syntax.yml
1383
1474
  - spec/integration/matcher_operator_data/gte.yml
1475
+ - spec/integration/matcher_operator_data/type_date.yml
1384
1476
  - spec/integration/matcher_operator_data/in.yml
1385
1477
  - spec/integration/matcher_operator_data/lt.yml
1478
+ - spec/integration/matcher_operator_data/type_object_id.yml
1479
+ - spec/integration/matcher_operator_data/type.yml
1480
+ - spec/integration/matcher_operator_data/bits_any_clear.yml
1386
1481
  - spec/integration/matcher_operator_data/size.yml
1387
1482
  - spec/integration/matcher_operator_data/and.yml
1388
1483
  - spec/integration/matcher_operator_data/lte.yml
1484
+ - spec/integration/matcher_operator_data/type_decimal.yml
1485
+ - spec/integration/matcher_operator_data/type_code_with_scope.yml
1486
+ - spec/integration/matcher_operator_data/type_string.yml
1389
1487
  - spec/integration/matcher_operator_data/ne_types.yml
1488
+ - spec/integration/matcher_operator_data/type_array.yml
1390
1489
  - spec/integration/matcher_operator_data/lt_types.yml
1490
+ - spec/integration/matcher_operator_data/type_double.yml
1391
1491
  - spec/integration/shardable_spec.rb
1392
1492
  - spec/support/expectations.rb
1393
1493
  - spec/support/authorization.rb
1394
1494
  - spec/support/macros.rb
1395
1495
  - spec/support/session_registry.rb
1396
1496
  - spec/support/constraints.rb
1397
- - spec/support/cluster_config.rb
1398
1497
  - spec/support/helpers.rb
1498
+ - spec/support/client_registry.rb
1399
1499
  - spec/support/models/eraser.rb
1400
1500
  - spec/support/models/user.rb
1401
1501
  - spec/support/models/bed.rb
@@ -1409,6 +1509,7 @@ test_files:
1409
1509
  - spec/support/models/pub.rb
1410
1510
  - spec/support/models/kangaroo.rb
1411
1511
  - spec/support/models/country_code.rb
1512
+ - spec/support/models/washer.rb
1412
1513
  - spec/support/models/owner.rb
1413
1514
  - spec/support/models/face.rb
1414
1515
  - spec/support/models/palette.rb
@@ -1421,6 +1522,7 @@ test_files:
1421
1522
  - spec/support/models/folder.rb
1422
1523
  - spec/support/models/child_doc.rb
1423
1524
  - spec/support/models/quiz.rb
1525
+ - spec/support/models/shirt.rb
1424
1526
  - spec/support/models/name_only.rb
1425
1527
  - spec/support/models/pizza.rb
1426
1528
  - spec/support/models/kaleidoscope.rb
@@ -1429,6 +1531,7 @@ test_files:
1429
1531
  - spec/support/models/favorite.rb
1430
1532
  - spec/support/models/drug.rb
1431
1533
  - spec/support/models/audio.rb
1534
+ - spec/support/models/hole.rb
1432
1535
  - spec/support/models/armrest.rb
1433
1536
  - spec/support/models/vet_visit.rb
1434
1537
  - spec/support/models/sub_item.rb
@@ -1455,6 +1558,7 @@ test_files:
1455
1558
  - spec/support/models/sound.rb
1456
1559
  - spec/support/models/minim.rb
1457
1560
  - spec/support/models/employer.rb
1561
+ - spec/support/models/threadlocker.rb
1458
1562
  - spec/support/models/account.rb
1459
1563
  - spec/support/models/baby.rb
1460
1564
  - spec/support/models/contextable_item.rb
@@ -1489,6 +1593,8 @@ test_files:
1489
1593
  - spec/support/models/description.rb
1490
1594
  - spec/support/models/mop.rb
1491
1595
  - spec/support/models/child.rb
1596
+ - spec/support/models/spacer.rb
1597
+ - spec/support/models/sealer.rb
1492
1598
  - spec/support/models/player.rb
1493
1599
  - spec/support/models/shelf.rb
1494
1600
  - spec/support/models/appointment.rb
@@ -1518,6 +1624,7 @@ test_files:
1518
1624
  - spec/support/models/html_writer.rb
1519
1625
  - spec/support/models/subscription.rb
1520
1626
  - spec/support/models/person.rb
1627
+ - spec/support/models/nut.rb
1521
1628
  - spec/support/models/bar.rb
1522
1629
  - spec/support/models/firefox.rb
1523
1630
  - spec/support/models/wiki_page.rb
@@ -1556,6 +1663,7 @@ test_files:
1556
1663
  - spec/support/models/shape.rb
1557
1664
  - spec/support/models/league.rb
1558
1665
  - spec/support/models/tool.rb
1666
+ - spec/support/models/bolt.rb
1559
1667
  - spec/support/models/definition.rb
1560
1668
  - spec/support/models/toy.rb
1561
1669
  - spec/support/models/shipment_address.rb