execjs-xtrn 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 8754e3aa4bbca96de99f7b970259186ab5791bd0
4
- data.tar.gz: 3cbcbdba3d22e45da939f7d52b94c449bd77a2d1
3
+ metadata.gz: 587c62522d08ce5bbde225a9c08cf6ff67fd4102
4
+ data.tar.gz: 145b135efdff4e22e0ec6fbc539c4c03fb4bee28
5
5
  SHA512:
6
- metadata.gz: 0d29c2822c4e601d959ab6330d605bfbd2af5633c75dd4af16c31ecb894e40b4231fdf9ff51f15ec80d270175fb70e916a1fff86259711e772b9cfe0b49ddc89
7
- data.tar.gz: 2b08bbcb400b3da6a9376351ce54b5c04f9dd4ceb5b464df03e93d7bebbe4eaf34d5c75016791bdaeac7212b67b83c9f0303ca731d370e5d70617ee85fa0842f
6
+ metadata.gz: 44b81bf7d4a2d1605da0399b4c77b4f17d5b98fe3d38b38537003a2c612e22254b25075a832b2e395f9ea5345b08098a93899162c41719f40b33d3f9688b5aee
7
+ data.tar.gz: 09048d251e4c18c08496284cdff20a5f30718348e89fb9bc2c4a4543b210c8688b49071714b1aeb61c8d6c1a00de9eaf01869120d1ceb1b39b8c76d7f20a2843
@@ -3,10 +3,16 @@ var
3
3
  vm = require('vm'),
4
4
  vms = {}
5
5
 
6
+ process.on('SIGINT', ctrlC)
7
+
6
8
  process.stdin
7
9
  .pipe(s(cmd))
8
10
  .pipe(process.stderr)
9
11
 
12
+ function ctrlC()
13
+ {
14
+ }
15
+
10
16
  function cmd(s)
11
17
  {
12
18
  return wrap(s)+'\n'
@@ -19,8 +19,8 @@ class ExecJS::Xtrn::Engine
19
19
  result['ok']
20
20
  end
21
21
 
22
- PathX=[/^[.]{1,2}\/|^\/(?![\/*])/]
23
- PathX << /^[.]{0,2}\\|^\w:./ if Gem.win_platform?
22
+ PathX=[/^[.]{1,2}\/|^\/[^\s\/*]/]
23
+ PathX << /^[.]{0,2}\\|^\w:\S/ if Gem.win_platform?
24
24
 
25
25
  def load code
26
26
  exec PathX.find{|re| re.match code} ? File.read(code) : code
@@ -1,5 +1,5 @@
1
1
  module ExecJS
2
2
  module Xtrn
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execjs-xtrn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Ukolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-23 00:00:00.000000000 Z
11
+ date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler