binaryen 1.1.6.14 → 1.1.6.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/extconf.rb +5 -5
- data/lib/binaryen/command.rb +1 -3
- data/lib/binaryen/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f4ed0a7a107e3dc549ffc49d9ae9f5b25a51ddc81c7aacf7844d03814d2e625
|
4
|
+
data.tar.gz: 8f31d800ca9ba597a5cd565129bbe42ee0dfab091bfd097d3b48811256c13d05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586a2aa940e4ce3b84d6027003f5a2418794de765ca02b529c5240c3fdb9b1fd4304b2ab81d2810b32d6fe403c1420468f01a0286abe92404f21f75b781e4113
|
7
|
+
data.tar.gz: a68fa7803ba398067c6a1e544f2ca7d4d5f6e6d605153461c4022fe9d0900592498026d880c8953b5762cc8920fd4d268a1f0aff09d833e2fc9a27d077f548f5
|
data/extconf.rb
CHANGED
@@ -38,6 +38,11 @@ if enable_config("prune", true)
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
File.write("Makefile", <<~MAKEFILE)
|
42
|
+
install:
|
43
|
+
\t@echo "binaryen-rb does not need to be installed"
|
44
|
+
MAKEFILE
|
45
|
+
|
41
46
|
unless File.exist?("#{__dir__}/vendor/#{ruby_platform}")
|
42
47
|
log("[warning] no vendor directory found for #{ruby_platform}, cannot use binaryen-rb on this platform yet")
|
43
48
|
exit
|
@@ -67,9 +72,4 @@ if enable_config("strip", true)
|
|
67
72
|
end
|
68
73
|
end
|
69
74
|
|
70
|
-
File.write("Makefile", <<~MAKEFILE)
|
71
|
-
install:
|
72
|
-
\t@echo "binaryen-rb does not need to be installed"
|
73
|
-
MAKEFILE
|
74
|
-
|
75
75
|
log("[info] done (#{to_mib(total_saved)} MiB saved)")
|
data/lib/binaryen/command.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "posix/spawn"
|
4
3
|
require "timeout"
|
5
4
|
require "tempfile"
|
6
5
|
|
7
6
|
module Binaryen
|
8
7
|
class Command
|
9
|
-
include POSIX::Spawn
|
10
8
|
DEFAULT_MAX_OUTPUT_SIZE = 256 * 1024 * 1024 * 1024 # 256 MiB
|
11
9
|
DEFAULT_TIMEOUT = 10
|
12
10
|
DEFAULT_ARGS_FOR_COMMAND = {}.freeze
|
@@ -44,7 +42,7 @@ module Binaryen
|
|
44
42
|
|
45
43
|
File.open(File::NULL, "w") do |devnull|
|
46
44
|
IO.pipe do |err_read, err_write|
|
47
|
-
pid =
|
45
|
+
pid = Process.spawn(
|
48
46
|
*args,
|
49
47
|
"--output=#{tmpfile.path}",
|
50
48
|
in_write.path,
|
data/lib/binaryen/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
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.16
|
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-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: posix-spawn
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.3.15
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.3.15
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description:
|
28
14
|
email:
|
29
15
|
- gems@shopify.com
|