bson 4.7.0-java → 4.9.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -2
  3. data/lib/bson-ruby.jar +0 -0
  4. data/lib/bson.rb +4 -1
  5. data/lib/bson/active_support.rb +1 -1
  6. data/lib/bson/array.rb +34 -5
  7. data/lib/bson/binary.rb +42 -4
  8. data/lib/bson/boolean.rb +12 -3
  9. data/lib/bson/code.rb +16 -2
  10. data/lib/bson/code_with_scope.rb +32 -5
  11. data/lib/bson/config.rb +1 -1
  12. data/lib/bson/date.rb +1 -1
  13. data/lib/bson/date_time.rb +1 -1
  14. data/lib/bson/db_pointer.rb +110 -0
  15. data/lib/bson/decimal128.rb +16 -2
  16. data/lib/bson/decimal128/builder.rb +1 -1
  17. data/lib/bson/document.rb +1 -1
  18. data/lib/bson/environment.rb +2 -1
  19. data/lib/bson/error.rb +21 -0
  20. data/lib/bson/ext_json.rb +375 -0
  21. data/lib/bson/false_class.rb +1 -1
  22. data/lib/bson/float.rb +48 -2
  23. data/lib/bson/hash.rb +36 -5
  24. data/lib/bson/int32.rb +22 -2
  25. data/lib/bson/int64.rb +29 -4
  26. data/lib/bson/integer.rb +35 -1
  27. data/lib/bson/json.rb +1 -1
  28. data/lib/bson/max_key.rb +13 -1
  29. data/lib/bson/min_key.rb +13 -1
  30. data/lib/bson/nil_class.rb +4 -2
  31. data/lib/bson/object.rb +28 -1
  32. data/lib/bson/object_id.rb +16 -2
  33. data/lib/bson/open_struct.rb +1 -1
  34. data/lib/bson/regexp.rb +20 -3
  35. data/lib/bson/registry.rb +1 -1
  36. data/lib/bson/specialized.rb +4 -2
  37. data/lib/bson/string.rb +4 -2
  38. data/lib/bson/symbol.rb +93 -4
  39. data/lib/bson/time.rb +63 -4
  40. data/lib/bson/time_with_zone.rb +1 -1
  41. data/lib/bson/timestamp.rb +16 -2
  42. data/lib/bson/true_class.rb +1 -1
  43. data/lib/bson/undefined.rb +12 -1
  44. data/lib/bson/version.rb +2 -2
  45. data/spec/bson/array_spec.rb +1 -1
  46. data/spec/bson/binary_spec.rb +34 -4
  47. data/spec/bson/binary_uuid_spec.rb +1 -1
  48. data/spec/bson/boolean_spec.rb +1 -1
  49. data/spec/bson/code_spec.rb +1 -1
  50. data/spec/bson/code_with_scope_spec.rb +1 -1
  51. data/spec/bson/date_spec.rb +1 -1
  52. data/spec/bson/date_time_spec.rb +1 -1
  53. data/spec/bson/decimal128_spec.rb +1 -1
  54. data/spec/bson/document_spec.rb +1 -1
  55. data/spec/bson/ext_json_parse_spec.rb +308 -0
  56. data/spec/bson/false_class_spec.rb +1 -1
  57. data/spec/bson/float_spec.rb +37 -1
  58. data/spec/bson/hash_spec.rb +71 -1
  59. data/spec/bson/int32_spec.rb +21 -1
  60. data/spec/bson/int64_spec.rb +39 -1
  61. data/spec/bson/integer_spec.rb +27 -1
  62. data/spec/bson/json_spec.rb +1 -1
  63. data/spec/bson/max_key_spec.rb +1 -1
  64. data/spec/bson/min_key_spec.rb +1 -1
  65. data/spec/bson/nil_class_spec.rb +1 -1
  66. data/spec/bson/object_id_spec.rb +1 -1
  67. data/spec/bson/object_spec.rb +1 -1
  68. data/spec/bson/open_struct_spec.rb +1 -1
  69. data/spec/bson/raw_spec.rb +22 -1
  70. data/spec/bson/regexp_spec.rb +1 -1
  71. data/spec/bson/registry_spec.rb +1 -1
  72. data/spec/bson/string_spec.rb +1 -1
  73. data/spec/bson/symbol_raw_spec.rb +45 -0
  74. data/spec/bson/symbol_spec.rb +61 -1
  75. data/spec/bson/time_spec.rb +205 -2
  76. data/spec/bson/time_with_zone_spec.rb +1 -1
  77. data/spec/bson/timestamp_spec.rb +1 -1
  78. data/spec/bson/true_class_spec.rb +1 -1
  79. data/spec/bson/undefined_spec.rb +1 -1
  80. data/spec/bson_spec.rb +1 -1
  81. data/spec/{support → runners}/common_driver.rb +1 -1
  82. data/spec/runners/corpus.rb +185 -0
  83. data/spec/{support/corpus.rb → runners/corpus_legacy.rb} +41 -59
  84. data/spec/spec_helper.rb +10 -3
  85. data/spec/{bson/driver_bson_spec.rb → spec_tests/common_driver_spec.rb} +1 -0
  86. data/spec/{bson/corpus_spec.rb → spec_tests/corpus_legacy_spec.rb} +4 -4
  87. data/spec/spec_tests/corpus_spec.rb +124 -0
  88. data/spec/spec_tests/data/corpus/README.md +15 -0
  89. data/spec/spec_tests/data/corpus/array.json +49 -0
  90. data/spec/spec_tests/data/corpus/binary.json +85 -0
  91. data/spec/spec_tests/data/corpus/boolean.json +27 -0
  92. data/spec/spec_tests/data/corpus/code.json +67 -0
  93. data/spec/spec_tests/data/corpus/code_w_scope.json +78 -0
  94. data/spec/spec_tests/data/corpus/datetime.json +42 -0
  95. data/spec/spec_tests/data/corpus/dbpointer.json +56 -0
  96. data/spec/spec_tests/data/corpus/dbref.json +31 -0
  97. data/spec/spec_tests/data/corpus/decimal128-1.json +317 -0
  98. data/spec/spec_tests/data/corpus/decimal128-2.json +793 -0
  99. data/spec/spec_tests/data/corpus/decimal128-3.json +1771 -0
  100. data/spec/spec_tests/data/corpus/decimal128-4.json +117 -0
  101. data/spec/spec_tests/data/corpus/decimal128-5.json +402 -0
  102. data/spec/spec_tests/data/corpus/decimal128-6.json +119 -0
  103. data/spec/spec_tests/data/corpus/decimal128-7.json +323 -0
  104. data/spec/spec_tests/data/corpus/document.json +36 -0
  105. data/spec/spec_tests/data/corpus/double.json +87 -0
  106. data/spec/spec_tests/data/corpus/int32.json +43 -0
  107. data/spec/spec_tests/data/corpus/int64.json +43 -0
  108. data/spec/spec_tests/data/corpus/maxkey.json +12 -0
  109. data/spec/spec_tests/data/corpus/minkey.json +12 -0
  110. data/spec/spec_tests/data/corpus/multi-type-deprecated.json +15 -0
  111. data/spec/spec_tests/data/corpus/multi-type.json +11 -0
  112. data/spec/spec_tests/data/corpus/null.json +12 -0
  113. data/spec/spec_tests/data/corpus/oid.json +28 -0
  114. data/spec/spec_tests/data/corpus/regex.json +65 -0
  115. data/spec/spec_tests/data/corpus/string.json +72 -0
  116. data/spec/spec_tests/data/corpus/symbol.json +80 -0
  117. data/spec/spec_tests/data/corpus/timestamp.json +24 -0
  118. data/spec/spec_tests/data/corpus/top.json +236 -0
  119. data/spec/spec_tests/data/corpus/undefined.json +15 -0
  120. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/array.json +0 -0
  121. data/spec/{support/corpus-tests/failures → spec_tests/data/corpus_legacy}/binary.json +0 -0
  122. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/boolean.json +0 -0
  123. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/code.json +1 -1
  124. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/code_w_scope.json +1 -1
  125. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/document.json +1 -1
  126. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/double.json +1 -1
  127. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/datetime.json +0 -0
  128. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/dbpointer.json +0 -0
  129. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/int64.json +0 -0
  130. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/symbol.json +0 -0
  131. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/int32.json +1 -1
  132. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/maxkey.json +1 -1
  133. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/minkey.json +1 -1
  134. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/null.json +1 -1
  135. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/oid.json +0 -0
  136. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/regex.json +1 -1
  137. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/string.json +0 -0
  138. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/timestamp.json +1 -1
  139. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/top.json +0 -0
  140. data/spec/{support/corpus-tests/failures → spec_tests/data/corpus_legacy}/undefined.json +0 -0
  141. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-1.json +0 -0
  142. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-2.json +0 -0
  143. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-3.json +0 -0
  144. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-4.json +0 -0
  145. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-5.json +0 -0
  146. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-6.json +0 -0
  147. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-7.json +0 -0
  148. data/spec/support/shared_examples.rb +1 -1
  149. metadata +171 -120
  150. checksums.yaml.gz.sig +0 -2
  151. data.tar.gz.sig +0 -1
  152. metadata.gz.sig +0 -0
@@ -1,2 +0,0 @@
1
- 4;�mDʖ�.�.�
2
- ������a*�j�@�4�J���~M�+��% F���2v�/��O���
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
- V�
metadata.gz.sig DELETED
Binary file