isomorfeus-speednode 0.4.3 → 0.4.7

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: 9bd172161010e250f491960ea42831049d9f469dabc52543fdc6f2122409fd2e
4
- data.tar.gz: e4fbc29c0fdc33ce8a0c0dd589b38e3fa976403cab874a8a31b6aebcba767082
3
+ metadata.gz: 81b835d9f31173adc0cb2ac885e942fb36bb08d69e7b259e27d4a9896de56b87
4
+ data.tar.gz: '078129dc5a19ccfb29526528ba28faea8c5597eee526dafbf42c1466ceef5866'
5
5
  SHA512:
6
- metadata.gz: f8b1128703bfda3dc7c47705aa71af6e5de484a918b7ec648c32151e1a2b3f90635fd8101a3e28f0ab2985075f0e6b026ddaf427be49ced91e8491d5379c6b2d
7
- data.tar.gz: 77c73e250ec950d6bb77ea42db0c0ed22545ed424d64048bb38e02c007a91f34d41869b37bba38d9345fedb16d3290f56229401fd07e8f54a9732ca8cddc168a
6
+ metadata.gz: 428af1e59a9ce800a692e18e3658920868aa1da2009050d9ef88e4b1a9618e2793f974f46dd436c8b39fe88addf4ae4583ff11c290d07f33e967a468f25908d1
7
+ data.tar.gz: 956618bd396f572f0fcc683a11a0edd0a60c89b09ea142915496b8c79aafcc247e7dab0826d27ee545d9391b039ed7e9398db0990005fed05c0a75b9e470d561
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # isomorfeus-speednode
1
+ <h1 align="center">
2
+ <img src="https://github.com/isomorfeus/isomorfeus-speednode/blob/master/Logo.png?raw=true" align="center" width="234" height="127"/><br/>
3
+ Isomorfeus Speednode<br/>
4
+ </h1>
2
5
 
3
6
  A fast runtime for execjs using node js. Works on Linux, BSDs, MacOS and Windows.
4
7
  Inspired by [execjs-fastnode](https://github.com/jhawthorn/execjs-fastnode).
5
8
 
6
9
  ### Community and Support
7
- At the [Isomorfeus Framework Project](http://isomorfeus.com)
8
-
9
- ### Tested
10
- [TravisCI](https://travis-ci.org): [![Build Status](https://travis-ci.org/isomorfeus/isomorfeus-speednode.svg?branch=master)](https://travis-ci.org/isomorfeus/isomorfeus-speednode)
10
+ At the [Isomorfeus Framework Project](http://isomorfeus.com)
11
11
 
12
12
  ### Installation
13
13
 
@@ -40,8 +40,8 @@ Example for a compatible context:
40
40
  compat_context = ExecJS.compile('Test = "test"')
41
41
  compat_context.eval('1+1')
42
42
  ```
43
- #### Permissive
44
- A permissive context can be created with `ExecJS.permissive_compile` or code can be executed within a permissive context by using
43
+ #### Permissive
44
+ A permissive context can be created with `ExecJS.permissive_compile` or code can be executed within a permissive context by using
45
45
  `ExecJS.permissive_eval` or `ExecJS.permissive_exec`.
46
46
  Example for a permissive context:
47
47
  ```ruby
@@ -63,7 +63,7 @@ context.eval <<~JAVASCRIPT
63
63
  return new Promise(function (resolve, reject) { resolve(val); });
64
64
  }
65
65
  JAVASCRIPT
66
-
66
+
67
67
  context.await("foo('test')") # => 'test'
68
68
  ```
69
69
 
@@ -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
  )
@@ -122,12 +122,12 @@ module Isomorfeus
122
122
  @socket_dir = nil
123
123
  @socket_path = SecureRandom.uuid
124
124
  else
125
- @socket_dir = Dir.mktmpdir("isomorfeus-speednode-")
125
+ @socket_dir = Dir.mktmpdir("iso-speednode-")
126
126
  @socket_path = File.join(@socket_dir, "socket")
127
127
  end
128
128
  @pid = Process.spawn({"SOCKET_PATH" => @socket_path}, @options[:binary], @options[:source_maps], @options[:runner_path])
129
129
 
130
- retries = 50
130
+ retries = 100
131
131
 
132
132
  if ExecJS.windows?
133
133
  timeout_or_connected = false
@@ -22,11 +22,7 @@ module Isomorfeus
22
22
  @encoding = options[:encoding]
23
23
  @deprecated = !!options[:deprecated]
24
24
 
25
- @vm = VM.new(
26
- binary: @binary,
27
- source_maps: '--enable-source-maps',
28
- runner_path: @runner_path
29
- )
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
- module Isomorfeus
2
- module Speednode
3
- VERSION = '0.4.3'
4
- end
5
- end
1
+ module Isomorfeus
2
+ module Speednode
3
+ VERSION = '0.4.7'
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-speednode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-10 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs