bson 4.8.2 → 4.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/README.md +18 -6
  5. data/ext/bson/bson-endian.h +1 -1
  6. data/ext/bson/bson-native.h +1 -1
  7. data/ext/bson/bytebuf.c +1 -1
  8. data/ext/bson/endian.c +1 -1
  9. data/ext/bson/init.c +24 -22
  10. data/ext/bson/read.c +67 -19
  11. data/ext/bson/util.c +1 -1
  12. data/ext/bson/write.c +11 -4
  13. data/lib/bson.rb +1 -1
  14. data/lib/bson/active_support.rb +1 -1
  15. data/lib/bson/array.rb +10 -2
  16. data/lib/bson/binary.rb +1 -1
  17. data/lib/bson/boolean.rb +9 -2
  18. data/lib/bson/code.rb +1 -1
  19. data/lib/bson/code_with_scope.rb +9 -2
  20. data/lib/bson/config.rb +1 -1
  21. data/lib/bson/date.rb +1 -1
  22. data/lib/bson/date_time.rb +1 -1
  23. data/lib/bson/decimal128.rb +1 -1
  24. data/lib/bson/decimal128/builder.rb +1 -1
  25. data/lib/bson/document.rb +1 -1
  26. data/lib/bson/environment.rb +2 -1
  27. data/lib/bson/error.rb +10 -0
  28. data/lib/bson/ext_json.rb +1 -1
  29. data/lib/bson/false_class.rb +1 -1
  30. data/lib/bson/float.rb +1 -1
  31. data/lib/bson/hash.rb +10 -2
  32. data/lib/bson/int32.rb +1 -1
  33. data/lib/bson/int64.rb +1 -1
  34. data/lib/bson/integer.rb +1 -1
  35. data/lib/bson/json.rb +1 -1
  36. data/lib/bson/max_key.rb +1 -1
  37. data/lib/bson/min_key.rb +1 -1
  38. data/lib/bson/nil_class.rb +1 -1
  39. data/lib/bson/object.rb +1 -1
  40. data/lib/bson/object_id.rb +1 -1
  41. data/lib/bson/open_struct.rb +1 -1
  42. data/lib/bson/regexp.rb +8 -2
  43. data/lib/bson/registry.rb +1 -1
  44. data/lib/bson/specialized.rb +1 -1
  45. data/lib/bson/string.rb +1 -1
  46. data/lib/bson/symbol.rb +1 -1
  47. data/lib/bson/time.rb +1 -1
  48. data/lib/bson/time_with_zone.rb +1 -1
  49. data/lib/bson/timestamp.rb +1 -1
  50. data/lib/bson/true_class.rb +1 -1
  51. data/lib/bson/undefined.rb +1 -1
  52. data/lib/bson/version.rb +2 -2
  53. data/spec/bson/array_spec.rb +18 -1
  54. data/spec/bson/binary_spec.rb +1 -1
  55. data/spec/bson/binary_uuid_spec.rb +1 -1
  56. data/spec/bson/boolean_spec.rb +1 -1
  57. data/spec/bson/code_spec.rb +1 -1
  58. data/spec/bson/code_with_scope_spec.rb +1 -1
  59. data/spec/bson/date_spec.rb +1 -1
  60. data/spec/bson/date_time_spec.rb +1 -1
  61. data/spec/bson/decimal128_spec.rb +1 -1
  62. data/spec/bson/document_spec.rb +1 -1
  63. data/spec/bson/false_class_spec.rb +1 -1
  64. data/spec/bson/float_spec.rb +1 -1
  65. data/spec/bson/hash_spec.rb +18 -1
  66. data/spec/bson/int32_spec.rb +1 -1
  67. data/spec/bson/int64_spec.rb +1 -1
  68. data/spec/bson/integer_spec.rb +1 -1
  69. data/spec/bson/json_spec.rb +1 -1
  70. data/spec/bson/max_key_spec.rb +1 -1
  71. data/spec/bson/min_key_spec.rb +1 -1
  72. data/spec/bson/nil_class_spec.rb +1 -1
  73. data/spec/bson/object_id_spec.rb +1 -1
  74. data/spec/bson/object_spec.rb +1 -1
  75. data/spec/bson/open_struct_spec.rb +1 -1
  76. data/spec/bson/raw_spec.rb +12 -1
  77. data/spec/bson/regexp_spec.rb +1 -1
  78. data/spec/bson/registry_spec.rb +1 -1
  79. data/spec/bson/string_spec.rb +1 -1
  80. data/spec/bson/symbol_spec.rb +1 -1
  81. data/spec/bson/time_spec.rb +1 -1
  82. data/spec/bson/time_with_zone_spec.rb +1 -1
  83. data/spec/bson/timestamp_spec.rb +1 -1
  84. data/spec/bson/true_class_spec.rb +1 -1
  85. data/spec/bson/undefined_spec.rb +1 -1
  86. data/spec/bson_spec.rb +1 -1
  87. data/spec/runners/common_driver.rb +1 -1
  88. data/spec/runners/corpus.rb +13 -10
  89. data/spec/runners/corpus_legacy.rb +1 -1
  90. data/spec/spec_helper.rb +12 -1
  91. data/spec/spec_tests/data/corpus/top.json +0 -4
  92. data/spec/support/shared_examples.rb +1 -1
  93. data/spec/support/spec_config.rb +6 -0
  94. metadata +94 -95
  95. metadata.gz.sig +0 -0
metadata.gz.sig CHANGED
Binary file