gibson 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGMwMWUxNjZkZGExNDRkMGQ0Yzc0ZmUzNzQ5NmJlNzRlZjFiNzZlMw==
4
+ ZjNmZDY4YTFmZTFhMWU2MjczODExMjY0YmRkMWVlZjdhNWE5MjU3MQ==
5
5
  data.tar.gz: !binary |-
6
- NzRhOWRlNjJkMWY4N2YzMmFkODkzYTdiMDcwNjAyOTAzYzJlYjMyNA==
6
+ ZTJmZjEwMTNjMzNmZGFlM2NhMjQ4MDcwOTc4ODk3M2E5YmE0NjY4ZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Y2NhZDk2NWVlODE0NDZjOTM2NTQ5NDYyNWIyMjZiNTk1OTIwNTM3NGNlMTZl
10
- MjU2YWRiMzI0NzY0MDFiYjkyNjYwMzBhNzIxMmJlYmIwNDVmYzBiOTU1NjU1
11
- ODQ1ZTQ4MzExNzc2MTUzZTI3ZWUwNTU3ZjM5MTA0NDM0NDRlZTc=
9
+ M2I0ZTM2MWE3MmFkYWU3MzM3MjY3YTU0NGU4ZDM0ZDVjMzJiZThkZjRjOGFj
10
+ ZDRhZmM5MjVjZWJjNzBjYjczNDQ3Y2NjN2FhZWRkYjMxZTE2YTZiMjM4ZDZl
11
+ ZmY5YTg2MDE1ZjdhMjUzOTVlNTUzZWYxMTk4NWMwMzg0NGQ3YjA=
12
12
  data.tar.gz: !binary |-
13
- ZWU4MWQ3MzU2ZTdhMmQ0YjMyM2VhOWM3OGM0MGVmMjUyNTRkMTdmNThjOWMz
14
- MGQwOTI2ZjcxZDE2M2VhMDA4YWI1MDk5OWMxMzAzZTcyYTUyNjdjM2Y1OGFh
15
- ZjQ5YmNmMWI4MzU1ZDM1ZWRmODI0ZmZmYjBiOGQyOGZkZjM4ZTI=
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, 'Z' + size.to_s
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)
@@ -1,4 +1,4 @@
1
1
  module Gibson
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gibson
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Margaritelli