em-zmq-tp10 0.1.18 → 0.1.19

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: be62a1ea0af2e99a3b6a974a2a3e2da94d4a548b
4
- data.tar.gz: e11e1a7b60f8736e5686dc16a3b735e7c5292bc4
3
+ metadata.gz: c5cb12adaf1b09ab58d336c2dae7d163c1341d51
4
+ data.tar.gz: 1818e0f69691427986d297d658a0ce118d87aae5
5
5
  SHA512:
6
- metadata.gz: 8fbde09f3e2ae2d9fc1912365c7fcbdc66abc7ea72a9113d8e3a0aa834fe7a1bd9314ee92759cf11c15faa79103a99262610e4950137cd0cbc9ceaa032105094
7
- data.tar.gz: 67e2778866ed15fac8c1ce186a4b0d0f7b47be93958319c5d8377743fe73cc1992ab97ccfb69dd280640fdf59fad71c93263a5b4338653a522f613ab98257916
6
+ metadata.gz: 257979ae708d64ac3d73caa6f4933e56c1b929ee29c894dcdd576ae33904a1cf18b4b357f815c2130407d11474a7aaaca4e2b636f21cfe42e0adec329834b68d
7
+ data.tar.gz: e211f2f1eba99bcac9a8c5f2c47b512b0118fd0812f7df8e596733f461b6642483ac66a8603795988e575ef321a96b6d48f55a9ebec05a93a1e1cbefd3907a46
@@ -12,11 +12,7 @@ module EM
12
12
  attr :identity, :hwm
13
13
  attr_accessor :hwm_strategy
14
14
  attr_accessor :do_balance
15
- if String.method_defined?(:b)
16
- GENERATED = '%GN%'.b.freeze
17
- else
18
- GENERATED = '%GN%'.force_encoding('BINARY').freeze
19
- end
15
+ GENERATED = '%GN%'.force_encoding('BINARY').freeze
20
16
 
21
17
  # Accept options, which are dependend on socket type
22
18
  # Common options are:
@@ -90,7 +90,7 @@ module EventMachine
90
90
  end
91
91
  end
92
92
 
93
- FF = "\xff".freeze
93
+ FF = "\xff".force_encoding('BINARY').freeze
94
94
  BIG_UNPACK = 'CNNC'.freeze
95
95
  SMALL_UNPACK = 'CC'.freeze
96
96
  def parse_frames(data)
@@ -1,7 +1,7 @@
1
1
  module EventMachine
2
2
  module Protocols
3
3
  module Zmq2
4
- VERSION = '0.1.18'
4
+ VERSION = '0.1.19'
5
5
  end
6
6
  end
7
7
  end
@@ -26,8 +26,8 @@ describe 'Rep' do
26
26
  @connected.succeed
27
27
  end
28
28
  def receive_request(message, envelope)
29
- message.first.must_equal 'hello'
30
- envelope.first.must_be :start_with?, 'BIND_'
29
+ message.first.must_equal 'hello'.force_encoding('BINARY')
30
+ envelope.first.must_be :start_with?, 'BIND_'.force_encoding('BINARY')
31
31
  send_reply(['world', *message[1..-1]], envelope)
32
32
  @finished.succeed if message.last == 'xxx'
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-zmq-tp10
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sokolov Yura 'funny-falcon'