binaryen 1.1.6.11 → 1.1.6.13

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: d2514a32fe0aa37ddffcc4da057a610ccac94f7e4a43318b3979d3c72788b165
4
- data.tar.gz: 6da6579ae2cdba43f375ed3795e41da20b12e4854ed9c3c22b43bd92cb6fa8e7
3
+ metadata.gz: a9fa0d4b995d4acbe38a55e4e8ab15f530185f94bce36b8bc6623488d4485f2f
4
+ data.tar.gz: a5d2c80e011ccc5c982d64128e5104a0fe426b34bd7197fffa2bcf3c3a0f0261
5
5
  SHA512:
6
- metadata.gz: 8d0c1f916e3e38511bac7e28325f20e8dabec9666bd154f14d06a6c346640431596d44d0c63f603966f470a4c526037c9a29d2c70172605ffb3690af56cfcbf7
7
- data.tar.gz: 4ddc9df067ee8354a995a9cf7eb09ea27ce54455dd266266149192e2c45564f1969c21f601f719f3ff45e34a2649e490c09aee28118c1b24a1a283458302e70b
6
+ metadata.gz: 2b850bd1469ef829c090aa5dabbbab19a06519bfaff0b180d337ea2f3704f31cbcdb2b4c05e342878c6e6165d45e419da837d1de597c0bd66b00e9999981e5d4
7
+ data.tar.gz: 0f940511241644486418674f99dbc0cadff435200ed5c0d5433a61ba8bff02560d55cf459d2d6ef3084143ccb3984e0443f8a064f68c9c71c42159f53f6936bd
@@ -34,22 +34,26 @@ module Binaryen
34
34
  def spawn_command(*args, stderr: nil, stdin: nil)
35
35
  pid = nil
36
36
 
37
- IO.pipe do |in_read, in_write|
38
- in_read.binmode
37
+ Tempfile.create("binaryen-input") do |in_write|
39
38
  in_write.binmode
39
+ in_write.write(stdin) if stdin
40
+ in_write.close
40
41
 
41
- Tempfile.create("binaryen") do |tmpfile|
42
+ Tempfile.create("binaryen-output") do |tmpfile|
42
43
  tmpfile.close
43
44
 
44
45
  File.open(File::NULL, "w") do |devnull|
45
46
  IO.pipe do |err_read, err_write|
46
- pid = POSIX::Spawn.pspawn(*args, "--output=#{tmpfile.path}", in: in_read, out: devnull, err: err_write)
47
- in_read.close
47
+ pid = POSIX::Spawn.pspawn(
48
+ *args,
49
+ "--output=#{tmpfile.path}",
50
+ in_write.path,
51
+ in: devnull,
52
+ out: devnull,
53
+ err: err_write,
54
+ )
48
55
  err_write.close
49
56
 
50
- in_write.write(stdin) if stdin
51
- in_write.close
52
-
53
57
  _, status = Process.waitpid2(pid)
54
58
  pid = nil
55
59
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Binaryen
4
- VERSION = "1.1.6.11"
4
+ VERSION = "1.1.6.13"
5
5
  BINARYEN_VERSION = "version_116"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binaryen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6.11
4
+ version: 1.1.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-10 00:00:00.000000000 Z
11
+ date: 2024-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn