isomorfeus-speednode 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f842e689f630194758bcc86a37f75902d1c5aa86ec9600fa5373c2a4349df1f
|
|
4
|
+
data.tar.gz: 56959ce3fd7ed8de02abfd0e0970fc62c7a4ec82957c0e01410e583d69697ca5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eee28f46f8f21b26498e6403c885e0bd27a6ad20980ddff5b2b14e086430df401ad9751cf4e2646ece544ffd18750aa1b7bee9d457d1f55b4cd616d3faf0eede
|
|
7
|
+
data.tar.gz: a01893f46a88c31c7cca49e515a5d214a0fb1b3b6b9d4a62a85b09ff242b3247db9a75fc46037fdd5a1bb54a858de095491736e89d50b12d3dd8ec6676e8d643
|
|
@@ -2,7 +2,7 @@ module ExecJS
|
|
|
2
2
|
module Runtimes
|
|
3
3
|
Speednode = Isomorfeus::Speednode::Runtime.new(
|
|
4
4
|
name: 'Isomorfeus Speednode Node.js (V8)',
|
|
5
|
-
command: %w[nodejs
|
|
5
|
+
command: %w[node nodejs],
|
|
6
6
|
runner_path: File.join(File.dirname(__FILE__), 'speednode', 'runner.js'),
|
|
7
7
|
encoding: 'UTF-8'
|
|
8
8
|
)
|
|
@@ -125,11 +125,7 @@ module Isomorfeus
|
|
|
125
125
|
@socket_dir = Dir.mktmpdir("isomorfeus-speednode-")
|
|
126
126
|
@socket_path = File.join(@socket_dir, "socket")
|
|
127
127
|
end
|
|
128
|
-
@pid =
|
|
129
|
-
Process.spawn({"SOCKET_PATH" => @socket_path}, @options[:binary], @options[:source_maps], @options[:runner_path])
|
|
130
|
-
else
|
|
131
|
-
Process.spawn({"SOCKET_PATH" => @socket_path}, @options[:binary], @options[:runner_path])
|
|
132
|
-
end
|
|
128
|
+
@pid = Process.spawn({"SOCKET_PATH" => @socket_path}, @options[:binary], @options[:source_maps], @options[:runner_path])
|
|
133
129
|
|
|
134
130
|
retries = 100
|
|
135
131
|
|
|
@@ -22,11 +22,7 @@ module Isomorfeus
|
|
|
22
22
|
@encoding = options[:encoding]
|
|
23
23
|
@deprecated = !!options[:deprecated]
|
|
24
24
|
|
|
25
|
-
@vm =
|
|
26
|
-
VM.new(binary: @binary, runner_path: @runner_path)
|
|
27
|
-
else
|
|
28
|
-
VM.new(binary: @binary, source_maps: '--enable-source-maps', runner_path: @runner_path)
|
|
29
|
-
end
|
|
25
|
+
@vm = VM.new(binary: @binary, source_maps: '--enable-source-maps', runner_path: @runner_path)
|
|
30
26
|
|
|
31
27
|
@popen_options = {}
|
|
32
28
|
@popen_options[:external_encoding] = @encoding if @encoding
|