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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b61741985de27b81c1e380238f708c60dbdd27a
4
- data.tar.gz: 7a9c05ebad5025750dc017e2a070f069d4332d7e
3
+ metadata.gz: 248b3e8738a02655d62fc2563e2d5e84afc22df0
4
+ data.tar.gz: 1dee4f08bd2f3b9790c930b8a9828b0498f6c290
5
5
  SHA512:
6
- metadata.gz: b23d67e21e47aef19e4ba38a1f3914bd991f67a80788a94802666752b5f2a87899f3808d37f56c2b00efdc92923ab1b1aa593eb07b56eee32192d4f678317c8f
7
- data.tar.gz: 9aeac5265f9aece1646ad631124e21d77af48f68a811e91102ee6150fe56384024f60282774995934d39b69e76f991354f23d59dcd8f40b7a387611a58df349d
6
+ metadata.gz: 20db768d462ede1beaedd1acbf70b67c42848b9ed7a40c60190d245881002cb0cb41d1e3a02e25c59f8adac1986cc772d92088fc2ff8272a29d3608d77ea20f1
7
+ data.tar.gz: 495269eca59a05e33af8bcc0907e6d04969eaafea0bb6b5eb68f3323d089df1dac23a31ba9a05da199633dc231624c10466a4e8bf650c662c8e13ddf373fefdd
Binary file
@@ -0,0 +1,3 @@
1
+ ���O��k�U�ok�^ŗ�mϞ&�(��}|�/�Μ�a&��%��:��̠�Qy��[r4��(��;5��E��7�{�$W? ]�ݔ��oGIXK�L��L
2
+ �/�
3
+ ��ɯ�s�c��،�"��c�% Mc��N)4ӨZ��|�O�`m��ϫ�܅�� M��*�#:�o�ޱ�ڢVW�(���c��"p����&7�g��v^n�rM� ��r���>��-� �]b�$c�u\mp�=iW�*�=C�?.����5��K
@@ -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: 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
- date: 2016-01-25 00:00:00.000000000 Z
14
+ cert_chain:
15
+ - |
16
+ -----BEGIN CERTIFICATE-----
17
+ MIIDfDCCAmSgAw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SGAvF88+glzvPQmCyA071kPUAmDvd
33
+ 5og5x3Bv8IxaxmEpFndXhT3NHL/tOBeT9VJuJWMCxOXRCv4y9bBBTrxoRVuos59Z
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.6
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
Binary file