mutant 0.10.31 → 0.10.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mutant/parallel/worker.rb +0 -3
- data/lib/mutant/pipe.rb +2 -12
- data/lib/mutant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b12eb31fc385dfce5e13bfb8341ac87efea9f8cb6e26531c584477e8eda2a73
|
4
|
+
data.tar.gz: 576c9eb28548bec20da7818589f110c56f4ffb230af11914bca2bed27c0f8b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c8a3ae71a2e8f1d82a11a0793c89e47a61cc5169025e0081801bf3211aadf5aadb84c23ea220077ae10746fb35ae6095f3d64969ba751ec1d766575cacc78ae
|
7
|
+
data.tar.gz: 118ee4f62eea31fe0ae3a616e6abf9ede75b03b7095af0bc9e75082c55ad199c9bb143677007411b3409bbfec47d37db73c7ec0716424b8dbc86b64eac2b005a
|
data/lib/mutant/pipe.rb
CHANGED
@@ -35,18 +35,6 @@ module Mutant
|
|
35
35
|
reader
|
36
36
|
end
|
37
37
|
|
38
|
-
# Set binmode (again)
|
39
|
-
#
|
40
|
-
# Ruby has a bug where the binmode setting may be lost duringa fork.
|
41
|
-
# This API allows to set the binmode again.
|
42
|
-
#
|
43
|
-
# @return [self]
|
44
|
-
def reset_binmode
|
45
|
-
reader.binmode
|
46
|
-
writer.binmode
|
47
|
-
self
|
48
|
-
end
|
49
|
-
|
50
38
|
class Connection
|
51
39
|
include Anima.new(:marshal, :reader, :writer)
|
52
40
|
|
@@ -69,6 +57,7 @@ module Mutant
|
|
69
57
|
|
70
58
|
fail Error, 'message to big' if bytesize > MAX_BYTES
|
71
59
|
|
60
|
+
io.binmode
|
72
61
|
io.write([bytesize].pack(HEADER_FORMAT))
|
73
62
|
io.write(body)
|
74
63
|
end
|
@@ -76,6 +65,7 @@ module Mutant
|
|
76
65
|
private
|
77
66
|
|
78
67
|
def read(bytes)
|
68
|
+
io.binmode
|
79
69
|
io.read(bytes) or fail Error, 'Unexpected EOF'
|
80
70
|
end
|
81
71
|
end
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mutant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: diff-lcs
|