bson 4.8.2 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/ext/bson/bson-endian.h +1 -1
  4. data/ext/bson/bson-native.h +1 -1
  5. data/ext/bson/bytebuf.c +1 -1
  6. data/ext/bson/endian.c +1 -1
  7. data/ext/bson/init.c +1 -1
  8. data/ext/bson/read.c +67 -19
  9. data/ext/bson/util.c +1 -1
  10. data/ext/bson/write.c +1 -1
  11. data/lib/bson.rb +1 -1
  12. data/lib/bson/active_support.rb +1 -1
  13. data/lib/bson/array.rb +7 -2
  14. data/lib/bson/binary.rb +1 -1
  15. data/lib/bson/boolean.rb +9 -2
  16. data/lib/bson/code.rb +1 -1
  17. data/lib/bson/code_with_scope.rb +9 -2
  18. data/lib/bson/config.rb +1 -1
  19. data/lib/bson/date.rb +1 -1
  20. data/lib/bson/date_time.rb +1 -1
  21. data/lib/bson/decimal128.rb +1 -1
  22. data/lib/bson/decimal128/builder.rb +1 -1
  23. data/lib/bson/document.rb +1 -1
  24. data/lib/bson/environment.rb +2 -1
  25. data/lib/bson/error.rb +4 -0
  26. data/lib/bson/ext_json.rb +1 -1
  27. data/lib/bson/false_class.rb +1 -1
  28. data/lib/bson/float.rb +1 -1
  29. data/lib/bson/hash.rb +7 -2
  30. data/lib/bson/int32.rb +1 -1
  31. data/lib/bson/int64.rb +1 -1
  32. data/lib/bson/integer.rb +1 -1
  33. data/lib/bson/json.rb +1 -1
  34. data/lib/bson/max_key.rb +1 -1
  35. data/lib/bson/min_key.rb +1 -1
  36. data/lib/bson/nil_class.rb +1 -1
  37. data/lib/bson/object.rb +1 -1
  38. data/lib/bson/object_id.rb +1 -1
  39. data/lib/bson/open_struct.rb +1 -1
  40. data/lib/bson/regexp.rb +1 -1
  41. data/lib/bson/registry.rb +1 -1
  42. data/lib/bson/specialized.rb +1 -1
  43. data/lib/bson/string.rb +1 -1
  44. data/lib/bson/symbol.rb +1 -1
  45. data/lib/bson/time.rb +1 -1
  46. data/lib/bson/time_with_zone.rb +1 -1
  47. data/lib/bson/timestamp.rb +1 -1
  48. data/lib/bson/true_class.rb +1 -1
  49. data/lib/bson/undefined.rb +1 -1
  50. data/lib/bson/version.rb +2 -2
  51. data/spec/bson/array_spec.rb +1 -1
  52. data/spec/bson/binary_spec.rb +1 -1
  53. data/spec/bson/binary_uuid_spec.rb +1 -1
  54. data/spec/bson/boolean_spec.rb +1 -1
  55. data/spec/bson/code_spec.rb +1 -1
  56. data/spec/bson/code_with_scope_spec.rb +1 -1
  57. data/spec/bson/date_spec.rb +1 -1
  58. data/spec/bson/date_time_spec.rb +1 -1
  59. data/spec/bson/decimal128_spec.rb +1 -1
  60. data/spec/bson/document_spec.rb +1 -1
  61. data/spec/bson/false_class_spec.rb +1 -1
  62. data/spec/bson/float_spec.rb +1 -1
  63. data/spec/bson/hash_spec.rb +1 -1
  64. data/spec/bson/int32_spec.rb +1 -1
  65. data/spec/bson/int64_spec.rb +1 -1
  66. data/spec/bson/integer_spec.rb +1 -1
  67. data/spec/bson/json_spec.rb +1 -1
  68. data/spec/bson/max_key_spec.rb +1 -1
  69. data/spec/bson/min_key_spec.rb +1 -1
  70. data/spec/bson/nil_class_spec.rb +1 -1
  71. data/spec/bson/object_id_spec.rb +1 -1
  72. data/spec/bson/object_spec.rb +1 -1
  73. data/spec/bson/open_struct_spec.rb +1 -1
  74. data/spec/bson/regexp_spec.rb +1 -1
  75. data/spec/bson/registry_spec.rb +1 -1
  76. data/spec/bson/string_spec.rb +1 -1
  77. data/spec/bson/symbol_spec.rb +1 -1
  78. data/spec/bson/time_spec.rb +1 -1
  79. data/spec/bson/time_with_zone_spec.rb +1 -1
  80. data/spec/bson/timestamp_spec.rb +1 -1
  81. data/spec/bson/true_class_spec.rb +1 -1
  82. data/spec/bson/undefined_spec.rb +1 -1
  83. data/spec/bson_spec.rb +1 -1
  84. data/spec/runners/common_driver.rb +1 -1
  85. data/spec/runners/corpus.rb +13 -10
  86. data/spec/runners/corpus_legacy.rb +1 -1
  87. data/spec/spec_helper.rb +1 -1
  88. data/spec/spec_tests/data/corpus/top.json +0 -4
  89. data/spec/support/shared_examples.rb +1 -1
  90. metadata +92 -115
  91. checksums.yaml.gz.sig +0 -0
  92. data.tar.gz.sig +0 -0
  93. metadata.gz.sig +0 -1
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2016-2019 MongoDB, Inc.
1
+ # Copyright (C) 2016-2020 MongoDB Inc.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2019 MongoDB Inc.
1
+ # Copyright (C) 2009-2020 MongoDB Inc.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -41,10 +41,6 @@
41
41
  "description": "Stated length exceeds byte count, with truncated document",
42
42
  "bson": "1200000002666F6F0004000000626172"
43
43
  },
44
- {
45
- "description": "Stated length less than byte count, with garbage after envelope",
46
- "bson": "1200000002666F6F00040000006261720000DEADBEEF"
47
- },
48
44
  {
49
45
  "description": "Stated length exceeds byte count, with valid envelope",
50
46
  "bson": "1300000002666F6F00040000006261720000"
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2019 MongoDB Inc.
1
+ # Copyright (C) 2009-2020 MongoDB Inc.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.2
4
+ version: 4.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Brock
@@ -11,33 +11,11 @@ authors:
11
11
  - Gary Murakami
12
12
  autorequire:
13
13
  bindir: bin
14
- cert_chain:
15
- - |
16
- -----BEGIN CERTIFICATE-----
17
- MIIDRDCCAiygAwIB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
33
- gpvfPNWMwyBDlHaNS3GfO6cRRxBOvEG05GUCsvtTY4Bpe8yjE64wg1ymb47LMOnv
34
- Qb1lGORmf/opg45mluKUYl7pQNZHD0d3
35
- -----END CERTIFICATE-----
36
- date: 2020-03-04 00:00:00.000000000 Z
14
+ cert_chain: []
15
+ date: 2020-06-02 00:00:00.000000000 Z
37
16
  dependencies: []
38
17
  description: A fully featured BSON specification implementation in Ruby
39
- email:
40
- - mongodb-dev@googlegroups.com
18
+ email:
41
19
  executables: []
42
20
  extensions:
43
21
  - ext/bson/extconf.rb
@@ -218,7 +196,6 @@ metadata:
218
196
  changelog_uri: https://github.com/mongodb/bson-ruby/releases
219
197
  documentation_uri: https://docs.mongodb.com/ruby-driver/current/tutorials/bson-v4/
220
198
  homepage_uri: https://docs.mongodb.com/ruby-driver/current/tutorials/bson-v4/
221
- mailing_list_uri: https://groups.google.com/group/mongodb-user
222
199
  source_code_uri: https://github.com/mongodb/bson-ruby
223
200
  post_install_message:
224
201
  rdoc_options: []
@@ -240,113 +217,113 @@ signing_key:
240
217
  specification_version: 4
241
218
  summary: Ruby implementation of the BSON specification
242
219
  test_files:
220
+ - spec/runners/corpus.rb
221
+ - spec/runners/corpus_legacy.rb
222
+ - spec/runners/common_driver.rb
223
+ - spec/bson/max_key_spec.rb
224
+ - spec/bson/byte_buffer_spec.rb
225
+ - spec/bson/ext_json_parse_spec.rb
226
+ - spec/bson/byte_buffer_read_spec.rb
227
+ - spec/bson/decimal128_spec.rb
243
228
  - spec/bson/date_spec.rb
244
- - spec/bson/config_spec.rb
245
- - spec/bson/int64_spec.rb
246
- - spec/bson/undefined_spec.rb
247
- - spec/bson/code_spec.rb
248
229
  - spec/bson/object_spec.rb
249
- - spec/bson/date_time_spec.rb
250
- - spec/bson/raw_spec.rb
251
- - spec/bson/min_key_spec.rb
252
- - spec/bson/time_with_zone_spec.rb
253
- - spec/bson/time_spec.rb
254
- - spec/bson/hash_spec.rb
255
- - spec/bson/ext_json_parse_spec.rb
256
- - spec/bson/timestamp_spec.rb
230
+ - spec/bson/int64_spec.rb
257
231
  - spec/bson/int32_spec.rb
258
- - spec/bson/byte_buffer_spec.rb
259
- - spec/bson/registry_spec.rb
260
- - spec/bson/symbol_raw_spec.rb
261
- - spec/bson/regexp_spec.rb
262
- - spec/bson/byte_buffer_write_spec.rb
263
- - spec/bson/symbol_spec.rb
232
+ - spec/bson/object_id_spec.rb
233
+ - spec/bson/hash_spec.rb
264
234
  - spec/bson/string_spec.rb
265
235
  - spec/bson/boolean_spec.rb
236
+ - spec/bson/timestamp_spec.rb
266
237
  - spec/bson/open_struct_spec.rb
267
- - spec/bson/decimal128_spec.rb
268
- - spec/bson/json_spec.rb
269
- - spec/bson/array_spec.rb
238
+ - spec/bson/config_spec.rb
239
+ - spec/bson/nil_class_spec.rb
240
+ - spec/bson/regexp_spec.rb
241
+ - spec/bson/time_with_zone_spec.rb
242
+ - spec/bson/code_spec.rb
270
243
  - spec/bson/false_class_spec.rb
271
- - spec/bson/true_class_spec.rb
244
+ - spec/bson/raw_spec.rb
272
245
  - spec/bson/binary_spec.rb
273
- - spec/bson/binary_uuid_spec.rb
274
- - spec/bson/object_id_spec.rb
246
+ - spec/bson/array_spec.rb
275
247
  - spec/bson/code_with_scope_spec.rb
276
- - spec/bson/nil_class_spec.rb
248
+ - spec/bson/symbol_spec.rb
249
+ - spec/bson/float_spec.rb
250
+ - spec/bson/symbol_raw_spec.rb
251
+ - spec/bson/true_class_spec.rb
277
252
  - spec/bson/integer_spec.rb
253
+ - spec/bson/binary_uuid_spec.rb
254
+ - spec/bson/time_spec.rb
255
+ - spec/bson/json_spec.rb
256
+ - spec/bson/date_time_spec.rb
278
257
  - spec/bson/document_spec.rb
279
- - spec/bson/max_key_spec.rb
280
- - spec/bson/byte_buffer_read_spec.rb
281
- - spec/bson/float_spec.rb
282
- - spec/support/utils.rb
258
+ - spec/bson/byte_buffer_write_spec.rb
259
+ - spec/bson/min_key_spec.rb
260
+ - spec/bson/undefined_spec.rb
261
+ - spec/bson/registry_spec.rb
283
262
  - spec/support/shared_examples.rb
284
263
  - spec/support/spec_config.rb
285
- - spec/spec_helper.rb
286
- - spec/spec_tests/data/decimal128/decimal128-4.json
287
- - spec/spec_tests/data/decimal128/decimal128-2.json
288
- - spec/spec_tests/data/decimal128/decimal128-5.json
289
- - spec/spec_tests/data/decimal128/decimal128-3.json
290
- - spec/spec_tests/data/decimal128/decimal128-6.json
291
- - spec/spec_tests/data/decimal128/decimal128-1.json
292
- - spec/spec_tests/data/decimal128/decimal128-7.json
293
- - spec/spec_tests/data/corpus/multi-type.json
294
- - spec/spec_tests/data/corpus/string.json
295
- - spec/spec_tests/data/corpus/decimal128-4.json
296
- - spec/spec_tests/data/corpus/README.md
297
- - spec/spec_tests/data/corpus/binary.json
298
- - spec/spec_tests/data/corpus/decimal128-2.json
299
- - spec/spec_tests/data/corpus/dbpointer.json
300
- - spec/spec_tests/data/corpus/dbref.json
301
- - spec/spec_tests/data/corpus/null.json
302
- - spec/spec_tests/data/corpus/int32.json
303
- - spec/spec_tests/data/corpus/maxkey.json
304
- - spec/spec_tests/data/corpus/timestamp.json
305
- - spec/spec_tests/data/corpus/multi-type-deprecated.json
306
- - spec/spec_tests/data/corpus/code.json
307
- - spec/spec_tests/data/corpus/document.json
308
- - spec/spec_tests/data/corpus/double.json
309
- - spec/spec_tests/data/corpus/decimal128-5.json
310
- - spec/spec_tests/data/corpus/regex.json
311
- - spec/spec_tests/data/corpus/symbol.json
312
- - spec/spec_tests/data/corpus/decimal128-3.json
313
- - spec/spec_tests/data/corpus/decimal128-6.json
314
- - spec/spec_tests/data/corpus/oid.json
315
- - spec/spec_tests/data/corpus/top.json
316
- - spec/spec_tests/data/corpus/decimal128-1.json
317
- - spec/spec_tests/data/corpus/boolean.json
318
- - spec/spec_tests/data/corpus/decimal128-7.json
319
- - spec/spec_tests/data/corpus/array.json
320
- - spec/spec_tests/data/corpus/code_w_scope.json
321
- - spec/spec_tests/data/corpus/undefined.json
322
- - spec/spec_tests/data/corpus/minkey.json
323
- - spec/spec_tests/data/corpus/datetime.json
324
- - spec/spec_tests/data/corpus/int64.json
325
- - spec/spec_tests/data/corpus_legacy/string.json
326
- - spec/spec_tests/data/corpus_legacy/binary.json
327
- - spec/spec_tests/data/corpus_legacy/null.json
328
- - spec/spec_tests/data/corpus_legacy/int32.json
329
- - spec/spec_tests/data/corpus_legacy/maxkey.json
330
- - spec/spec_tests/data/corpus_legacy/timestamp.json
331
- - spec/spec_tests/data/corpus_legacy/failures/dbpointer.json
264
+ - spec/support/utils.rb
265
+ - spec/spec_tests/data/corpus_legacy/code.json
266
+ - spec/spec_tests/data/corpus_legacy/code_w_scope.json
332
267
  - spec/spec_tests/data/corpus_legacy/failures/symbol.json
333
268
  - spec/spec_tests/data/corpus_legacy/failures/datetime.json
334
269
  - spec/spec_tests/data/corpus_legacy/failures/int64.json
335
- - spec/spec_tests/data/corpus_legacy/code.json
336
- - spec/spec_tests/data/corpus_legacy/document.json
337
- - spec/spec_tests/data/corpus_legacy/double.json
338
- - spec/spec_tests/data/corpus_legacy/regex.json
339
- - spec/spec_tests/data/corpus_legacy/oid.json
340
- - spec/spec_tests/data/corpus_legacy/top.json
270
+ - spec/spec_tests/data/corpus_legacy/failures/dbpointer.json
271
+ - spec/spec_tests/data/corpus_legacy/null.json
341
272
  - spec/spec_tests/data/corpus_legacy/boolean.json
273
+ - spec/spec_tests/data/corpus_legacy/oid.json
274
+ - spec/spec_tests/data/corpus_legacy/regex.json
342
275
  - spec/spec_tests/data/corpus_legacy/array.json
343
- - spec/spec_tests/data/corpus_legacy/code_w_scope.json
276
+ - spec/spec_tests/data/corpus_legacy/document.json
344
277
  - spec/spec_tests/data/corpus_legacy/undefined.json
278
+ - spec/spec_tests/data/corpus_legacy/binary.json
345
279
  - spec/spec_tests/data/corpus_legacy/minkey.json
346
- - spec/spec_tests/common_driver_spec.rb
347
- - spec/spec_tests/corpus_spec.rb
280
+ - spec/spec_tests/data/corpus_legacy/maxkey.json
281
+ - spec/spec_tests/data/corpus_legacy/int32.json
282
+ - spec/spec_tests/data/corpus_legacy/timestamp.json
283
+ - spec/spec_tests/data/corpus_legacy/top.json
284
+ - spec/spec_tests/data/corpus_legacy/string.json
285
+ - spec/spec_tests/data/corpus_legacy/double.json
286
+ - spec/spec_tests/data/corpus/code.json
287
+ - spec/spec_tests/data/corpus/code_w_scope.json
288
+ - spec/spec_tests/data/corpus/decimal128-1.json
289
+ - spec/spec_tests/data/corpus/null.json
290
+ - spec/spec_tests/data/corpus/multi-type.json
291
+ - spec/spec_tests/data/corpus/boolean.json
292
+ - spec/spec_tests/data/corpus/symbol.json
293
+ - spec/spec_tests/data/corpus/datetime.json
294
+ - spec/spec_tests/data/corpus/oid.json
295
+ - spec/spec_tests/data/corpus/regex.json
296
+ - spec/spec_tests/data/corpus/int64.json
297
+ - spec/spec_tests/data/corpus/decimal128-7.json
298
+ - spec/spec_tests/data/corpus/array.json
299
+ - spec/spec_tests/data/corpus/decimal128-3.json
300
+ - spec/spec_tests/data/corpus/decimal128-5.json
301
+ - spec/spec_tests/data/corpus/document.json
302
+ - spec/spec_tests/data/corpus/multi-type-deprecated.json
303
+ - spec/spec_tests/data/corpus/README.md
304
+ - spec/spec_tests/data/corpus/dbpointer.json
305
+ - spec/spec_tests/data/corpus/decimal128-4.json
306
+ - spec/spec_tests/data/corpus/undefined.json
307
+ - spec/spec_tests/data/corpus/decimal128-6.json
308
+ - spec/spec_tests/data/corpus/dbref.json
309
+ - spec/spec_tests/data/corpus/binary.json
310
+ - spec/spec_tests/data/corpus/minkey.json
311
+ - spec/spec_tests/data/corpus/decimal128-2.json
312
+ - spec/spec_tests/data/corpus/maxkey.json
313
+ - spec/spec_tests/data/corpus/int32.json
314
+ - spec/spec_tests/data/corpus/timestamp.json
315
+ - spec/spec_tests/data/corpus/top.json
316
+ - spec/spec_tests/data/corpus/string.json
317
+ - spec/spec_tests/data/corpus/double.json
318
+ - spec/spec_tests/data/decimal128/decimal128-1.json
319
+ - spec/spec_tests/data/decimal128/decimal128-7.json
320
+ - spec/spec_tests/data/decimal128/decimal128-3.json
321
+ - spec/spec_tests/data/decimal128/decimal128-5.json
322
+ - spec/spec_tests/data/decimal128/decimal128-4.json
323
+ - spec/spec_tests/data/decimal128/decimal128-6.json
324
+ - spec/spec_tests/data/decimal128/decimal128-2.json
348
325
  - spec/spec_tests/corpus_legacy_spec.rb
326
+ - spec/spec_tests/corpus_spec.rb
327
+ - spec/spec_tests/common_driver_spec.rb
349
328
  - spec/bson_spec.rb
350
- - spec/runners/corpus.rb
351
- - spec/runners/common_driver.rb
352
- - spec/runners/corpus_legacy.rb
329
+ - spec/spec_helper.rb
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1 +0,0 @@
1
- R���J�gj�=I�a���`)��'l<�䑐�.�����\�{����/TS��vt���}�a���M}㐮��)�Ҽ� �� �þ%<��|�\