gibson 1.1.0 → 1.1.1
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 +8 -8
- data/lib/gibson/gibson.rb +2 -2
- data/lib/gibson/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjNmZDY4YTFmZTFhMWU2MjczODExMjY0YmRkMWVlZjdhNWE5MjU3MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTJmZjEwMTNjMzNmZGFlM2NhMjQ4MDcwOTc4ODk3M2E5YmE0NjY4ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2I0ZTM2MWE3MmFkYWU3MzM3MjY3YTU0NGU4ZDM0ZDVjMzJiZThkZjRjOGFj
|
10
|
+
ZDRhZmM5MjVjZWJjNzBjYjczNDQ3Y2NjN2FhZWRkYjMxZTE2YTZiMjM4ZDZl
|
11
|
+
ZmY5YTg2MDE1ZjdhMjUzOTVlNTUzZWYxMTk4NWMwMzg0NGQ3YjA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTExYmQ1MWFkNzQ4NDQ0NzM4NGI4MDJiZWU2NDNkYThlZjZmNGQ5MjBkOWMz
|
14
|
+
YmIxMzU4OWJhZjc3MzZmYWI4ZGI0YzVhODgzZTZhZTdkNTkzOTc0NGExNzI0
|
15
|
+
OTRlZjdkYjY5NDk4MzU1ZWMyMjRhMzI1M2Y5OWIxN2Q0NjJiNTI=
|
data/lib/gibson/gibson.rb
CHANGED
@@ -44,7 +44,7 @@ module Gibson
|
|
44
44
|
def decode_val( encoding, size, io )
|
45
45
|
# plain string
|
46
46
|
if encoding == Protocol::ENCODINGS[:plain]
|
47
|
-
io.read_unpacked size, '
|
47
|
+
io.read_unpacked size, 'a' + size.to_s
|
48
48
|
# number
|
49
49
|
elsif encoding == Protocol::ENCODINGS[:number]
|
50
50
|
io.read_unpacked size, size == 4 ? 'l<' : 'q<'
|
@@ -104,7 +104,7 @@ module Gibson
|
|
104
104
|
|
105
105
|
code, encoding, size = @connection.read(7).unpack('S<cL<' )
|
106
106
|
data = @connection.read size
|
107
|
-
|
107
|
+
|
108
108
|
raise( Timeout::Error, "Couldn't complete reading ( read #{data.size} of #{size} bytes )" ) unless data.size == size
|
109
109
|
|
110
110
|
decode code, encoding, size, StringIO.new(data)
|
data/lib/gibson/version.rb
CHANGED