mongo 2.16.0 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.md +1 -1
  4. data/lib/mongo/auth/aws/request.rb +0 -1
  5. data/lib/mongo/client.rb +4 -0
  6. data/lib/mongo/collection/view/aggregation.rb +62 -17
  7. data/lib/mongo/collection/view/builder/aggregation.rb +11 -13
  8. data/lib/mongo/collection/view/builder/map_reduce.rb +1 -1
  9. data/lib/mongo/collection/view/change_stream.rb +7 -3
  10. data/lib/mongo/collection/view/iterable.rb +2 -3
  11. data/lib/mongo/collection/view/map_reduce.rb +2 -0
  12. data/lib/mongo/collection/view/readable.rb +24 -1
  13. data/lib/mongo/collection/view/writable.rb +23 -0
  14. data/lib/mongo/collection.rb +21 -1
  15. data/lib/mongo/database/view.rb +4 -2
  16. data/lib/mongo/database.rb +6 -6
  17. data/lib/mongo/error/snapshot_session_invalid_server_version.rb +31 -0
  18. data/lib/mongo/error/snapshot_session_transaction_prohibited.rb +30 -0
  19. data/lib/mongo/error.rb +2 -0
  20. data/lib/mongo/operation/delete/op_msg.rb +2 -1
  21. data/lib/mongo/operation/find/builder/command.rb +1 -0
  22. data/lib/mongo/operation/result.rb +6 -0
  23. data/lib/mongo/operation/shared/executable.rb +4 -0
  24. data/lib/mongo/operation/shared/sessions_supported.rb +18 -2
  25. data/lib/mongo/operation/update/op_msg.rb +2 -1
  26. data/lib/mongo/server/description/features.rb +3 -1
  27. data/lib/mongo/server/push_monitor.rb +4 -1
  28. data/lib/mongo/server_selector/base.rb +26 -4
  29. data/lib/mongo/session.rb +19 -0
  30. data/lib/mongo/socket/ocsp_cache.rb +2 -3
  31. data/lib/mongo/socket.rb +1 -5
  32. data/lib/mongo/utils.rb +0 -6
  33. data/lib/mongo/version.rb +1 -1
  34. data/mongo.gemspec +1 -1
  35. data/spec/integration/read_preference_spec.rb +16 -12
  36. data/spec/mongo/collection/view/aggregation_spec.rb +71 -95
  37. data/spec/mongo/collection/view/change_stream_spec.rb +1 -1
  38. data/spec/mongo/collection/view/map_reduce_spec.rb +14 -1
  39. data/spec/mongo/operation/read_preference_op_msg_spec.rb +24 -1
  40. data/spec/mongo/server/monitor/connection_spec.rb +22 -0
  41. data/spec/mongo/server/push_monitor_spec.rb +101 -0
  42. data/spec/mongo/server_selector_spec.rb +136 -15
  43. data/spec/mongo/socket/ssl_spec.rb +26 -58
  44. data/spec/mongo/utils_spec.rb +0 -14
  45. data/spec/runners/crud/verifier.rb +1 -2
  46. data/spec/runners/unified/assertions.rb +3 -1
  47. data/spec/runners/unified/crud_operations.rb +77 -23
  48. data/spec/runners/unified/ddl_operations.rb +29 -1
  49. data/spec/runners/unified/entity_map.rb +3 -3
  50. data/spec/runners/unified/support_operations.rb +6 -1
  51. data/spec/runners/unified/test.rb +15 -3
  52. data/spec/spec_tests/data/crud_unified/aggregate-let.yml +138 -0
  53. data/spec/spec_tests/data/crud_unified/aggregate-write-readPreference.yml +155 -0
  54. data/spec/spec_tests/data/crud_unified/db-aggregate-write-readPreference.yml +151 -0
  55. data/spec/spec_tests/data/crud_unified/deleteMany-let.yml +91 -0
  56. data/spec/spec_tests/data/crud_unified/deleteOne-let.yml +89 -0
  57. data/spec/spec_tests/data/crud_unified/find-let.yml +71 -0
  58. data/spec/spec_tests/data/crud_unified/findOneAndDelete-let.yml +88 -0
  59. data/spec/spec_tests/data/crud_unified/findOneAndReplace-let.yml +94 -0
  60. data/spec/spec_tests/data/crud_unified/findOneAndUpdate-let.yml +96 -0
  61. data/spec/spec_tests/data/crud_unified/updateMany-let.yml +103 -0
  62. data/spec/spec_tests/data/crud_unified/updateOne-let.yml +98 -0
  63. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml +2 -2
  64. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/LastUpdateTime.yml +3 -3
  65. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Nearest.yml +3 -3
  66. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Nearest2.yml +3 -3
  67. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred.yml +2 -2
  68. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml +2 -2
  69. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Secondary.yml +4 -4
  70. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred.yml +2 -2
  71. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml +4 -4
  72. data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/ZeroMaxStaleness.yml +2 -2
  73. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml +2 -2
  74. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LastUpdateTime.yml +3 -3
  75. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LongHeartbeat.yml +2 -2
  76. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LongHeartbeat2.yml +2 -2
  77. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml +2 -2
  78. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml +2 -2
  79. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest.yml +3 -3
  80. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest2.yml +3 -3
  81. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest_tags.yml +2 -2
  82. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/PrimaryPreferred.yml +2 -2
  83. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml +2 -2
  84. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml +5 -5
  85. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml +3 -3
  86. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Secondary_tags.yml +5 -5
  87. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Secondary_tags2.yml +3 -3
  88. data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/ZeroMaxStaleness.yml +2 -2
  89. data/spec/spec_tests/data/max_staleness/Sharded/SmallMaxStaleness.yml +2 -2
  90. data/spec/spec_tests/data/max_staleness/Single/SmallMaxStaleness.yml +1 -1
  91. data/spec/spec_tests/data/max_staleness/Unknown/SmallMaxStaleness.yml +1 -1
  92. data/spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml +69 -0
  93. data/spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-server-error.yml +102 -0
  94. data/spec/spec_tests/data/sessions_unified/snapshot-sessions-unsupported-ops.yml +258 -0
  95. data/spec/spec_tests/data/sessions_unified/snapshot-sessions.yml +482 -0
  96. data/spec/spec_tests/sessions_unified_spec.rb +13 -0
  97. data.tar.gz.sig +0 -0
  98. metadata +1076 -1040
  99. metadata.gz.sig +2 -2
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ��ȣ�Ga1�ԿQ�����׾��¿\��L(:�xN/.����2I
2
- t$:���w������TFY#��[��$�s��G�э�K>���4�1�C���;@%�� g �i1�����5~��Qi��b�i��`l���j�߹�Z5�7��N�v{h�,(?B:��� ��d�<2�ya3g1uj>N^����$9���R���^�%�0�yD�ܺ�:9���u�6.cȅt�*�m�O)a`��8*� �}9=rԳm�Z
1
+ MD|h��҉[M�I)�d:t;L��%��Y�>���M��wt�DY�}���/���$����Y�`�qǟ�TA
2
+ ����U}�س�tM���1�Ȩ�K�m�