binaryen 1.1.6.12 → 1.1.6.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/extconf.rb +2 -2
- data/lib/binaryen/command.rb +10 -6
- data/lib/binaryen/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13162544cb520b0bd5d307a2519b87d1584725fb91b6055e5fbfff598d645a69
|
4
|
+
data.tar.gz: db9f673b8e3b674443931f6a4e8aa3ad9f0d925ae1274863f12393641323c6fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce967cf8f863c6562dd4736dc8a68892c9d67a0bf952e3c9957d4abd4f3ee5acdd52a203398348db128fe993549ff1c09e24134b7d123dd344980162f18ff347
|
7
|
+
data.tar.gz: a543bbf593cb3f20e17f021b30fd546886b2f04fd276c014cdfb1af8cba4d991d2d4157fa5696d01acac4603ea7a6f66d297bdce230384a06c7b30bcae9ce338
|
data/extconf.rb
CHANGED
@@ -39,8 +39,8 @@ if enable_config("prune", true)
|
|
39
39
|
end
|
40
40
|
|
41
41
|
unless File.exist?("#{__dir__}/vendor/#{ruby_platform}")
|
42
|
-
log("[
|
43
|
-
exit
|
42
|
+
log("[warning] no vendor directory found for #{ruby_platform}, cannot use binaryen-rb on this platform yet")
|
43
|
+
exit
|
44
44
|
end
|
45
45
|
|
46
46
|
if enable_config("strip", true)
|
data/lib/binaryen/command.rb
CHANGED
@@ -34,21 +34,25 @@ module Binaryen
|
|
34
34
|
def spawn_command(*args, stderr: nil, stdin: nil)
|
35
35
|
pid = nil
|
36
36
|
|
37
|
-
|
38
|
-
in_read.binmode
|
37
|
+
Tempfile.create("binaryen-input") do |in_write|
|
39
38
|
in_write.binmode
|
40
|
-
in_write.sync = true
|
41
39
|
in_write.write(stdin) if stdin
|
40
|
+
in_write.close
|
42
41
|
|
43
42
|
Tempfile.create("binaryen-output") do |tmpfile|
|
44
43
|
tmpfile.close
|
45
44
|
|
46
45
|
File.open(File::NULL, "w") do |devnull|
|
47
46
|
IO.pipe do |err_read, err_write|
|
48
|
-
pid = POSIX::Spawn.pspawn(
|
49
|
-
|
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
|
+
)
|
50
55
|
err_write.close
|
51
|
-
in_write.close
|
52
56
|
|
53
57
|
_, status = Process.waitpid2(pid)
|
54
58
|
pid = nil
|
data/lib/binaryen/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.6.14
|
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-
|
11
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: posix-spawn
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
- !ruby/object:Gem::Version
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
|
-
rubygems_version: 3.5.
|
109
|
+
rubygems_version: 3.5.6
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Vendors binaryen libraries, headers, and executables for use in Ruby
|