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: 87a39ac56870791f30d5da2cd2421132b54360e732596b487a674fd77985bfb4
4
- data.tar.gz: e9f56a2e8f8596e7757da194b70fe299ec63566472da5e81188a997b6fb54558
3
+ metadata.gz: 3f842e689f630194758bcc86a37f75902d1c5aa86ec9600fa5373c2a4349df1f
4
+ data.tar.gz: 56959ce3fd7ed8de02abfd0e0970fc62c7a4ec82957c0e01410e583d69697ca5
5
5
  SHA512:
6
- metadata.gz: d5710791bcc21e6694223d430ef943d526819a7159442003285ab0e12c07cf168856394a2eaf825edd82aca5d96b3da609322694237d9cbb069e4a25d97ddf63
7
- data.tar.gz: 1dac21aab4f330ba546ae5389facd15858120109ae7996b955108c39bbb004f72ca612c63c8fd78b485c4a723fd9c03ddc6bdeddaf87766f92b213090c51e37a
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 node],
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 = if @options.key?(:source_maps)
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 = if Gem::Platform.local.cpu.start_with?('arm')
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
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Speednode
3
- VERSION = '0.4.5'
3
+ VERSION = '0.4.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-speednode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann