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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ef901ceb41d6239377dac9b9c7c8cc908775e76f12dee66998087f3f6ef70a0
4
- data.tar.gz: fc6b949b0bb8c8353cdab6186307daf67e5274faded923aaa8941dd0f5219de3
3
+ metadata.gz: 1b12eb31fc385dfce5e13bfb8341ac87efea9f8cb6e26531c584477e8eda2a73
4
+ data.tar.gz: 576c9eb28548bec20da7818589f110c56f4ffb230af11914bca2bed27c0f8b1a
5
5
  SHA512:
6
- metadata.gz: c05c611a7cc443e82d278fcaac02f1b43413b30dff81c602d468aea5256cb3389850c414f5415fbd6d7fa67aac035669c325edf3ffccaa915fa70cb03b8dbdc0
7
- data.tar.gz: e171127271fc59b0d66a9050e9cb9398e5f0caecf13df14289e9acf1f7940cefa9b9760c051655c41090a5cb2235e18465b7dde72b4ed27ac21b80a745850cc0
6
+ metadata.gz: 0c8a3ae71a2e8f1d82a11a0793c89e47a61cc5169025e0081801bf3211aadf5aadb84c23ea220077ae10746fb35ae6095f3d64969ba751ec1d766575cacc78ae
7
+ data.tar.gz: 118ee4f62eea31fe0ae3a616e6abf9ede75b03b7095af0bc9e75082c55ad199c9bb143677007411b3409bbfec47d37db73c7ec0716424b8dbc86b64eac2b005a
@@ -29,9 +29,6 @@ module Mutant
29
29
  response = Pipe.from_io(io)
30
30
 
31
31
  pid = process.fork do
32
- request.reset_binmode
33
- response.reset_binmode
34
-
35
32
  world.thread.current.name = process_name
36
33
  world.process.setproctitle(process_name)
37
34
 
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mutant
4
4
  # Current mutant version
5
- VERSION = '0.10.31'
5
+ VERSION = '0.10.32'
6
6
  end # Mutant
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.31
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-03 00:00:00.000000000 Z
11
+ date: 2021-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs