bson 4.7.1-java → 4.8.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +1 -2
  3. data.tar.gz.sig +0 -0
  4. data/README.md +5 -1
  5. data/lib/bson-ruby.jar +0 -0
  6. data/lib/bson.rb +3 -0
  7. data/lib/bson/array.rb +21 -3
  8. data/lib/bson/binary.rb +41 -3
  9. data/lib/bson/boolean.rb +3 -1
  10. data/lib/bson/code.rb +15 -1
  11. data/lib/bson/code_with_scope.rb +17 -3
  12. data/lib/bson/db_pointer.rb +104 -0
  13. data/lib/bson/decimal128.rb +15 -1
  14. data/lib/bson/error.rb +17 -0
  15. data/lib/bson/ext_json.rb +374 -0
  16. data/lib/bson/float.rb +47 -1
  17. data/lib/bson/hash.rb +23 -3
  18. data/lib/bson/int32.rb +21 -1
  19. data/lib/bson/int64.rb +28 -3
  20. data/lib/bson/integer.rb +34 -0
  21. data/lib/bson/max_key.rb +12 -0
  22. data/lib/bson/min_key.rb +12 -0
  23. data/lib/bson/nil_class.rb +3 -1
  24. data/lib/bson/object.rb +27 -0
  25. data/lib/bson/object_id.rb +15 -1
  26. data/lib/bson/regexp.rb +19 -2
  27. data/lib/bson/specialized.rb +3 -1
  28. data/lib/bson/string.rb +3 -1
  29. data/lib/bson/symbol.rb +92 -3
  30. data/lib/bson/time.rb +28 -3
  31. data/lib/bson/timestamp.rb +15 -1
  32. data/lib/bson/undefined.rb +11 -0
  33. data/lib/bson/version.rb +1 -1
  34. data/spec/bson/binary_spec.rb +33 -3
  35. data/spec/bson/ext_json_parse_spec.rb +276 -0
  36. data/spec/bson/float_spec.rb +36 -0
  37. data/spec/bson/hash_spec.rb +70 -0
  38. data/spec/bson/int32_spec.rb +20 -0
  39. data/spec/bson/int64_spec.rb +38 -0
  40. data/spec/bson/integer_spec.rb +26 -0
  41. data/spec/bson/raw_spec.rb +22 -1
  42. data/spec/bson/symbol_raw_spec.rb +45 -0
  43. data/spec/bson/symbol_spec.rb +60 -0
  44. data/spec/{support → runners}/common_driver.rb +0 -0
  45. data/spec/runners/corpus.rb +182 -0
  46. data/spec/{support/corpus.rb → runners/corpus_legacy.rb} +40 -58
  47. data/spec/spec_helper.rb +9 -2
  48. data/spec/{bson/driver_bson_spec.rb → spec_tests/common_driver_spec.rb} +1 -0
  49. data/spec/{bson/corpus_spec.rb → spec_tests/corpus_legacy_spec.rb} +4 -4
  50. data/spec/spec_tests/corpus_spec.rb +124 -0
  51. data/spec/spec_tests/data/corpus/README.md +15 -0
  52. data/spec/spec_tests/data/corpus/array.json +49 -0
  53. data/spec/spec_tests/data/corpus/binary.json +85 -0
  54. data/spec/spec_tests/data/corpus/boolean.json +27 -0
  55. data/spec/spec_tests/data/corpus/code.json +67 -0
  56. data/spec/spec_tests/data/corpus/code_w_scope.json +78 -0
  57. data/spec/spec_tests/data/corpus/datetime.json +42 -0
  58. data/spec/spec_tests/data/corpus/dbpointer.json +56 -0
  59. data/spec/spec_tests/data/corpus/dbref.json +31 -0
  60. data/spec/spec_tests/data/corpus/decimal128-1.json +317 -0
  61. data/spec/spec_tests/data/corpus/decimal128-2.json +793 -0
  62. data/spec/spec_tests/data/corpus/decimal128-3.json +1771 -0
  63. data/spec/spec_tests/data/corpus/decimal128-4.json +117 -0
  64. data/spec/spec_tests/data/corpus/decimal128-5.json +402 -0
  65. data/spec/spec_tests/data/corpus/decimal128-6.json +119 -0
  66. data/spec/spec_tests/data/corpus/decimal128-7.json +323 -0
  67. data/spec/spec_tests/data/corpus/document.json +36 -0
  68. data/spec/spec_tests/data/corpus/double.json +87 -0
  69. data/spec/spec_tests/data/corpus/int32.json +43 -0
  70. data/spec/spec_tests/data/corpus/int64.json +43 -0
  71. data/spec/spec_tests/data/corpus/maxkey.json +12 -0
  72. data/spec/spec_tests/data/corpus/minkey.json +12 -0
  73. data/spec/spec_tests/data/corpus/multi-type-deprecated.json +15 -0
  74. data/spec/spec_tests/data/corpus/multi-type.json +11 -0
  75. data/spec/spec_tests/data/corpus/null.json +12 -0
  76. data/spec/spec_tests/data/corpus/oid.json +28 -0
  77. data/spec/spec_tests/data/corpus/regex.json +65 -0
  78. data/spec/spec_tests/data/corpus/string.json +72 -0
  79. data/spec/spec_tests/data/corpus/symbol.json +80 -0
  80. data/spec/spec_tests/data/corpus/timestamp.json +24 -0
  81. data/spec/spec_tests/data/corpus/top.json +240 -0
  82. data/spec/spec_tests/data/corpus/undefined.json +15 -0
  83. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/array.json +0 -0
  84. data/spec/{support/corpus-tests/failures → spec_tests/data/corpus_legacy}/binary.json +0 -0
  85. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/boolean.json +0 -0
  86. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/code.json +1 -1
  87. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/code_w_scope.json +1 -1
  88. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/document.json +1 -1
  89. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/double.json +1 -1
  90. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/datetime.json +0 -0
  91. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/dbpointer.json +0 -0
  92. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/int64.json +0 -0
  93. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/failures/symbol.json +0 -0
  94. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/int32.json +1 -1
  95. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/maxkey.json +1 -1
  96. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/minkey.json +1 -1
  97. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/null.json +1 -1
  98. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/oid.json +0 -0
  99. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/regex.json +1 -1
  100. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/string.json +0 -0
  101. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/timestamp.json +1 -1
  102. data/spec/{support/corpus-tests → spec_tests/data/corpus_legacy}/top.json +0 -0
  103. data/spec/{support/corpus-tests/failures → spec_tests/data/corpus_legacy}/undefined.json +0 -0
  104. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-1.json +0 -0
  105. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-2.json +0 -0
  106. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-3.json +0 -0
  107. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-4.json +0 -0
  108. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-5.json +0 -0
  109. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-6.json +0 -0
  110. data/spec/{support/driver-spec-tests → spec_tests/data}/decimal128/decimal128-7.json +0 -0
  111. metadata +170 -94
  112. metadata.gz.sig +0 -0
metadata.gz.sig CHANGED
Binary file