bson 4.3.0-java → 4.4.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Rakefile +16 -9
  5. data/lib/bson-ruby.jar +0 -0
  6. data/lib/bson.rb +1 -1
  7. data/lib/bson/active_support.rb +17 -0
  8. data/lib/bson/array.rb +1 -1
  9. data/lib/bson/binary.rb +1 -1
  10. data/lib/bson/boolean.rb +1 -1
  11. data/lib/bson/code.rb +1 -1
  12. data/lib/bson/code_with_scope.rb +1 -1
  13. data/lib/bson/config.rb +1 -1
  14. data/lib/bson/date.rb +1 -1
  15. data/lib/bson/date_time.rb +1 -1
  16. data/lib/bson/decimal128.rb +1 -1
  17. data/lib/bson/decimal128/builder.rb +1 -1
  18. data/lib/bson/document.rb +42 -4
  19. data/lib/bson/environment.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 +1 -1
  23. data/lib/bson/int32.rb +17 -4
  24. data/lib/bson/int64.rb +17 -4
  25. data/lib/bson/integer.rb +2 -2
  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 +6 -3
  38. data/lib/bson/time.rb +1 -1
  39. data/lib/bson/time_with_zone.rb +54 -0
  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/boolean_spec.rb +1 -1
  47. data/spec/bson/byte_buffer_spec.rb +40 -0
  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 +60 -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 +139 -3
  58. data/spec/bson/int64_spec.rb +139 -3
  59. data/spec/bson/integer_spec.rb +3 -3
  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 +3 -3
  71. data/spec/bson/time_spec.rb +1 -1
  72. data/spec/bson/time_with_zone_spec.rb +68 -0
  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/spec_helper.rb +15 -1
  78. data/spec/support/shared_examples.rb +1 -1
  79. data/spec/support/spec_config.rb +9 -0
  80. metadata +69 -64
  81. metadata.gz.sig +0 -0
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -138,10 +138,146 @@ describe BSON::Int64 do
138
138
  describe "#to_bson_key" do
139
139
 
140
140
  let(:obj) { BSON::Int64.new(Integer::MAX_64BIT - 1) }
141
- let(:encoded) { (Integer::MAX_64BIT - 1).to_s }
141
+ let(:encoded) { (Integer::MAX_64BIT - 1) }
142
142
 
143
- it "returns the key as a string" do
143
+ it "returns the key as an integer" do
144
144
  expect(obj.to_bson_key).to eq(encoded)
145
145
  end
146
146
  end
147
+
148
+ describe "#==" do
149
+
150
+ let(:object) do
151
+ described_class.new(1)
152
+ end
153
+
154
+ context "when data is identical" do
155
+
156
+ let(:other_object) do
157
+ described_class.new(1)
158
+ end
159
+
160
+ it "returns true" do
161
+ expect(object).to eq(other_object)
162
+ end
163
+
164
+ context "other object is of another integer type" do
165
+
166
+ let(:other_object) do
167
+ BSON::Int32.new(1)
168
+ end
169
+
170
+ it "returns false" do
171
+ expect(object).not_to eq(other_object)
172
+ end
173
+ end
174
+ end
175
+
176
+ context "when the data is different" do
177
+
178
+ let(:other_object) do
179
+ described_class.new(2)
180
+ end
181
+
182
+ it "returns false" do
183
+ expect(object).not_to eq(other_object)
184
+ end
185
+ end
186
+
187
+ context "when other is not a BSON integer" do
188
+
189
+ it "returns false" do
190
+ expect(described_class.new(1)).to_not eq('1')
191
+ end
192
+ end
193
+ end
194
+
195
+ describe "#===" do
196
+
197
+ let(:object) do
198
+ described_class.new(1)
199
+ end
200
+
201
+ context "when comparing with another BSON int64" do
202
+
203
+ context "when the data is equal" do
204
+
205
+ let(:other_object) do
206
+ described_class.new(1)
207
+ end
208
+
209
+ it "returns true" do
210
+ expect(object === other_object).to be true
211
+ end
212
+
213
+ context "other object is of another integer type" do
214
+
215
+ let(:other_object) do
216
+ BSON::Int32.new(1)
217
+ end
218
+
219
+ it "returns false" do
220
+ expect(object === other_object).to be false
221
+ end
222
+ end
223
+ end
224
+
225
+ context "when the data is not equal" do
226
+
227
+ let(:other_object) do
228
+ described_class.new(2)
229
+ end
230
+
231
+ it "returns false" do
232
+ expect(object === other_object).to be false
233
+ end
234
+ end
235
+ end
236
+
237
+ context "when comparing to an object id class" do
238
+
239
+ it "returns false" do
240
+ expect(described_class.new(1) === described_class).to be false
241
+ end
242
+ end
243
+
244
+ context "when comparing with a string" do
245
+
246
+ context "when the data is equal" do
247
+
248
+ let(:other) do
249
+ '1'
250
+ end
251
+
252
+ it "returns false" do
253
+ expect(object === other).to be false
254
+ end
255
+ end
256
+
257
+ context "when the data is not equal" do
258
+
259
+ let(:other) do
260
+ '2'
261
+ end
262
+
263
+ it "returns false" do
264
+ expect(object === other).to be false
265
+ end
266
+ end
267
+ end
268
+
269
+ context "when comparing with a non-bson integer object" do
270
+
271
+ it "returns false" do
272
+ expect(object === []).to be false
273
+ end
274
+ end
275
+
276
+ context "when comparing with a non int64 class" do
277
+
278
+ it "returns false" do
279
+ expect(object === String).to be false
280
+ end
281
+ end
282
+ end
147
283
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -62,9 +62,9 @@ describe Integer do
62
62
  describe "#to_bson_key" do
63
63
 
64
64
  let(:obj) { Integer::MAX_32BIT - 1 }
65
- let(:encoded) { obj.to_s }
65
+ let(:encoded) { obj }
66
66
 
67
- it "returns the key as a string" do
67
+ it "returns the key as an integer" do
68
68
  expect(obj.to_bson_key).to eq(encoded)
69
69
  end
70
70
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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 MongoDB Inc.
1
+ # Copyright (C) 2016-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
3
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -37,7 +37,7 @@ describe Symbol do
37
37
  describe "#to_bson_key" do
38
38
 
39
39
  let(:symbol) { :test }
40
- let(:encoded) { symbol.to_s }
40
+ let(:encoded) { symbol }
41
41
 
42
42
  it "returns the encoded string" do
43
43
  expect(symbol.to_bson_key).to eq(encoded)
@@ -66,7 +66,7 @@ describe Symbol do
66
66
  end
67
67
 
68
68
  it "allows invalid keys" do
69
- expect(symbol.to_bson_key).to eq(symbol.to_s)
69
+ expect(symbol.to_bson_key).to eq(symbol)
70
70
  end
71
71
  end
72
72
  end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -0,0 +1,68 @@
1
+ # Copyright (C) 2018-2019 MongoDB Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "spec_helper"
16
+
17
+ context 'when ActiveSupport support is enabled' do
18
+ before do
19
+ unless SpecConfig.instance.active_support?
20
+ skip "ActiveSupport support is not enabled"
21
+ end
22
+ end
23
+
24
+ describe 'ActiveSupport::TimeWithZone' do
25
+ let(:cls) { ActiveSupport::TimeWithZone }
26
+
27
+ it "shares BSON type with Time" do
28
+ # ActiveSupport::TimeWithZone#new has no 0-argument version
29
+ obj = Time.now.in_time_zone("UTC")
30
+ expect(obj.bson_type).to eq(Time::BSON_TYPE)
31
+ end
32
+
33
+ shared_examples_for 'deserializes as expected' do
34
+ it 'deserializes to UTC' do
35
+ # Time zone information is lost during serialization - the time
36
+ # is always serialized in UTC.
37
+ rt_obj = Time.from_bson(obj.to_bson)
38
+ expect(rt_obj.zone).to eq('UTC')
39
+ end
40
+
41
+ it 'deserializes to an equal object' do
42
+ rt_obj = Time.from_bson(obj.to_bson)
43
+ expect(rt_obj).to eq(obj)
44
+ end
45
+ end
46
+
47
+ describe "#to_bson" do
48
+
49
+ context "when the TimeWithZone is not in UTC" do
50
+
51
+ let(:obj) { Time.utc(2012, 12, 12, 0, 0, 0).in_time_zone("Pacific Time (US & Canada)") }
52
+ let(:bson) { [ (obj.utc.to_f * 1000).to_i ].pack(BSON::Int64::PACK) }
53
+
54
+ it_behaves_like "a serializable bson element"
55
+ it_behaves_like 'deserializes as expected'
56
+ end
57
+
58
+ context "when the TimeWithZone is in UTC" do
59
+
60
+ let(:obj) { Time.utc(2012, 1, 1, 0, 0, 0).in_time_zone("UTC") }
61
+ let(:bson) { [ (obj.utc.to_f * 1000).to_i ].pack(BSON::Int64::PACK) }
62
+
63
+ it_behaves_like "a serializable bson element"
64
+ it_behaves_like 'deserializes as expected'
65
+ end
66
+ end
67
+ end
68
+ end
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -25,6 +25,20 @@ require "json"
25
25
  require "rspec"
26
26
  require "yaml"
27
27
 
28
+ require 'support/spec_config'
29
+
30
+ if SpecConfig.instance.active_support?
31
+ require "active_support/time"
32
+ require 'bson/active_support'
33
+ end
34
+
35
+ unless ENV['CI'] || BSON::Environment.jruby?
36
+ begin
37
+ require 'byebug'
38
+ rescue Exception
39
+ end
40
+ end
41
+
28
42
  Dir["./spec/support/**/*.rb"].each { |file| require file }
29
43
 
30
44
  # Alternate IO class that returns a String from #readbyte.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2009-2014 MongoDB Inc.
1
+ # Copyright (C) 2009-2019 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.
@@ -0,0 +1,9 @@
1
+ require 'singleton'
2
+
3
+ class SpecConfig
4
+ include Singleton
5
+
6
+ def active_support?
7
+ %w(1 true yes).include?(ENV['WITH_ACTIVE_SUPPORT'])
8
+ end
9
+ end
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.3.0
4
+ version: 4.4.1
5
5
  platform: java
6
6
  authors:
7
7
  - Tyler Brock
@@ -14,27 +14,26 @@ bindir: bin
14
14
  cert_chain:
15
15
  - |
16
16
  -----BEGIN CERTIFICATE-----
17
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- JxmcPYs5fDN6BgYc6XXgUjy3m+Kwha2pGctdciUOwEfOZ4RmNRlEZKCMLRHdFP8j
25
- 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
- 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
- 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
- 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
- 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
- KoZIhvcNAQEFBQADggEBABQRiVDNfa+gKXHHgnJdafFGk6c3jzAGqc6YHq6ZIhol
31
- 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
- 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
- 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
- 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
- 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
34
+ Db6Ac6mCUSYfYHBWpWqxjc45n70i5Xi1
36
35
  -----END CERTIFICATE-----
37
- date: 2018-01-17 00:00:00.000000000 Z
36
+ date: 2019-01-17 00:00:00.000000000 Z
38
37
  dependencies: []
39
38
  description: A full featured BSON specification implementation, in Ruby
40
39
  email:
@@ -51,6 +50,7 @@ files:
51
50
  - Rakefile
52
51
  - lib/bson-ruby.jar
53
52
  - lib/bson.rb
53
+ - lib/bson/active_support.rb
54
54
  - lib/bson/array.rb
55
55
  - lib/bson/binary.rb
56
56
  - lib/bson/boolean.rb
@@ -82,6 +82,7 @@ files:
82
82
  - lib/bson/string.rb
83
83
  - lib/bson/symbol.rb
84
84
  - lib/bson/time.rb
85
+ - lib/bson/time_with_zone.rb
85
86
  - lib/bson/timestamp.rb
86
87
  - lib/bson/true_class.rb
87
88
  - lib/bson/undefined.rb
@@ -118,6 +119,7 @@ files:
118
119
  - spec/bson/string_spec.rb
119
120
  - spec/bson/symbol_spec.rb
120
121
  - spec/bson/time_spec.rb
122
+ - spec/bson/time_with_zone_spec.rb
121
123
  - spec/bson/timestamp_spec.rb
122
124
  - spec/bson/true_class_spec.rb
123
125
  - spec/bson/undefined_spec.rb
@@ -154,6 +156,7 @@ files:
154
156
  - spec/support/driver-spec-tests/decimal128/decimal128-6.json
155
157
  - spec/support/driver-spec-tests/decimal128/decimal128-7.json
156
158
  - spec/support/shared_examples.rb
159
+ - spec/support/spec_config.rb
157
160
  homepage: http://bsonspec.org
158
161
  licenses:
159
162
  - Apache License Version 2.0
@@ -174,76 +177,78 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
177
  version: 1.3.6
175
178
  requirements: []
176
179
  rubyforge_project: bson
177
- rubygems_version: 2.6.8
180
+ rubygems_version: 2.7.6
178
181
  signing_key:
179
182
  specification_version: 4
180
183
  summary: Ruby Implementation of the BSON specification
181
184
  test_files:
182
185
  - spec/spec_helper.rb
183
186
  - spec/bson_spec.rb
184
- - spec/bson/regexp_spec.rb
185
- - spec/bson/min_key_spec.rb
186
- - spec/bson/time_spec.rb
187
- - spec/bson/int32_spec.rb
188
- - spec/bson/code_spec.rb
187
+ - spec/bson/date_spec.rb
189
188
  - spec/bson/config_spec.rb
189
+ - spec/bson/int64_spec.rb
190
190
  - spec/bson/undefined_spec.rb
191
191
  - spec/bson/corpus_spec.rb
192
- - spec/bson/boolean_spec.rb
192
+ - spec/bson/code_spec.rb
193
+ - spec/bson/driver_bson_spec.rb
193
194
  - spec/bson/object_spec.rb
194
- - spec/bson/array_spec.rb
195
- - spec/bson/hash_spec.rb
196
- - spec/bson/date_spec.rb
197
- - spec/bson/json_spec.rb
198
- - spec/bson/int64_spec.rb
199
- - spec/bson/registry_spec.rb
200
- - spec/bson/raw_spec.rb
201
- - spec/bson/binary_spec.rb
202
- - spec/bson/max_key_spec.rb
203
- - spec/bson/code_with_scope_spec.rb
204
195
  - spec/bson/date_time_spec.rb
205
- - spec/bson/driver_bson_spec.rb
206
- - spec/bson/false_class_spec.rb
196
+ - spec/bson/raw_spec.rb
197
+ - spec/bson/min_key_spec.rb
198
+ - spec/bson/time_with_zone_spec.rb
199
+ - spec/bson/time_spec.rb
200
+ - spec/bson/hash_spec.rb
201
+ - spec/bson/timestamp_spec.rb
202
+ - spec/bson/int32_spec.rb
207
203
  - spec/bson/byte_buffer_spec.rb
204
+ - spec/bson/registry_spec.rb
205
+ - spec/bson/regexp_spec.rb
206
+ - spec/bson/symbol_spec.rb
208
207
  - spec/bson/string_spec.rb
208
+ - spec/bson/boolean_spec.rb
209
209
  - spec/bson/open_struct_spec.rb
210
- - spec/bson/timestamp_spec.rb
211
- - spec/bson/symbol_spec.rb
212
210
  - spec/bson/decimal128_spec.rb
211
+ - spec/bson/json_spec.rb
212
+ - spec/bson/array_spec.rb
213
+ - spec/bson/false_class_spec.rb
214
+ - spec/bson/true_class_spec.rb
215
+ - spec/bson/binary_spec.rb
216
+ - spec/bson/object_id_spec.rb
217
+ - spec/bson/code_with_scope_spec.rb
218
+ - spec/bson/nil_class_spec.rb
213
219
  - spec/bson/integer_spec.rb
214
220
  - spec/bson/document_spec.rb
221
+ - spec/bson/max_key_spec.rb
215
222
  - spec/bson/float_spec.rb
216
- - spec/bson/nil_class_spec.rb
217
- - spec/bson/true_class_spec.rb
218
- - spec/bson/object_id_spec.rb
219
223
  - spec/support/corpus.rb
220
224
  - spec/support/shared_examples.rb
225
+ - spec/support/spec_config.rb
221
226
  - spec/support/common_driver.rb
222
- - spec/support/corpus-tests/maxkey.json
223
- - spec/support/corpus-tests/boolean.json
224
- - spec/support/corpus-tests/oid.json
225
- - spec/support/corpus-tests/code.json
226
- - spec/support/corpus-tests/array.json
227
- - spec/support/corpus-tests/double.json
228
- - spec/support/corpus-tests/code_w_scope.json
229
227
  - spec/support/corpus-tests/string.json
230
- - spec/support/corpus-tests/document.json
231
- - spec/support/corpus-tests/top.json
232
228
  - spec/support/corpus-tests/null.json
233
229
  - spec/support/corpus-tests/int32.json
230
+ - spec/support/corpus-tests/maxkey.json
234
231
  - spec/support/corpus-tests/timestamp.json
235
- - spec/support/corpus-tests/minkey.json
232
+ - spec/support/corpus-tests/code.json
233
+ - spec/support/corpus-tests/document.json
234
+ - spec/support/corpus-tests/double.json
236
235
  - spec/support/corpus-tests/regex.json
237
- - spec/support/corpus-tests/failures/datetime.json
238
- - spec/support/corpus-tests/failures/symbol.json
239
- - spec/support/corpus-tests/failures/int64.json
236
+ - spec/support/corpus-tests/oid.json
237
+ - spec/support/corpus-tests/top.json
238
+ - spec/support/corpus-tests/boolean.json
239
+ - spec/support/corpus-tests/array.json
240
+ - spec/support/corpus-tests/code_w_scope.json
241
+ - spec/support/corpus-tests/minkey.json
242
+ - spec/support/corpus-tests/failures/binary.json
240
243
  - spec/support/corpus-tests/failures/dbpointer.json
244
+ - spec/support/corpus-tests/failures/symbol.json
241
245
  - spec/support/corpus-tests/failures/undefined.json
242
- - spec/support/corpus-tests/failures/binary.json
243
- - spec/support/driver-spec-tests/decimal128/decimal128-1.json
244
- - spec/support/driver-spec-tests/decimal128/decimal128-7.json
245
- - spec/support/driver-spec-tests/decimal128/decimal128-6.json
246
- - spec/support/driver-spec-tests/decimal128/decimal128-5.json
246
+ - spec/support/corpus-tests/failures/datetime.json
247
+ - spec/support/corpus-tests/failures/int64.json
247
248
  - spec/support/driver-spec-tests/decimal128/decimal128-4.json
248
- - spec/support/driver-spec-tests/decimal128/decimal128-3.json
249
249
  - spec/support/driver-spec-tests/decimal128/decimal128-2.json
250
+ - spec/support/driver-spec-tests/decimal128/decimal128-5.json
251
+ - spec/support/driver-spec-tests/decimal128/decimal128-3.json
252
+ - spec/support/driver-spec-tests/decimal128/decimal128-6.json
253
+ - spec/support/driver-spec-tests/decimal128/decimal128-1.json
254
+ - spec/support/driver-spec-tests/decimal128/decimal128-7.json