cql-rb 1.2.0.pre1 → 1.2.0.pre2
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.
- checksums.yaml +4 -4
- data/lib/cql/protocol/frame_decoder.rb +1 -1
- data/lib/cql/version.rb +1 -1
- data/spec/cql/protocol/frame_decoder_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51001231719475f265ee66993532e07a3b5d9a64
|
4
|
+
data.tar.gz: bab2540c7d5c65b867fdd49a4f6cc47ff51359d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0f0af740a9deee529ebc8edbad4f440e02dd768842d3c7c36751b877517020f864a16c6738dda8a52d1908443ab3d7e65dcbf6a4cbb422a78d166a5ebca8cb6
|
7
|
+
data.tar.gz: 6c9404b85ceec8bbfe004952fe2af1a00df9abd91b0fa43ffe172e1947167e0b914ee481dcf2c4c30bb7f67d140cf2e283732a7c71c875c97c5d456858d81741
|
data/lib/cql/version.rb
CHANGED
@@ -21,6 +21,11 @@ module Cql
|
|
21
21
|
frame.should_not be_complete
|
22
22
|
end
|
23
23
|
|
24
|
+
it 'returns a partial frame less than eight bytes are missing' do
|
25
|
+
frame = decoder.decode_frame(ByteBuffer.new("\x81\x02\x00\x08\x00\x00\x00\x14\a\xE4\xBE\x10?\x03\x11\xE3\x951\xFBr\xEF\xF0_\xBB\x00\x00"))
|
26
|
+
frame.should_not be_complete
|
27
|
+
end
|
28
|
+
|
24
29
|
it 'returns a complete frame when all bytes are in the buffer' do
|
25
30
|
buffer = ByteBuffer.new
|
26
31
|
buffer << "\x81\x00\x00\x06\x00\x00\x00\x27"
|