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 +4 -4
- data/lib/em/protocols/zmq2/socket.rb +1 -5
- data/lib/em/protocols/zmq2/socket_connection.rb +1 -1
- data/lib/em/protocols/zmq2/version.rb +1 -1
- data/tests/test_rep.rb +2 -2
- 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: c5cb12adaf1b09ab58d336c2dae7d163c1341d51
|
4
|
+
data.tar.gz: 1818e0f69691427986d297d658a0ce118d87aae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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:
|
data/tests/test_rep.rb
CHANGED
@@ -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
|