mongoid 8.1.3 → 8.1.11

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +43 -45
  3. data/lib/mongoid/association/accessors.rb +5 -1
  4. data/lib/mongoid/association/eager_loadable.rb +3 -0
  5. data/lib/mongoid/association/embedded/embeds_many/proxy.rb +18 -3
  6. data/lib/mongoid/association/embedded/embeds_one/proxy.rb +1 -1
  7. data/lib/mongoid/association/referenced/has_many/enumerable.rb +21 -4
  8. data/lib/mongoid/association/referenced/has_many/proxy.rb +11 -2
  9. data/lib/mongoid/atomic.rb +9 -7
  10. data/lib/mongoid/attributes/readonly.rb +8 -3
  11. data/lib/mongoid/contextual/mongo.rb +1 -1
  12. data/lib/mongoid/criteria/queryable/extensions/numeric.rb +15 -1
  13. data/lib/mongoid/criteria/queryable/selectable.rb +1 -1
  14. data/lib/mongoid/document.rb +8 -1
  15. data/lib/mongoid/equality.rb +1 -0
  16. data/lib/mongoid/extensions/hash.rb +4 -4
  17. data/lib/mongoid/fields.rb +13 -8
  18. data/lib/mongoid/interceptable.rb +6 -7
  19. data/lib/mongoid/matcher.rb +15 -1
  20. data/lib/mongoid/serializable.rb +7 -7
  21. data/lib/mongoid/timestamps/created.rb +8 -1
  22. data/lib/mongoid/touchable.rb +1 -1
  23. data/lib/mongoid/traversable.rb +36 -1
  24. data/lib/mongoid/validatable/associated.rb +98 -17
  25. data/lib/mongoid/validatable/macros.rb +15 -0
  26. data/lib/mongoid/validatable/numericality.rb +19 -0
  27. data/lib/mongoid/validatable.rb +9 -0
  28. data/lib/mongoid/version.rb +5 -1
  29. data/spec/integration/app_spec.rb +24 -5
  30. data/spec/integration/associations/embeds_one_spec.rb +25 -5
  31. data/spec/integration/associations/has_and_belongs_to_many_spec.rb +40 -0
  32. data/spec/mongoid/association/eager_spec.rb +24 -2
  33. data/spec/mongoid/association/embedded/embeds_many/proxy_spec.rb +35 -0
  34. data/spec/mongoid/association/embedded/embeds_many_query_spec.rb +4 -0
  35. data/spec/mongoid/association/referenced/belongs_to/proxy_spec.rb +4 -0
  36. data/spec/mongoid/association/referenced/has_and_belongs_to_many/proxy_spec.rb +28 -37
  37. data/spec/mongoid/association/referenced/has_many/proxy_spec.rb +42 -0
  38. data/spec/mongoid/attributes/readonly_spec.rb +19 -0
  39. data/spec/mongoid/attributes_spec.rb +16 -0
  40. data/spec/mongoid/contextual/mongo_spec.rb +78 -3
  41. data/spec/mongoid/criteria/queryable/selectable_spec.rb +29 -0
  42. data/spec/mongoid/document_spec.rb +27 -0
  43. data/spec/mongoid/equality_spec.rb +6 -0
  44. data/spec/mongoid/fields_spec.rb +3 -3
  45. data/spec/mongoid/interceptable_spec.rb +80 -0
  46. data/spec/mongoid/interceptable_spec_models.rb +47 -111
  47. data/spec/mongoid/serializable_spec.rb +16 -9
  48. data/spec/mongoid/timestamps/created_spec.rb +23 -0
  49. data/spec/mongoid/validatable/associated_spec.rb +27 -34
  50. data/spec/mongoid/validatable/numericality_spec.rb +16 -0
  51. data/spec/shared/lib/mrss/docker_runner.rb +1 -2
  52. data/spec/shared/lib/mrss/release/candidate.rb +281 -0
  53. data/spec/shared/lib/mrss/release/product_data.rb +144 -0
  54. data/spec/shared/lib/mrss/server_version_registry.rb +1 -1
  55. data/spec/shared/lib/tasks/candidate.rake +64 -0
  56. data/spec/shared/share/Dockerfile.erb +15 -85
  57. data/spec/shared/shlib/distro.sh +10 -0
  58. data/spec/shared/shlib/server.sh +33 -26
  59. data/spec/shared/shlib/set_env.sh +9 -68
  60. data/spec/support/expectations.rb +20 -17
  61. data/spec/support/models/band.rb +1 -0
  62. data/spec/support/models/lat_lng.rb +6 -0
  63. data/spec/support/models/name.rb +10 -0
  64. metadata +15 -38
  65. checksums.yaml.gz.sig +0 -0
  66. data.tar.gz.sig +0 -0
  67. metadata.gz.sig +0 -0
metadata CHANGED
@@ -1,41 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.3
4
+ version: 8.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - The MongoDB Ruby Team
8
- autorequire:
9
8
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMREwDwYDVQQDDAhkYngt
14
- cnVieTEXMBUGCgmSJomT8ixkARkWB21vbmdvZGIxEzARBgoJkiaJk/IsZAEZFgNj
15
- b20wHhcNMjMwMTMxMTE1NjM1WhcNMjQwMTMxMTE1NjM1WjBBMREwDwYDVQQDDAhk
16
- YngtcnVieTEXMBUGCgmSJomT8ixkARkWB21vbmdvZGIxEzARBgoJkiaJk/IsZAEZ
17
- FgNjb20wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC0/Veq9l47cTfX
18
- tQ+kHq2NOCwJuJGt1iXWQ/vH/yp7pZ/bLej7gPDl2CfIngAXRjM7r1FkR9ya7VAm
19
- IneBFcVU3HhpIXWi4ByXGjBOXFD1Dfbz4C4zedIWRk/hNzXa+rQY4KPwpOwG/hZg
20
- id+rSXWSbNlkyN97XfonweVh7JsIa9X/2JY9ADYjhCfEZF+b0+Wl7+jgwzLWb46I
21
- 0WH0bZBIZ0BbKAwUXIgvq5mQf9PzukmMVYCwnkJ/P4wrHO22HuwnbMyvJuGjVwqi
22
- j1NRp/2vjmKBFWxIfhlSXEIiqAmeEVNXzhPvTVeyo+rma+7R3Bo+4WHkcnPpXJJZ
23
- Jd63qXMvTB0GplEcMJPztWhrJOmcxIOVoQyigEPSQT8JpzFVXby4SGioizv2eT7l
24
- VYSiCHuc3yEDyq5M+98WGX2etbj6esYtzI3rDevpIAHPB6HQmtoJIA4dSl3gjFb+
25
- D+YQSuB2qYu021FI9zeY9sbZyWysEXBxhwrmTk+XUV0qz+OQZkMCAwEAAaN7MHkw
26
- CQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFH4nnr4tYlatU57RbExW
27
- jG86YM5nMB8GA1UdEQQYMBaBFGRieC1ydWJ5QG1vbmdvZGIuY29tMB8GA1UdEgQY
28
- MBaBFGRieC1ydWJ5QG1vbmdvZGIuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQAVSlgM
29
- nFDWCCNLOCqG5/Lj4U62XoALkdCI+OZ30+WrA8qiRLSL9ZEziVK9AV7ylez+sriQ
30
- m8XKZKsCN5ON4+zXw1S+6Ftz/R4zDg7nTb9Wgw8ibzsoiP6e4pRW3Fls3ZdaG4pW
31
- +qMTbae9OiSrgI2bxNTII+v+1FcbQjOlMu8HPZ3ZfXnurXPgN5GxSyyclZI1QONO
32
- HbUoKHRirZu0F7JCvQQq4EkSuLWPplRJfYEeJIYm05zhhFeEyqea2B/TTlCtXa42
33
- 84vxXsxGzumuO8F2Q9m6/p95sNhqCp0B/SkKXIrRGJ7FBzupoORNRXHviS2OC3ty
34
- 4lwUzOlLTF/yO0wwYYfmtQOALQwKnW838vbYthMXvTjxB0EgVZ5PKto99WbjsXzy
35
- wkeAWhd5b+5JS0zgDL4SvGB8/W2IY+y0zELkojBMgJPyrpAWHL/WSsSBMuhyI2Pv
36
- xxaBVLklnJJ/qCCOZ3lG2MyVc/Nb0Mmq8ygWNsfwHmKKYuuWcviit0D0Tek=
37
- -----END CERTIFICATE-----
38
- date: 2023-10-23 00:00:00.000000000 Z
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
39
11
  dependencies:
40
12
  - !ruby/object:Gem::Dependency
41
13
  name: activemodel
@@ -46,7 +18,7 @@ dependencies:
46
18
  version: '5.1'
47
19
  - - "<"
48
20
  - !ruby/object:Gem::Version
49
- version: '7.2'
21
+ version: '8.1'
50
22
  - - "!="
51
23
  - !ruby/object:Gem::Version
52
24
  version: 7.0.0
@@ -59,7 +31,7 @@ dependencies:
59
31
  version: '5.1'
60
32
  - - "<"
61
33
  - !ruby/object:Gem::Version
62
- version: '7.2'
34
+ version: '8.1'
63
35
  - - "!="
64
36
  - !ruby/object:Gem::Version
65
37
  version: 7.0.0
@@ -487,6 +459,7 @@ files:
487
459
  - lib/mongoid/validatable/length.rb
488
460
  - lib/mongoid/validatable/localizable.rb
489
461
  - lib/mongoid/validatable/macros.rb
462
+ - lib/mongoid/validatable/numericality.rb
490
463
  - lib/mongoid/validatable/presence.rb
491
464
  - lib/mongoid/validatable/queryable.rb
492
465
  - lib/mongoid/validatable/uniqueness.rb
@@ -900,11 +873,14 @@ files:
900
873
  - spec/shared/lib/mrss/eg_config_utils.rb
901
874
  - spec/shared/lib/mrss/event_subscriber.rb
902
875
  - spec/shared/lib/mrss/lite_constraints.rb
876
+ - spec/shared/lib/mrss/release/candidate.rb
877
+ - spec/shared/lib/mrss/release/product_data.rb
903
878
  - spec/shared/lib/mrss/server_version_registry.rb
904
879
  - spec/shared/lib/mrss/session_registry.rb
905
880
  - spec/shared/lib/mrss/session_registry_legacy.rb
906
881
  - spec/shared/lib/mrss/spec_organizer.rb
907
882
  - spec/shared/lib/mrss/utils.rb
883
+ - spec/shared/lib/tasks/candidate.rake
908
884
  - spec/shared/share/Dockerfile.erb
909
885
  - spec/shared/share/haproxy-1.conf
910
886
  - spec/shared/share/haproxy-2.conf
@@ -1196,7 +1172,6 @@ metadata:
1196
1172
  documentation_uri: https://www.mongodb.com/docs/mongoid/
1197
1173
  homepage_uri: https://mongoid.org/
1198
1174
  source_code_uri: https://github.com/mongodb/mongoid
1199
- post_install_message:
1200
1175
  rdoc_options: []
1201
1176
  require_paths:
1202
1177
  - lib
@@ -1211,8 +1186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1211
1186
  - !ruby/object:Gem::Version
1212
1187
  version: 1.3.6
1213
1188
  requirements: []
1214
- rubygems_version: 3.4.21
1215
- signing_key:
1189
+ rubygems_version: 3.7.1
1216
1190
  specification_version: 4
1217
1191
  summary: Elegant Persistence in Ruby for MongoDB.
1218
1192
  test_files:
@@ -1618,11 +1592,14 @@ test_files:
1618
1592
  - spec/shared/lib/mrss/eg_config_utils.rb
1619
1593
  - spec/shared/lib/mrss/event_subscriber.rb
1620
1594
  - spec/shared/lib/mrss/lite_constraints.rb
1595
+ - spec/shared/lib/mrss/release/candidate.rb
1596
+ - spec/shared/lib/mrss/release/product_data.rb
1621
1597
  - spec/shared/lib/mrss/server_version_registry.rb
1622
1598
  - spec/shared/lib/mrss/session_registry.rb
1623
1599
  - spec/shared/lib/mrss/session_registry_legacy.rb
1624
1600
  - spec/shared/lib/mrss/spec_organizer.rb
1625
1601
  - spec/shared/lib/mrss/utils.rb
1602
+ - spec/shared/lib/tasks/candidate.rake
1626
1603
  - spec/shared/share/Dockerfile.erb
1627
1604
  - spec/shared/share/haproxy-1.conf
1628
1605
  - spec/shared/share/haproxy-2.conf
@@ -1690,8 +1667,8 @@ test_files:
1690
1667
  - spec/support/models/circuit.rb
1691
1668
  - spec/support/models/circus.rb
1692
1669
  - spec/support/models/code.rb
1693
- - spec/support/models/coding/pull_request.rb
1694
1670
  - spec/support/models/coding.rb
1671
+ - spec/support/models/coding/pull_request.rb
1695
1672
  - spec/support/models/comment.rb
1696
1673
  - spec/support/models/company.rb
1697
1674
  - spec/support/models/consumption_period.rb
@@ -1813,9 +1790,9 @@ test_files:
1813
1790
  - spec/support/models/profile.rb
1814
1791
  - spec/support/models/pronunciation.rb
1815
1792
  - spec/support/models/pub.rb
1793
+ - spec/support/models/publication.rb
1816
1794
  - spec/support/models/publication/encyclopedia.rb
1817
1795
  - spec/support/models/publication/review.rb
1818
- - spec/support/models/publication.rb
1819
1796
  - spec/support/models/purchase.rb
1820
1797
  - spec/support/models/purchased_item.rb
1821
1798
  - spec/support/models/purse.rb
checksums.yaml.gz.sig DELETED
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file