bson 4.0.1-java → 4.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef64079fa7f0ed77c5224cc5a7cd03731a0fb753
4
- data.tar.gz: 7274658271159a428734e639bac21973d5e9fbdc
3
+ metadata.gz: 116e01974888214900fe636ac0e57b289b0d8b38
4
+ data.tar.gz: efa233f9b054d313e1740b82ab76e44aa2b61adc
5
5
  SHA512:
6
- metadata.gz: 1444e118cae9f3843009cff4cbb5e972f4691824bdd9cfc32b342076e316ac065fee2177a416d04b92f6e0de8fee788f4ede5b15574a8aad2644abf7ff33204e
7
- data.tar.gz: 03e6026a72a239fe037bf4fd715da2513e1bbf51b15f8ae61157ad4c5eb1c6b7e7519fcb16a27e1adedadee2b2bfb2591950a567688e4fb7b1d7dd8dc85ffd31
6
+ metadata.gz: 4e2fb342629fd24600b9edc885562bf08be249f05bf1e3753a92fe082f8058d4e623d0bbc3550c6b8760fba2dd388adc285de413f4b0fca48f33ac66dbd8e545
7
+ data.tar.gz: 84542a106a3eb8db354bf6653ab16ce8dc20cd8efdd13bb7cf7e15053eed04e22001cec6025e7b64b64920102cd726da8722c2df3dd03516dbd9614f382d5bc3
Binary file
Binary file
Binary file
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "4.0.1"
16
+ VERSION = "4.0.2"
17
17
  end
@@ -445,25 +445,46 @@ describe BSON::ByteBuffer do
445
445
 
446
446
  describe '#rewind!' do
447
447
 
448
- let(:string) do
449
- "#{BSON::Int32::BSON_TYPE}#{BSON::Int32::BSON_TYPE}"
450
- end
448
+ shared_examples_for 'a rewindable buffer' do
451
449
 
452
- let(:buffer) do
453
- described_class.new(string)
454
- end
450
+ let(:string) do
451
+ "#{BSON::Int32::BSON_TYPE}#{BSON::Int32::BSON_TYPE}"
452
+ end
455
453
 
456
- before do
457
- buffer.get_bytes(1)
458
- buffer.rewind!
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
- it 'resets the read position to 0' do
462
- expect(buffer.read_position).to eq(0)
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
- it 'starts subsequent reads at position 0' do
466
- expect(buffer.get_bytes(2)).to eq(string)
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.1
4
+ version: 4.0.2
5
5
  platform: java
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
- date: 2016-01-25 00:00:00.000000000 Z
14
+ cert_chain:
15
+ - |
16
+ -----BEGIN CERTIFICATE-----
17
+ MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
18
+ ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
19
+ Y29tMB4XDTE1MDMzMTA5NDIzNVoXDTE2MDMzMDA5NDIzNVowQjEUMBIGA1UEAwwL
20
+ ZHJpdmVyLXJ1YnkxFTATBgoJki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----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:
Binary file