bson 4.8.2-java → 4.9.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/bson-ruby.jar +0 -0
  4. data/lib/bson.rb +1 -1
  5. data/lib/bson/active_support.rb +1 -1
  6. data/lib/bson/array.rb +7 -2
  7. data/lib/bson/binary.rb +1 -1
  8. data/lib/bson/boolean.rb +9 -2
  9. data/lib/bson/code.rb +1 -1
  10. data/lib/bson/code_with_scope.rb +9 -2
  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/decimal128.rb +1 -1
  15. data/lib/bson/decimal128/builder.rb +1 -1
  16. data/lib/bson/document.rb +1 -1
  17. data/lib/bson/environment.rb +2 -1
  18. data/lib/bson/error.rb +4 -0
  19. data/lib/bson/ext_json.rb +1 -1
  20. data/lib/bson/false_class.rb +1 -1
  21. data/lib/bson/float.rb +1 -1
  22. data/lib/bson/hash.rb +7 -2
  23. data/lib/bson/int32.rb +1 -1
  24. data/lib/bson/int64.rb +1 -1
  25. data/lib/bson/integer.rb +1 -1
  26. data/lib/bson/json.rb +1 -1
  27. data/lib/bson/max_key.rb +1 -1
  28. data/lib/bson/min_key.rb +1 -1
  29. data/lib/bson/nil_class.rb +1 -1
  30. data/lib/bson/object.rb +1 -1
  31. data/lib/bson/object_id.rb +1 -1
  32. data/lib/bson/open_struct.rb +1 -1
  33. data/lib/bson/regexp.rb +1 -1
  34. data/lib/bson/registry.rb +1 -1
  35. data/lib/bson/specialized.rb +1 -1
  36. data/lib/bson/string.rb +1 -1
  37. data/lib/bson/symbol.rb +1 -1
  38. data/lib/bson/time.rb +1 -1
  39. data/lib/bson/time_with_zone.rb +1 -1
  40. data/lib/bson/timestamp.rb +1 -1
  41. data/lib/bson/true_class.rb +1 -1
  42. data/lib/bson/undefined.rb +1 -1
  43. data/lib/bson/version.rb +2 -2
  44. data/spec/bson/array_spec.rb +1 -1
  45. data/spec/bson/binary_spec.rb +1 -1
  46. data/spec/bson/binary_uuid_spec.rb +1 -1
  47. data/spec/bson/boolean_spec.rb +1 -1
  48. data/spec/bson/code_spec.rb +1 -1
  49. data/spec/bson/code_with_scope_spec.rb +1 -1
  50. data/spec/bson/date_spec.rb +1 -1
  51. data/spec/bson/date_time_spec.rb +1 -1
  52. data/spec/bson/decimal128_spec.rb +1 -1
  53. data/spec/bson/document_spec.rb +1 -1
  54. data/spec/bson/false_class_spec.rb +1 -1
  55. data/spec/bson/float_spec.rb +1 -1
  56. data/spec/bson/hash_spec.rb +1 -1
  57. data/spec/bson/int32_spec.rb +1 -1
  58. data/spec/bson/int64_spec.rb +1 -1
  59. data/spec/bson/integer_spec.rb +1 -1
  60. data/spec/bson/json_spec.rb +1 -1
  61. data/spec/bson/max_key_spec.rb +1 -1
  62. data/spec/bson/min_key_spec.rb +1 -1
  63. data/spec/bson/nil_class_spec.rb +1 -1
  64. data/spec/bson/object_id_spec.rb +1 -1
  65. data/spec/bson/object_spec.rb +1 -1
  66. data/spec/bson/open_struct_spec.rb +1 -1
  67. data/spec/bson/regexp_spec.rb +1 -1
  68. data/spec/bson/registry_spec.rb +1 -1
  69. data/spec/bson/string_spec.rb +1 -1
  70. data/spec/bson/symbol_spec.rb +1 -1
  71. data/spec/bson/time_spec.rb +1 -1
  72. data/spec/bson/time_with_zone_spec.rb +1 -1
  73. data/spec/bson/timestamp_spec.rb +1 -1
  74. data/spec/bson/true_class_spec.rb +1 -1
  75. data/spec/bson/undefined_spec.rb +1 -1
  76. data/spec/bson_spec.rb +1 -1
  77. data/spec/runners/common_driver.rb +1 -1
  78. data/spec/runners/corpus.rb +13 -10
  79. data/spec/runners/corpus_legacy.rb +1 -1
  80. data/spec/spec_helper.rb +1 -1
  81. data/spec/spec_tests/data/corpus/top.json +0 -4
  82. data/spec/support/shared_examples.rb +1 -1
  83. metadata +91 -115
  84. checksums.yaml.gz.sig +0 -0
  85. data.tar.gz.sig +0 -0
  86. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2b2ab7485ae7c9a2e45f6abc69e24e60901937f1a55da3fab3fbec017a71ee7
4
- data.tar.gz: 6531f5f6b2d8e49109fd62e98e2f59beed08b7d9ce022b65ce3800d26d000db8
3
+ metadata.gz: d813794a16c63fb3d88a4a2f3e2e4646bfa085a829c6c5417bc32bdbcf9bc536
4
+ data.tar.gz: 4f5364cb322e23752870e64651fc2131346728c01e050472fef9af2d4b7e21bb
5
5
  SHA512:
6
- metadata.gz: 725ecd612c211548cba77581ae4116a875dd398164a996f3b39f7162fdf62a1681215ae5d8b2d7e5403b30a999d7490e59e4cabce88acb50bc355951289dd5dd
7
- data.tar.gz: c20a4b544803cdf5d15d7df5b9a541b77221446dbe104a685083dc23ef11f6d02818c83a5edaf9a7ec9df8abdd806f607a8bd601c619243a635c5b59814ea5b8
6
+ metadata.gz: ccbbee2e2dec5fe40a9f4b9a3ee4ac206e9ab224d11e54371260d73cec4bf61a6ce773d9a6f6bd4ea2b8ab91db80ef75678671fe590b2c669d6a089fd3b35ea1
7
+ data.tar.gz: 2eb0ca5dc4a283f67d18949fe0765aeb7e598af1f6911227f7debe44e0f4b3f891e46571cc16405aa16a80a621244db78241a3dcb6f75ba9e0d671ffdf1f0a8a
data/README.md CHANGED
@@ -38,7 +38,7 @@ As of 2.0.0, this project adheres to the
38
38
  License
39
39
  -------
40
40
 
41
- Copyright (C) 2009-2019 MongoDB Inc.
41
+ Copyright (C) 2009-2020 MongoDB Inc.
42
42
 
43
43
  Licensed under the Apache License, Version 2.0 (the "License");
44
44
  you may not use this file except in compliance with the License.
Binary file
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2018-2019 MongoDB Inc.
1
+ # Copyright (C) 2018-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.
@@ -119,7 +119,8 @@ module BSON
119
119
  buffer.get_array(**options)
120
120
  else
121
121
  array = new
122
- buffer.get_int32 # throw away the length
122
+ start_position = buffer.read_position
123
+ expected_byte_size = buffer.get_int32
123
124
  while (type = buffer.get_byte) != NULL_BYTE
124
125
  buffer.get_cstring
125
126
  cls = BSON::Registry.get(type)
@@ -130,6 +131,10 @@ module BSON
130
131
  end
131
132
  array << value
132
133
  end
134
+ actual_byte_size = buffer.read_position - start_position
135
+ if actual_byte_size != expected_byte_size
136
+ raise Error::BSONDecodeError, "Expected array to take #{expected_byte_size} bytes but it took #{actual_byte_size} bytes"
137
+ end
133
138
  array
134
139
  end
135
140
  end
@@ -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.
@@ -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.
@@ -39,7 +39,14 @@ module BSON
39
39
  #
40
40
  # @since 2.0.0
41
41
  def self.from_bson(buffer, **options)
42
- buffer.get_byte == TrueClass::TRUE_BYTE
42
+ case v = buffer.get_byte
43
+ when TrueClass::TRUE_BYTE
44
+ true
45
+ when FalseClass::FALSE_BYTE
46
+ false
47
+ else
48
+ raise Error::BSONDecodeError, "Invalid boolean byte value: #{v}"
49
+ end
43
50
  end
44
51
 
45
52
  # Register this type when the module is loaded.
@@ -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.
@@ -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.
@@ -119,13 +119,20 @@ module BSON
119
119
  #
120
120
  # @since 2.0.0
121
121
  def self.from_bson(buffer, **options)
122
- buffer.get_int32 # Throw away the total length.
122
+ # Code with scope has a length (?) field which is not needed for
123
+ # decoding, but spec tests want this field validated.
124
+ start_position = buffer.read_position
125
+ length = buffer.get_int32
123
126
  javascript = buffer.get_string
124
127
  scope = if options.empty?
125
128
  ::Hash.from_bson(buffer)
126
129
  else
127
130
  ::Hash.from_bson(buffer, **options)
128
131
  end
132
+ read_bytes = buffer.read_position - start_position
133
+ if read_bytes != length
134
+ raise Error::BSONDecodeError, "CodeWithScope invalid: claimed length #{length}, actual length #{read_bytes}"
135
+ end
129
136
  new(javascript, scope)
130
137
  end
131
138
 
@@ -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.
@@ -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.
@@ -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) 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.
@@ -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,6 +41,7 @@ module BSON
41
41
  # @return [ true, false ] If the Ruby version is 1.9.
42
42
  #
43
43
  # @since 4.2.0
44
+ # @deprecated
44
45
  def ruby_1_9?
45
46
  @ruby_1_9 ||= RUBY_VERSION < '2.0.0'
46
47
  end
@@ -13,5 +13,9 @@ module BSON
13
13
  # unsupported binary subtype.
14
14
  class UnsupportedBinarySubtype < Error
15
15
  end
16
+
17
+ # Exception raised when BSON decoding fails.
18
+ class BSONDecodeError < Error
19
+ end
16
20
  end
17
21
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 MongoDB Inc.
1
+ # Copyright (C) 2019-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.
@@ -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.
@@ -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.
@@ -108,7 +108,8 @@ module BSON
108
108
  buffer.get_hash(**options)
109
109
  else
110
110
  hash = Document.allocate
111
- buffer.get_int32 # Throw away the size.
111
+ start_position = buffer.read_position
112
+ expected_byte_size = buffer.get_int32
112
113
  while (type = buffer.get_byte) != NULL_BYTE
113
114
  field = buffer.get_cstring
114
115
  cls = BSON::Registry.get(type, field)
@@ -121,6 +122,10 @@ module BSON
121
122
  end
122
123
  hash.store(field, value)
123
124
  end
125
+ actual_byte_size = buffer.read_position - start_position
126
+ if actual_byte_size != expected_byte_size
127
+ raise Error::BSONDecodeError, "Expected hash to take #{expected_byte_size} bytes but it took #{actual_byte_size} bytes"
128
+ end
124
129
  hash
125
130
  end
126
131
  end
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Copyright (C) 2009-2019 MongoDB Inc.
2
+ # Copyright (C) 2009-2020 MongoDB Inc.
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # 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.
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2018-2019 MongoDB Inc.
1
+ # Copyright (C) 2018-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.
@@ -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.
@@ -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.
@@ -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.
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "4.8.2".freeze
16
+ VERSION = "4.9.0".freeze
17
17
  end
@@ -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.
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 MongoDB Inc.
1
+ # Copyright (C) 2019-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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # Copyright (C) 2009-2019 MongoDB Inc.
3
+ # Copyright (C) 2009-2020 MongoDB Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # 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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- # Copyright (C) 2009-2019 MongoDB Inc.
3
+ # Copyright (C) 2009-2020 MongoDB Inc.
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # 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.
@@ -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.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2018-2019 MongoDB Inc.
1
+ # Copyright (C) 2018-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.
@@ -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.
@@ -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.
@@ -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.
@@ -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) 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.
@@ -91,10 +91,19 @@ module BSON
91
91
  end
92
92
  end
93
93
 
94
+ class TestBase
95
+
96
+ private
97
+
98
+ def decode_hex(obj)
99
+ [ obj ].pack('H*')
100
+ end
101
+ end
102
+
94
103
  # Represents a single BSON Corpus test.
95
104
  #
96
105
  # @since 4.2.0
97
- class ValidTest
106
+ class ValidTest < TestBase
98
107
  extend Forwardable
99
108
 
100
109
  # Instantiate the new Test.
@@ -151,19 +160,13 @@ module BSON
151
160
  def relaxed_extjson_doc
152
161
  relaxed_extjson && ::JSON.parse(relaxed_extjson)
153
162
  end
154
-
155
- private
156
-
157
- def decode_hex(obj)
158
- [ obj ].pack('H*')
159
- end
160
163
  end
161
164
 
162
- class DecodeErrorTest
165
+ class DecodeErrorTest < TestBase
163
166
  def initialize(spec, test_params)
164
167
  @spec = spec
165
168
  @description = test_params['description']
166
- @bson = test_params['bson']
169
+ @bson = decode_hex(test_params['bson'])
167
170
  end
168
171
 
169
172
  attr_reader :description, :bson
@@ -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: java
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
- MIIDRDCCAiygAwIBAgIBATANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDDBtkcml2
18
- ZXItcnVieS9EQz0xMGdlbi9EQz1jb20wHhcNMjAwMTIzMTkzNjAxWhcNMjEwMTIy
19
- MTkzNjAxWjAmMSQwIgYDVQQDDBtkcml2ZXItcnVieS9EQz0xMGdlbi9EQz1jb20w
20
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDRXUgGvH0ZtWwDPc2umdHw
21
- B+INNm6jNTRp8PMyUKxPzxaxX2OiBQk9gLC3zsK9ZmlZu4lNfpHVSCEPoiP/fhPg
22
- Kyfq2xld3Qz0Pki5d5i0/r14343MTKiNiFulLlbbdlN0cXeEFNJHUycZnD2LOXwz
23
- egYGHOl14FI8t5visIWtqRnLXXIlDsBHzmeEZjUZRGSgjC0R3RT/I+Fk5yUhn1w4
24
- rqFyAiW+cjjzmT7mmqT0jV6fd0JFHbKnSgt9iPijKSimBgUOsorHwOTMlTzwsy0d
25
- ZT+al1RiT5zqlAJLxFHwmoYOxD/bSNtKsYl60ek0hK2mISBVy9BBmLvCgHDx5uSp
26
- AgMBAAGjfTB7MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRbd1mx
27
- fvSaVIwKI+tnEAYDW/B81zAgBgNVHREEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5j
28
- b20wIAYDVR0SBBkwF4EVZHJpdmVyLXJ1YnlAMTBnZW4uY29tMA0GCSqGSIb3DQEB
29
- CwUAA4IBAQBfX4dwxG5PhtxES/LDEOaZIZXyaX6CKe367zhW+HxWbSOXMQJFkIQj
30
- m7tzT+sDFJXyiOv5cPtfpUam5pTiryzRw5HD6oxlPIt5vO15EJ69v++3m7shMLbw
31
- amZOajKXmu2ZGZfhOtj7bOTwmOj1AnWLKeOQIR3STvvfZCD+6dt1XenW7CdjCsxE
32
- ifervPjLFqFPsMOgaxikhgPK6bRtszrQhJSYlifKKzxbX1hYAsmGL7IxjubFSV5r
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
18
  email:
40
- - mongodb-dev@googlegroups.com
41
19
  executables: []
42
20
  extensions: []
43
21
  extra_rdoc_files: []
@@ -208,7 +186,6 @@ metadata:
208
186
  changelog_uri: https://github.com/mongodb/bson-ruby/releases
209
187
  documentation_uri: https://docs.mongodb.com/ruby-driver/current/tutorials/bson-v4/
210
188
  homepage_uri: https://docs.mongodb.com/ruby-driver/current/tutorials/bson-v4/
211
- mailing_list_uri: https://groups.google.com/group/mongodb-user
212
189
  source_code_uri: https://github.com/mongodb/bson-ruby
213
190
  post_install_message:
214
191
  rdoc_options: []
@@ -225,119 +202,118 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
202
  - !ruby/object:Gem::Version
226
203
  version: 1.3.6
227
204
  requirements: []
228
- rubyforge_project:
229
- rubygems_version: 2.7.9
205
+ rubygems_version: 3.0.6
230
206
  signing_key:
231
207
  specification_version: 4
232
208
  summary: Ruby implementation of the BSON specification
233
209
  test_files:
234
- - spec/spec_helper.rb
235
210
  - spec/bson_spec.rb
211
+ - spec/spec_helper.rb
212
+ - spec/runners/corpus.rb
213
+ - spec/runners/corpus_legacy.rb
214
+ - spec/runners/common_driver.rb
215
+ - spec/bson/max_key_spec.rb
216
+ - spec/bson/byte_buffer_spec.rb
217
+ - spec/bson/ext_json_parse_spec.rb
218
+ - spec/bson/byte_buffer_read_spec.rb
219
+ - spec/bson/decimal128_spec.rb
236
220
  - spec/bson/date_spec.rb
237
- - spec/bson/config_spec.rb
238
- - spec/bson/int64_spec.rb
239
- - spec/bson/undefined_spec.rb
240
- - spec/bson/code_spec.rb
241
221
  - spec/bson/object_spec.rb
242
- - spec/bson/date_time_spec.rb
243
- - spec/bson/raw_spec.rb
244
- - spec/bson/min_key_spec.rb
245
- - spec/bson/time_with_zone_spec.rb
246
- - spec/bson/time_spec.rb
247
- - spec/bson/hash_spec.rb
248
- - spec/bson/ext_json_parse_spec.rb
249
- - spec/bson/timestamp_spec.rb
222
+ - spec/bson/int64_spec.rb
250
223
  - spec/bson/int32_spec.rb
251
- - spec/bson/byte_buffer_spec.rb
252
- - spec/bson/registry_spec.rb
253
- - spec/bson/symbol_raw_spec.rb
254
- - spec/bson/regexp_spec.rb
255
- - spec/bson/byte_buffer_write_spec.rb
256
- - spec/bson/symbol_spec.rb
224
+ - spec/bson/object_id_spec.rb
225
+ - spec/bson/hash_spec.rb
257
226
  - spec/bson/string_spec.rb
258
227
  - spec/bson/boolean_spec.rb
228
+ - spec/bson/timestamp_spec.rb
259
229
  - spec/bson/open_struct_spec.rb
260
- - spec/bson/decimal128_spec.rb
261
- - spec/bson/json_spec.rb
262
- - spec/bson/array_spec.rb
230
+ - spec/bson/config_spec.rb
231
+ - spec/bson/nil_class_spec.rb
232
+ - spec/bson/regexp_spec.rb
233
+ - spec/bson/time_with_zone_spec.rb
234
+ - spec/bson/code_spec.rb
263
235
  - spec/bson/false_class_spec.rb
264
- - spec/bson/true_class_spec.rb
236
+ - spec/bson/raw_spec.rb
265
237
  - spec/bson/binary_spec.rb
266
- - spec/bson/binary_uuid_spec.rb
267
- - spec/bson/object_id_spec.rb
238
+ - spec/bson/array_spec.rb
268
239
  - spec/bson/code_with_scope_spec.rb
269
- - spec/bson/nil_class_spec.rb
240
+ - spec/bson/symbol_spec.rb
241
+ - spec/bson/float_spec.rb
242
+ - spec/bson/symbol_raw_spec.rb
243
+ - spec/bson/true_class_spec.rb
270
244
  - spec/bson/integer_spec.rb
245
+ - spec/bson/binary_uuid_spec.rb
246
+ - spec/bson/time_spec.rb
247
+ - spec/bson/json_spec.rb
248
+ - spec/bson/date_time_spec.rb
271
249
  - spec/bson/document_spec.rb
272
- - spec/bson/max_key_spec.rb
273
- - spec/bson/byte_buffer_read_spec.rb
274
- - spec/bson/float_spec.rb
275
- - spec/support/utils.rb
250
+ - spec/bson/byte_buffer_write_spec.rb
251
+ - spec/bson/min_key_spec.rb
252
+ - spec/bson/undefined_spec.rb
253
+ - spec/bson/registry_spec.rb
276
254
  - spec/support/shared_examples.rb
277
255
  - spec/support/spec_config.rb
278
- - spec/spec_tests/common_driver_spec.rb
279
- - spec/spec_tests/corpus_spec.rb
256
+ - spec/support/utils.rb
280
257
  - spec/spec_tests/corpus_legacy_spec.rb
281
- - spec/spec_tests/data/decimal128/decimal128-4.json
282
- - spec/spec_tests/data/decimal128/decimal128-2.json
283
- - spec/spec_tests/data/decimal128/decimal128-5.json
284
- - spec/spec_tests/data/decimal128/decimal128-3.json
285
- - spec/spec_tests/data/decimal128/decimal128-6.json
286
- - spec/spec_tests/data/decimal128/decimal128-1.json
287
- - spec/spec_tests/data/decimal128/decimal128-7.json
288
- - spec/spec_tests/data/corpus/multi-type.json
289
- - spec/spec_tests/data/corpus/string.json
290
- - spec/spec_tests/data/corpus/decimal128-4.json
291
- - spec/spec_tests/data/corpus/README.md
292
- - spec/spec_tests/data/corpus/binary.json
293
- - spec/spec_tests/data/corpus/decimal128-2.json
294
- - spec/spec_tests/data/corpus/dbpointer.json
295
- - spec/spec_tests/data/corpus/dbref.json
296
- - spec/spec_tests/data/corpus/null.json
297
- - spec/spec_tests/data/corpus/int32.json
298
- - spec/spec_tests/data/corpus/maxkey.json
299
- - spec/spec_tests/data/corpus/timestamp.json
300
- - spec/spec_tests/data/corpus/multi-type-deprecated.json
301
- - spec/spec_tests/data/corpus/code.json
302
- - spec/spec_tests/data/corpus/document.json
303
- - spec/spec_tests/data/corpus/double.json
304
- - spec/spec_tests/data/corpus/decimal128-5.json
305
- - spec/spec_tests/data/corpus/regex.json
306
- - spec/spec_tests/data/corpus/symbol.json
307
- - spec/spec_tests/data/corpus/decimal128-3.json
308
- - spec/spec_tests/data/corpus/decimal128-6.json
309
- - spec/spec_tests/data/corpus/oid.json
310
- - spec/spec_tests/data/corpus/top.json
311
- - spec/spec_tests/data/corpus/decimal128-1.json
312
- - spec/spec_tests/data/corpus/boolean.json
313
- - spec/spec_tests/data/corpus/decimal128-7.json
314
- - spec/spec_tests/data/corpus/array.json
315
- - spec/spec_tests/data/corpus/code_w_scope.json
316
- - spec/spec_tests/data/corpus/undefined.json
317
- - spec/spec_tests/data/corpus/minkey.json
318
- - spec/spec_tests/data/corpus/datetime.json
319
- - spec/spec_tests/data/corpus/int64.json
320
- - spec/spec_tests/data/corpus_legacy/string.json
321
- - spec/spec_tests/data/corpus_legacy/binary.json
322
- - spec/spec_tests/data/corpus_legacy/null.json
323
- - spec/spec_tests/data/corpus_legacy/int32.json
324
- - spec/spec_tests/data/corpus_legacy/maxkey.json
325
- - spec/spec_tests/data/corpus_legacy/timestamp.json
258
+ - spec/spec_tests/corpus_spec.rb
259
+ - spec/spec_tests/common_driver_spec.rb
326
260
  - spec/spec_tests/data/corpus_legacy/code.json
327
- - spec/spec_tests/data/corpus_legacy/document.json
328
- - spec/spec_tests/data/corpus_legacy/double.json
329
- - spec/spec_tests/data/corpus_legacy/regex.json
330
- - spec/spec_tests/data/corpus_legacy/oid.json
331
- - spec/spec_tests/data/corpus_legacy/top.json
261
+ - spec/spec_tests/data/corpus_legacy/code_w_scope.json
262
+ - spec/spec_tests/data/corpus_legacy/null.json
332
263
  - spec/spec_tests/data/corpus_legacy/boolean.json
264
+ - spec/spec_tests/data/corpus_legacy/oid.json
265
+ - spec/spec_tests/data/corpus_legacy/regex.json
333
266
  - spec/spec_tests/data/corpus_legacy/array.json
334
- - spec/spec_tests/data/corpus_legacy/code_w_scope.json
267
+ - spec/spec_tests/data/corpus_legacy/document.json
335
268
  - spec/spec_tests/data/corpus_legacy/undefined.json
269
+ - spec/spec_tests/data/corpus_legacy/binary.json
336
270
  - spec/spec_tests/data/corpus_legacy/minkey.json
337
- - spec/spec_tests/data/corpus_legacy/failures/dbpointer.json
271
+ - spec/spec_tests/data/corpus_legacy/maxkey.json
272
+ - spec/spec_tests/data/corpus_legacy/int32.json
273
+ - spec/spec_tests/data/corpus_legacy/timestamp.json
274
+ - spec/spec_tests/data/corpus_legacy/top.json
275
+ - spec/spec_tests/data/corpus_legacy/string.json
276
+ - spec/spec_tests/data/corpus_legacy/double.json
338
277
  - spec/spec_tests/data/corpus_legacy/failures/symbol.json
339
278
  - spec/spec_tests/data/corpus_legacy/failures/datetime.json
340
279
  - spec/spec_tests/data/corpus_legacy/failures/int64.json
341
- - spec/runners/corpus.rb
342
- - spec/runners/common_driver.rb
343
- - spec/runners/corpus_legacy.rb
280
+ - spec/spec_tests/data/corpus_legacy/failures/dbpointer.json
281
+ - spec/spec_tests/data/corpus/code.json
282
+ - spec/spec_tests/data/corpus/code_w_scope.json
283
+ - spec/spec_tests/data/corpus/decimal128-1.json
284
+ - spec/spec_tests/data/corpus/null.json
285
+ - spec/spec_tests/data/corpus/multi-type.json
286
+ - spec/spec_tests/data/corpus/boolean.json
287
+ - spec/spec_tests/data/corpus/symbol.json
288
+ - spec/spec_tests/data/corpus/datetime.json
289
+ - spec/spec_tests/data/corpus/oid.json
290
+ - spec/spec_tests/data/corpus/regex.json
291
+ - spec/spec_tests/data/corpus/int64.json
292
+ - spec/spec_tests/data/corpus/decimal128-7.json
293
+ - spec/spec_tests/data/corpus/array.json
294
+ - spec/spec_tests/data/corpus/decimal128-3.json
295
+ - spec/spec_tests/data/corpus/decimal128-5.json
296
+ - spec/spec_tests/data/corpus/document.json
297
+ - spec/spec_tests/data/corpus/multi-type-deprecated.json
298
+ - spec/spec_tests/data/corpus/README.md
299
+ - spec/spec_tests/data/corpus/dbpointer.json
300
+ - spec/spec_tests/data/corpus/decimal128-4.json
301
+ - spec/spec_tests/data/corpus/undefined.json
302
+ - spec/spec_tests/data/corpus/decimal128-6.json
303
+ - spec/spec_tests/data/corpus/dbref.json
304
+ - spec/spec_tests/data/corpus/binary.json
305
+ - spec/spec_tests/data/corpus/minkey.json
306
+ - spec/spec_tests/data/corpus/decimal128-2.json
307
+ - spec/spec_tests/data/corpus/maxkey.json
308
+ - spec/spec_tests/data/corpus/int32.json
309
+ - spec/spec_tests/data/corpus/timestamp.json
310
+ - spec/spec_tests/data/corpus/top.json
311
+ - spec/spec_tests/data/corpus/string.json
312
+ - spec/spec_tests/data/corpus/double.json
313
+ - spec/spec_tests/data/decimal128/decimal128-1.json
314
+ - spec/spec_tests/data/decimal128/decimal128-7.json
315
+ - spec/spec_tests/data/decimal128/decimal128-3.json
316
+ - spec/spec_tests/data/decimal128/decimal128-5.json
317
+ - spec/spec_tests/data/decimal128/decimal128-4.json
318
+ - spec/spec_tests/data/decimal128/decimal128-6.json
319
+ - spec/spec_tests/data/decimal128/decimal128-2.json
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file