speednode 0.8.1 → 0.8.2

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: ab3e330c3cd4bf4518c54e6666ff13ee722b553e4de7d8be2602b984811da9fc
4
- data.tar.gz: '08218aa8e443770808a35de088c869bfc0d227493beba5f60b98ddcdfe35b51a'
3
+ metadata.gz: e5d2a802e8fd3c7f25ef9c9dd0bef1807ec87d860da0a140f8a494868bcc2241
4
+ data.tar.gz: 4ecc3ad8b012f0f76cf583789b9f78daec2a3606b3b5d94d163c1471d2a45341
5
5
  SHA512:
6
- metadata.gz: 3f41ebd4a9b509dc81f815c7dff64ff3ce8ae15a57fa085038ce5cdb139ab37f0f0b26cded89f52450e4e39a0f69afd98238a7ed02d20db50e7d395872617f67
7
- data.tar.gz: cb7d8667d95403426e7964e4e2be7d1608a3d2ad43fe1b36a694f125bd9595dfe3ba5b73d983d57215fdc637b2a141d8536f642435082005cbbdc5487af1b2e1
6
+ metadata.gz: 616c54a7dafd5c2ddd67f0479e8fa241303d97cb9b3ac560858378996e46ccc4d976d18b175ba64768b32a9d3b519cf87d61962757fe49361c44aff71f8f7812
7
+ data.tar.gz: a42e8fa9e0d825ebb7e2c0df0492286db295ce52b1d1dbfb5b459c1a1d6b79f33d4e5b255453da081408fe80a61ec4fc1876d1091eb116609d9af58ec0328f65
@@ -151,10 +151,11 @@ module Speednode
151
151
  @socket_dir = nil
152
152
  @socket_path = SecureRandom.uuid
153
153
  else
154
- @socket_dir = Dir.mktmpdir("iso-speednode-")
154
+ @socket_dir = Dir.mktmpdir("speednode-")
155
155
  @socket_path = File.join(@socket_dir, "socket")
156
156
  end
157
157
  @pid = Process.spawn({"SOCKET_PATH" => @socket_path}, @options[:binary], '--expose-gc', @options[:source_maps], @options[:runner_path])
158
+ Process.detach(@pid)
158
159
 
159
160
  retries = 500
160
161
 
@@ -183,7 +184,9 @@ module Speednode
183
184
 
184
185
  @started = true
185
186
 
186
- Kernel.at_exit { self.class.finalize(@socket, @socket_dir, @socket_path, @pid).call }
187
+ exit_proc = self.class.finalize(@socket, @socket_dir, @socket_path, @pid)
188
+
189
+ Kernel.at_exit { exit_proc.call }
187
190
  end
188
191
 
189
192
  def create_responder(context)
@@ -1,3 +1,3 @@
1
1
  module Speednode
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speednode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-16 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs