bson 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -0
- data/lib/bson/version.rb +1 -1
- data/spec/bson/byte_buffer_spec.rb +34 -13
- metadata +26 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 248b3e8738a02655d62fc2563e2d5e84afc22df0
|
4
|
+
data.tar.gz: 1dee4f08bd2f3b9790c930b8a9828b0498f6c290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20db768d462ede1beaedd1acbf70b67c42848b9ed7a40c60190d245881002cb0cb41d1e3a02e25c59f8adac1986cc772d92088fc2ff8272a29d3608d77ea20f1
|
7
|
+
data.tar.gz: 495269eca59a05e33af8bcc0907e6d04969eaafea0bb6b5eb68f3323d089df1dac23a31ba9a05da199633dc231624c10466a4e8bf650c662c8e13ddf373fefdd
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
data/lib/bson/version.rb
CHANGED
@@ -445,25 +445,46 @@ describe BSON::ByteBuffer do
|
|
445
445
|
|
446
446
|
describe '#rewind!' do
|
447
447
|
|
448
|
-
|
449
|
-
"#{BSON::Int32::BSON_TYPE}#{BSON::Int32::BSON_TYPE}"
|
450
|
-
end
|
448
|
+
shared_examples_for 'a rewindable buffer' do
|
451
449
|
|
452
|
-
|
453
|
-
|
454
|
-
|
450
|
+
let(:string) do
|
451
|
+
"#{BSON::Int32::BSON_TYPE}#{BSON::Int32::BSON_TYPE}"
|
452
|
+
end
|
455
453
|
|
456
|
-
|
457
|
-
|
458
|
-
|
454
|
+
before do
|
455
|
+
buffer.get_bytes(1)
|
456
|
+
buffer.rewind!
|
457
|
+
end
|
458
|
+
|
459
|
+
it 'resets the read position to 0' do
|
460
|
+
expect(buffer.read_position).to eq(0)
|
461
|
+
end
|
462
|
+
|
463
|
+
it 'starts subsequent reads at position 0' do
|
464
|
+
expect(buffer.get_bytes(2)).to eq(string)
|
465
|
+
end
|
459
466
|
end
|
460
467
|
|
461
|
-
|
462
|
-
|
468
|
+
context 'when the buffer is instantiated with a string' do
|
469
|
+
|
470
|
+
let(:buffer) do
|
471
|
+
described_class.new(string)
|
472
|
+
end
|
473
|
+
|
474
|
+
it_behaves_like 'a rewindable buffer'
|
463
475
|
end
|
464
476
|
|
465
|
-
|
466
|
-
|
477
|
+
context 'when the buffer is instantiated with nothing' do
|
478
|
+
|
479
|
+
let(:buffer) do
|
480
|
+
described_class.new
|
481
|
+
end
|
482
|
+
|
483
|
+
before do
|
484
|
+
buffer.put_byte(BSON::Int32::BSON_TYPE).put_byte(BSON::Int32::BSON_TYPE)
|
485
|
+
end
|
486
|
+
|
487
|
+
it_behaves_like 'a rewindable buffer'
|
467
488
|
end
|
468
489
|
end
|
469
490
|
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.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -11,8 +11,30 @@ authors:
|
|
11
11
|
- Gary Murakami
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
|
-
cert_chain:
|
15
|
-
|
14
|
+
cert_chain:
|
15
|
+
- |
|
16
|
+
-----BEGIN CERTIFICATE-----
|
17
|
+
MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
|
18
|
+
ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
|
19
|
+
Y29tMB4XDTE1MDMzMTA5NDIzN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os59Z
|
34
|
+
XZOS48LlWh15EG4yZo/gRzqNAW2LUIkYA5eMS2Kp6r+KV8IBUO/LaHdrXbdilpa8
|
35
|
+
BRsuCo7UZDbFVRns04HLyjVvkj+K/ywIcdKdS0csz5M=
|
36
|
+
-----END CERTIFICATE-----
|
37
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
16
38
|
dependencies: []
|
17
39
|
description: A full featured BSON specification implementation, in Ruby
|
18
40
|
email:
|
@@ -115,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
137
|
version: 1.3.6
|
116
138
|
requirements: []
|
117
139
|
rubyforge_project: bson
|
118
|
-
rubygems_version: 2.4.
|
140
|
+
rubygems_version: 2.4.5.1
|
119
141
|
signing_key:
|
120
142
|
specification_version: 4
|
121
143
|
summary: Ruby Implementation of the BSON specification
|
metadata.gz.sig
ADDED
Binary file
|