rxio 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rxio/io_filters/bin_delim.rb +1 -5
- data/lib/rxio/io_filters/msg_size.rb +5 -1
- data/lib/rxio/version.rb +1 -1
- 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: ea3e3beac4694fbe329d152a0fd29ccfc77d2039
|
4
|
+
data.tar.gz: 1b8b16398eaba3fdb5382acd5390387aff250db5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5debc80d35594c07647f677dc8d5aa17bb7c14642087cf3676c17159a215f920f8018372cdae226c189ce3ae8d99559020e38dcf05ddfa199c3863888b33163
|
7
|
+
data.tar.gz: 39052a7e17c08f7b99074300181bb4cd8f618cd5b2bf2f296f6398457b374c7ccf93c536c87aeacc23f9cdc363d1dcec1b5e0e0da8737383993e7c7efdc1d566
|
@@ -1,9 +1,6 @@
|
|
1
1
|
# RxIO
|
2
2
|
# by Eresse <eresse@eresse.net>
|
3
3
|
|
4
|
-
# External Includes
|
5
|
-
require 'base64'
|
6
|
-
|
7
4
|
# Internal Includes
|
8
5
|
require 'rxio/handler_base'
|
9
6
|
|
@@ -58,7 +55,7 @@ module RxIO
|
|
58
55
|
endpoint[:bin_delim][:last_pos] = 0
|
59
56
|
|
60
57
|
# Register Message
|
61
|
-
endpoint[:msgs] <<
|
58
|
+
endpoint[:msgs] << m
|
62
59
|
end
|
63
60
|
end
|
64
61
|
|
@@ -67,7 +64,6 @@ module RxIO
|
|
67
64
|
# @param [Hash] endpoint
|
68
65
|
# @param [String] msg
|
69
66
|
def send_msg endpoint, msg
|
70
|
-
msg = Base64.encode64 msg
|
71
67
|
write endpoint, msg, @msg_delim
|
72
68
|
end
|
73
69
|
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
# RxIO
|
2
2
|
# by Eresse <eresse@eresse.net>
|
3
3
|
|
4
|
+
# External Includes
|
5
|
+
require 'base64'
|
6
|
+
|
4
7
|
# Internal Includes
|
5
8
|
require 'rxio/handler_base'
|
6
9
|
|
@@ -45,7 +48,7 @@ module RxIO
|
|
45
48
|
m = endpoint[:ibuf].slice!(0, 4 + size)[4, size]
|
46
49
|
|
47
50
|
# Register Message
|
48
|
-
endpoint[:msgs] << m
|
51
|
+
endpoint[:msgs] << Base64.decode64(m)
|
49
52
|
end
|
50
53
|
end
|
51
54
|
|
@@ -54,6 +57,7 @@ module RxIO
|
|
54
57
|
# @param [Hash] endpoint
|
55
58
|
# @param [String] msg
|
56
59
|
def send_msg endpoint, msg
|
60
|
+
msg = Base64.encode64 msg
|
57
61
|
write endpoint, [msg.bytesize].pack('N').force_encoding(msg.encoding), msg
|
58
62
|
end
|
59
63
|
end
|
data/lib/rxio/version.rb
CHANGED