rabbitmq 1.1.4 → 1.1.5

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: 6f7f5531b0607d524ad9df9035c824c19c71ad6c
4
- data.tar.gz: 233f9131b8a37d444a7bc31f86a6a3d32bf5875a
3
+ metadata.gz: 6b96794b4cf4e4741ca6ab0b760072263f531ac1
4
+ data.tar.gz: 4c7c7acae6f7cf0795f74b9e2a83cd80cd237e4a
5
5
  SHA512:
6
- metadata.gz: 724c1816c992c10d54d146fc14b3c1088cab96816cf489746477851237904e96856b49ca249129eadeccfd92f82384ab6964ba9c85a2a5763824d2d69f3a4e8e
7
- data.tar.gz: d39a4ecb25ad1796195a2d39aa7dc8eb7b10ed5ec62d34758134c5bf67f6b113c0ca9c6e3c7fd704e7670705e0bd1ca614f15244e1e4177d1f49eddb4664d627
6
+ metadata.gz: 1b382c33d5d3d117acda6f34046096103e70e8fb433c98b8a0fe452777b1537fab919e945d6a8977ca9863a7a26061d0183bfa028ad4f0d5df8024ae2e3d99a8
7
+ data.tar.gz: 924ca847dc2f8212bab2cef64ee21a9bdf0aaca2334e41f458e5c94aa65c428f810e50729c69b9eafd256843afad7904ce5950c7b404413e11672e4d3c742ab3
@@ -152,7 +152,7 @@ module RabbitMQ
152
152
  return unless frame
153
153
  event.merge!(frame.as_header_to_h)
154
154
 
155
- body = ""
155
+ body = "".force_encoding(Encoding::ASCII_8BIT)
156
156
  while body.size < event.fetch(:body_size)
157
157
  frame = fetch_next_frame(timeout, start)
158
158
  return unless frame
@@ -6,6 +6,7 @@ module RabbitMQ
6
6
  def to_s(free=false)
7
7
  size = self[:len]
8
8
  s = size == 0 ? "" : self[:bytes].read_bytes(size)
9
+ s.force_encoding(Encoding::ASCII_8BIT)
9
10
  free! if free
10
11
  s
11
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain